Errors Compiling SDL-1.2.6 on Mandrake Linux 9.2

When I compile the vanilla SDL 1.2.6 on Mandrake Linux 9.2, I get the
following error:

<<<
gcc -DPACKAGE=“SDL” -DVERSION=“1.2.6” -DHAVE_ALLOCA_H=1
-DHAVE_ALLOCA=1 -I. -I. -g -O2 -fexpensive-optimizations -march=pentium
-mcpu=pentiumpro -Wall -DENABLE_DUMMYVIDEO -DDISKAUD_SUPPORT -DUSE_DLOPEN
-DUSE_ASMBLIT -I./hermes -I…/…/src/hermes -DOSS_SUPPORT -DALSA_SUPPORT
-DARTSC_SUPPORT -DARTSC_DYNAMIC=libartsc.so.0 -I/usr/include/artsc
-DESD_SUPPORT -DNAS_SUPPORT -I/usr/X11R6/include -DENABLE_X11 -DXTHREADS
-I./include -I./src/video -DXFREE86_VM -DXFREE86_VMGAMMA
-DXFREE86_DGAMOUSE -DDEFAULT_DGAMOUSE -DXFREE86_XV -DHAVE_XINERAMA
-Isrc/video -DENABLE_DGA -DENABLE_FBCON -DHAVE_OPENGL -DUSE_INPUT_EVENTS
-D_REENTRANT -DSDL_USE_PTHREADS -DPTHREAD_NO_RECURSIVE_MUTEX
-I…/…/include -I…/…/include/SDL -I…/…/src -I…/…/src/linux
-I…/…/src/main -I…/…/src/audio -I…/…/src/video
-I…/…/src/video/XFree86/extensions -I…/…/src/events
-I…/…/src/joystick -I…/…/src/cdrom -I…/…/src/thread
-I…/…/src/timer -I…/…/src/endian -I…/…/src/file -c SDL_RLEaccel.c
-fPIC -DPIC -o .libs/SDL_RLEaccel.lo
SDL_RLEaccel.c: In function RLEClipBlit': SDL_RLEaccel.c:845: error: invalidasm’: invalid expression as operand
SDL_RLEaccel.c:845: error: invalid asm': invalid expression as operand SDL_RLEaccel.c:845: error: invalidasm’: invalid expression as operand
make[3]: *** [SDL_RLEaccel.lo] Error 1

I’m using gcc 3.3.1. (the system default)

my configure invocation is:

<<<
./configure
–prefix=$HOME/apps/sdl/
–enable-video-opengl
–disable-video-svga
–disable-video-ggi
–disable-video-directfb
–disable-debug --enable-dlopen --enable-arts --enable-arts-shared
–enable-esd --enable-esd-shared

Regards,

Shlomi Fish----------------------------------------------------------------------

Shlomi Fish @Shlomi_Fish
Home Page: http://t2.technion.ac.il/~shlomif/

You are banished! You are banished! You are banished!

Hey? I’m just kidding!

Shlomi Fish wrote:

SDL_RLEaccel.c: In function RLEClipBlit': SDL_RLEaccel.c:845: error: invalidasm’: invalid expression as operand
SDL_RLEaccel.c:845: error: invalid asm': invalid expression as operand SDL_RLEaccel.c:845: error: invalidasm’: invalid expression as operand

I utilitized my Google license and found the following:

Either, add --disable-nasm when invoking configure or try -O3 instead
of -O2. It’s probably fixed in CVS.–
Christian
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20040118/1647fc43/attachment.pgp

Shlomi Fish wrote:

When I compile the vanilla SDL 1.2.6 on Mandrake Linux 9.2, I get the
following error:

<<<
gcc -DPACKAGE=“SDL” -DVERSION=“1.2.6” -DHAVE_ALLOCA_H=1
-DHAVE_ALLOCA=1 -I. -I. -g -O2 -fexpensive-optimizations -march=pentium
-mcpu=pentiumpro -Wall -DENABLE_DUMMYVIDEO -DDISKAUD_SUPPORT -DUSE_DLOPEN
-DUSE_ASMBLIT -I./hermes -I…/…/src/hermes -DOSS_SUPPORT -DALSA_SUPPORT
-DARTSC_SUPPORT -DARTSC_DYNAMIC=libartsc.so.0 -I/usr/include/artsc
-DESD_SUPPORT -DNAS_SUPPORT -I/usr/X11R6/include -DENABLE_X11 -DXTHREADS
-I./include -I./src/video -DXFREE86_VM -DXFREE86_VMGAMMA
-DXFREE86_DGAMOUSE -DDEFAULT_DGAMOUSE -DXFREE86_XV -DHAVE_XINERAMA
-Isrc/video -DENABLE_DGA -DENABLE_FBCON -DHAVE_OPENGL -DUSE_INPUT_EVENTS
-D_REENTRANT -DSDL_USE_PTHREADS -DPTHREAD_NO_RECURSIVE_MUTEX
-I…/…/include -I…/…/include/SDL -I…/…/src -I…/…/src/linux
-I…/…/src/main -I…/…/src/audio -I…/…/src/video
-I…/…/src/video/XFree86/extensions -I…/…/src/events
-I…/…/src/joystick -I…/…/src/cdrom -I…/…/src/thread
-I…/…/src/timer -I…/…/src/endian -I…/…/src/file -c SDL_RLEaccel.c
-fPIC -DPIC -o .libs/SDL_RLEaccel.lo
SDL_RLEaccel.c: In function RLEClipBlit': SDL_RLEaccel.c:845: error: invalidasm’: invalid expression as operand
SDL_RLEaccel.c:845: error: invalid asm': invalid expression as operand SDL_RLEaccel.c:845: error: invalidasm’: invalid expression as operand
make[3]: *** [SDL_RLEaccel.lo] Error 1

This is fixed in CVS (along with other errors) so you’re advised to try
the cvs version instead.
As a workaround, you can also compile it with gcc 2.96 which is packaged
in mandrake along with gcc 3.3.1

Stephane

Stephane Marchesin wrote:

As a workaround, you can also compile it with gcc 2.96

Nobody wants to compile anything with that POS. If you want the old
gcc use 2.95.x.–
Christian
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20040118/73a131de/attachment.pgp