Compiling libsdl-1.2.8 with gcc-2.95 fails: i686-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. -D_REENTRANT -I/usr/include/directfb -march=i686 -O3 -pipe -Wall -DENABLE_DUMMYVIDEO -DDISKAUD_SUPPORT -DUSE_DLOPEN -DUSE_ASMBLIT -I./hermes -I../../../src/hermes -DOSS_SUPPORT -DALSA_SUPPORT -DALSA_DYNAMIC=libasound.so.1 -DUSE_DLVSYM -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_DIRECTFB -I/usr/X11R6/include -DENABLE_GGI -DENABLE_SVGALIB -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_DirectFB_video.c -fPIC -DPIC -o .libs/SDL_DirectFB_video.o SDL_DirectFB_video.c: In function `DirectFB_VideoInit': SDL_DirectFB_video.c:495: parse error before `dlc' SDL_DirectFB_video.c:503: `failed' undeclared (first use in this function) SDL_DirectFB_video.c:503: (Each undeclared identifier is reported only once SDL_DirectFB_video.c:503: for each function it appears in.) make: *** [SDL_DirectFB_video.lo] Error 1
Created attachment 46683 [details, diff] 1.2.8-gcc2.patch Fixes compile error with gcc2
Created attachment 46684 [details, diff] 1.2.8-gcc2-asm.patch Errors from bug 70079 is back, plus more of the same. It looks like the gentoo 1.2.7-gcc34.patch was integrated upstream. This patch fixes it. Should only be applied if being compiled with gcc-2.
added to the 1.2.8 ebuild, thanks :) i'll send the 1.2.8-gcc2.patch patch upstream
merged upstream: http://twomix.devolution.com/pipermail/sdl/2004-December/066513.html http://www.libsdl.org/cgi/cvsweb.cgi/SDL12/src/video/directfb/SDL_DirectFB_video.c