Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 75392

Summary: libsdl-1.2.8 compile fails with gcc-2.95
Product: Gentoo Linux Reporter: Matt Taylor <liverbugg>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: 1.2.8-gcc2.patch
1.2.8-gcc2-asm.patch

Description Matt Taylor 2004-12-22 19:31:30 UTC
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
Comment 1 Matt Taylor 2004-12-22 19:32:54 UTC
Created attachment 46683 [details, diff]
1.2.8-gcc2.patch

Fixes compile error with gcc2
Comment 2 Matt Taylor 2004-12-22 19:36:08 UTC
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.
Comment 3 SpanKY gentoo-dev 2004-12-24 02:30:13 UTC
added to the 1.2.8 ebuild, thanks :)

i'll send the 1.2.8-gcc2.patch patch upstream