[SDL] Can't compile libsdl 1.2.8 on AMD64

Jure Repinc jrepin at gmail.com
Sun Jan 2 14:51:16 PST 2005


Hi,

I just tried to compile libsdl 1.2.8 on a 64-bit AMD64 machine with
GCC 3.4.3. I get this error when trying to compile:

make[3]: Entering directory
`/var/tmp/portage/libsdl-1.2.8/work/SDL-1.2.8/src/video/fbcon'
/bin/sh ../../../libtool --mode=compile x86_64-pc-linux-gnu-gcc
-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"SDL\"
-DVERSION=\"1.2.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_ALLOCA_H=1
-DHAVE_ALLOCA=1 -DHAVE_LIBASOUND=1  -I. -I.     -march=athlon64 -pipe
-O1 -Wall -DENABLE_DUMMYVIDEO -DDISKAUD_SUPPORT -DUSE_DLOPEN
-DOSS_SUPPORT -DALSA_SUPPORT -DALSA_DYNAMIC=libasound.so.1 
-DUSE_DLVSYM -DARTSC_SUPPORT -DARTSC_DYNAMIC=libartsc.so.0
-I/usr/kde/3.3/include/artsc -pthread -I/usr/include/glib-2.0
-I//usr/lib/glib-2.0/include -DESD_SUPPORT -DESD_DYNAMIC=libesd.so.0  
-I/usr/X11R6/include -DENABLE_X11 -DXTHREADS -I./include -I./src/video
-DXFREE86_VM -DXFREE86_VMGAMMA -DXFREE86_XV -DENABLE_FBCON
-DHAVE_OPENGL -DUSE_INPUT_EVENTS -D_REENTRANT -DSDL_USE_PTHREADS
-DHAVE_SIGACTION -I../../../include -I../../../include/SDL
-I../../../src -I../../../src/main/linux -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 -I../../../src/thread -c -o SDL_fbelo.lo
SDL_fbelo.c
/bin/sh ../../../libtool --mode=compile x86_64-pc-linux-gnu-gcc
-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"SDL\"
-DVERSION=\"1.2.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_ALLOCA_H=1
-DHAVE_ALLOCA=1 -DHAVE_LIBASOUND=1  -I. -I.     -march=athlon64 -pipe
-O1 -Wall -DENABLE_DUMMYVIDEO -DDISKAUD_SUPPORT -DUSE_DLOPEN
-DOSS_SUPPORT -DALSA_SUPPORT -DALSA_DYNAMIC=libasound.so.1 
-DUSE_DLVSYM -DARTSC_SUPPORT -DARTSC_DYNAMIC=libartsc.so.0
-I/usr/kde/3.3/include/artsc -pthread -I/usr/include/glib-2.0
-I//usr/lib/glib-2.0/include -DESD_SUPPORT -DESD_DYNAMIC=libesd.so.0  
-I/usr/X11R6/include -DENABLE_X11 -DXTHREADS -I./include -I./src/video
-DXFREE86_VM -DXFREE86_VMGAMMA -DXFREE86_XV -DENABLE_FBCON
-DHAVE_OPENGL -DUSE_INPUT_EVENTS -D_REENTRANT -DSDL_USE_PTHREADS
-DHAVE_SIGACTION -I../../../include -I../../../include/SDL
-I../../../src -I../../../src/main/linux -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 -I../../../src/thread -c -o SDL_fbevents.lo
SDL_fbevents.c
mkdir .libs
 x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE=\"SDL\"-DVERSION=\"1.2.8\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_DLFCN_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_LIBASOUND=1
-I. -I. -march=athlon64 -pipe -O1 -Wall -DENABLE_DUMMYVIDEO
-DDISKAUD_SUPPORT -DUSE_DLOPEN -DOSS_SUPPORT -DALSA_SUPPORT
-DALSA_DYNAMIC=libasound.so.1 -DUSE_DLVSYM -DARTSC_SUPPORT
-DARTSC_DYNAMIC=libartsc.so.0 -I/usr/kde/3.3/include/artsc -pthread
-I/usr/include/glib-2.0 -I//usr/lib/glib-2.0/include -DESD_SUPPORT
-DESD_DYNAMIC=libesd.so.0 -I/usr/X11R6/include -DENABLE_X11 -DXTHREADS
-I./include -I./src/video -DXFREE86_VM -DXFREE86_VMGAMMA -DXFREE86_XV
-DENABLE_FBCON -DHAVE_OPENGL -DUSE_INPUT_EVENTS-D_REENTRANT
-DSDL_USE_PTHREADS -DHAVE_SIGACTION -I../../../include
-I../../../include/SDL -I../../../src -I../../../src/main/linux
-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
-I../../../src/thread -c SDL_fbelo.c  -fPIC -DPIC -o .libs/SDL_fbelo.o
 x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE=\"SDL\"-DVERSION=\"1.2.8\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_DLFCN_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_LIBASOUND=1
-I. -I. -march=athlon64 -pipe -O1 -Wall -DENABLE_DUMMYVIDEO
-DDISKAUD_SUPPORT -DUSE_DLOPEN -DOSS_SUPPORT -DALSA_SUPPORT
-DALSA_DYNAMIC=libasound.so.1 -DUSE_DLVSYM -DARTSC_SUPPORT
-DARTSC_DYNAMIC=libartsc.so.0 -I/usr/kde/3.3/include/artsc -pthread
-I/usr/include/glib-2.0 -I//usr/lib/glib-2.0/include -DESD_SUPPORT
-DESD_DYNAMIC=libesd.so.0 -I/usr/X11R6/include -DENABLE_X11 -DXTHREADS
-I./include -I./src/video -DXFREE86_VM -DXFREE86_VMGAMMA -DXFREE86_XV
-DENABLE_FBCON -DHAVE_OPENGL -DUSE_INPUT_EVENTS-D_REENTRANT
-DSDL_USE_PTHREADS -DHAVE_SIGACTION -I../../../include
-I../../../include/SDL -I../../../src -I../../../src/main/linux
-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
-I../../../src/thread -c SDL_fbevents.c  -fPIC -DPIC -o
.libs/SDL_fbevents.o
 x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE=\"SDL\"-DVERSION=\"1.2.8\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_DLFCN_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_LIBASOUND=1
-I. -I. -march=athlon64 -pipe -O1 -Wall -DENABLE_DUMMYVIDEO
-DDISKAUD_SUPPORT -DUSE_DLOPEN -DOSS_SUPPORT -DALSA_SUPPORT
-DALSA_DYNAMIC=libasound.so.1 -DUSE_DLVSYM -DARTSC_SUPPORT
-DARTSC_DYNAMIC=libartsc.so.0 -I/usr/kde/3.3/include/artsc -pthread
-I/usr/include/glib-2.0 -I//usr/lib/glib-2.0/include -DESD_SUPPORT
-DESD_DYNAMIC=libesd.so.0 -I/usr/X11R6/include -DENABLE_X11 -DXTHREADS
-I./include -I./src/video -DXFREE86_VM -DXFREE86_VMGAMMA -DXFREE86_XV
-DENABLE_FBCON -DHAVE_OPENGL -DUSE_INPUT_EVENTS-D_REENTRANT
-DSDL_USE_PTHREADS -DHAVE_SIGACTION -I../../../include
-I../../../include/SDL -I../../../src -I../../../src/main/linux
-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
-I../../../src/thread -c SDL_fbelo.c -o SDL_fbelo.o >/dev/null 2>&1
/bin/sh ../../../libtool --mode=compile x86_64-pc-linux-gnu-gcc
-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"SDL\"
-DVERSION=\"1.2.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_ALLOCA_H=1
-DHAVE_ALLOCA=1 -DHAVE_LIBASOUND=1  -I. -I.     -march=athlon64 -pipe
-O1 -Wall -DENABLE_DUMMYVIDEO -DDISKAUD_SUPPORT -DUSE_DLOPEN
-DOSS_SUPPORT -DALSA_SUPPORT -DALSA_DYNAMIC=libasound.so.1 
-DUSE_DLVSYM -DARTSC_SUPPORT -DARTSC_DYNAMIC=libartsc.so.0
-I/usr/kde/3.3/include/artsc -pthread -I/usr/include/glib-2.0
-I//usr/lib/glib-2.0/include -DESD_SUPPORT -DESD_DYNAMIC=libesd.so.0  
-I/usr/X11R6/include -DENABLE_X11 -DXTHREADS -I./include -I./src/video
-DXFREE86_VM -DXFREE86_VMGAMMA -DXFREE86_XV -DENABLE_FBCON
-DHAVE_OPENGL -DUSE_INPUT_EVENTS -D_REENTRANT -DSDL_USE_PTHREADS
-DHAVE_SIGACTION -I../../../include -I../../../include/SDL
-I../../../src -I../../../src/main/linux -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 -I../../../src/thread -c -o SDL_fb3dfx.lo
SDL_fb3dfx.c
SDL_fbevents.c: In function `switch_vt':
SDL_fbevents.c:849: error: invalid lvalue in assignment
make[3]: *** [SDL_fbevents.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
 x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE=\"SDL\"-DVERSION=\"1.2.8\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_DLFCN_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_LIBASOUND=1
-I. -I. -march=athlon64 -pipe -O1 -Wall -DENABLE_DUMMYVIDEO
-DDISKAUD_SUPPORT -DUSE_DLOPEN -DOSS_SUPPORT -DALSA_SUPPORT
-DALSA_DYNAMIC=libasound.so.1 -DUSE_DLVSYM -DARTSC_SUPPORT
-DARTSC_DYNAMIC=libartsc.so.0 -I/usr/kde/3.3/include/artsc -pthread
-I/usr/include/glib-2.0 -I//usr/lib/glib-2.0/include -DESD_SUPPORT
-DESD_DYNAMIC=libesd.so.0 -I/usr/X11R6/include -DENABLE_X11 -DXTHREADS
-I./include -I./src/video -DXFREE86_VM -DXFREE86_VMGAMMA -DXFREE86_XV
-DENABLE_FBCON -DHAVE_OPENGL -DUSE_INPUT_EVENTS-D_REENTRANT
-DSDL_USE_PTHREADS -DHAVE_SIGACTION -I../../../include
-I../../../include/SDL -I../../../src -I../../../src/main/linux
-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
-I../../../src/thread -c SDL_fb3dfx.c  -fPIC -DPIC -o
.libs/SDL_fb3dfx.o
SDL_fb3dfx.c: In function `FillHWRect':
SDL_fb3dfx.c:80: warning: cast from pointer to integer of different size
SDL_fb3dfx.c: In function `HWAccelBlit':
SDL_fb3dfx.c:151: warning: cast from pointer to integer of different size
SDL_fb3dfx.c:153: warning: cast from pointer to integer of different size
 x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE=\"SDL\"-DVERSION=\"1.2.8\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_DLFCN_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_LIBASOUND=1
-I. -I. -march=athlon64 -pipe -O1 -Wall -DENABLE_DUMMYVIDEO
-DDISKAUD_SUPPORT -DUSE_DLOPEN -DOSS_SUPPORT -DALSA_SUPPORT
-DALSA_DYNAMIC=libasound.so.1 -DUSE_DLVSYM -DARTSC_SUPPORT
-DARTSC_DYNAMIC=libartsc.so.0 -I/usr/kde/3.3/include/artsc -pthread
-I/usr/include/glib-2.0 -I//usr/lib/glib-2.0/include -DESD_SUPPORT
-DESD_DYNAMIC=libesd.so.0 -I/usr/X11R6/include -DENABLE_X11 -DXTHREADS
-I./include -I./src/video -DXFREE86_VM -DXFREE86_VMGAMMA -DXFREE86_XV
-DENABLE_FBCON -DHAVE_OPENGL -DUSE_INPUT_EVENTS-D_REENTRANT
-DSDL_USE_PTHREADS -DHAVE_SIGACTION -I../../../include
-I../../../include/SDL -I../../../src -I../../../src/main/linux
-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
-I../../../src/thread -c SDL_fb3dfx.c -o SDL_fb3dfx.o >/dev/null 2>&1
make[3]: Leaving directory
`/var/tmp/portage/libsdl-1.2.8/work/SDL-1.2.8/src/video/fbcon'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/libsdl-1.2.8/work/SDL-1.2.8/src/video'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/libsdl-1.2.8/work/SDL-1.2.8/src'
make: *** [all-recursive] Error 1




More information about the SDL mailing list