1.2.7-gcc34.patch from bug 48947 is applied to builds with any gcc. Causes the following error on gcc-2.95: i686-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"SDL\" -DVERSION=\"1.2.7\" -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 -I. -I. -march=i686 -O3 -pipe -Wall -DENABLE_DUMMYVIDEO -DDISKAUD_SUPPORT -DUSE_DLOPEN -DUSE_ASMBLIT -I./hermes -I../../src/hermes -DOSS_SUPPORT -DALSA_SUPPORT -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 -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_yuv_mmx.c -Wp,-MD,.deps/SDL_yuv_mmx.TPlo -fPIC -DPIC -o .libs/SDL_yuv_mmx.o SDL_yuv_mmx.c: In function `ColorRGBDitherYV12MMX1X': SDL_yuv_mmx.c:242: parse error before `[' SDL_yuv_mmx.c: In function `Color565DitherYV12MMX1X': SDL_yuv_mmx.c:423: parse error before `[' SDL_yuv_mmx.c: At top level: SDL_yuv_mmx.c:39: warning: `_MMX_0080w' defined but not used SDL_yuv_mmx.c:40: warning: `_MMX_00FFw' defined but not used SDL_yuv_mmx.c:41: warning: `_MMX_FF00w' defined but not used SDL_yuv_mmx.c:43: warning: `_MMX_Ycoeff' defined but not used SDL_yuv_mmx.c:45: warning: `_MMX_UbluRGB' defined but not used SDL_yuv_mmx.c:46: warning: `_MMX_VredRGB' defined but not used SDL_yuv_mmx.c:47: warning: `_MMX_UgrnRGB' defined but not used SDL_yuv_mmx.c:48: warning: `_MMX_VgrnRGB' defined but not used SDL_yuv_mmx.c:50: warning: `_MMX_Ublu5x5' defined but not used SDL_yuv_mmx.c:51: warning: `_MMX_Vred5x5' defined but not used SDL_yuv_mmx.c:52: warning: `_MMX_Ugrn555' defined but not used SDL_yuv_mmx.c:53: warning: `_MMX_Vgrn555' defined but not used SDL_yuv_mmx.c:54: warning: `_MMX_Ugrn565' defined but not used SDL_yuv_mmx.c:55: warning: `_MMX_Vgrn565' defined but not used SDL_yuv_mmx.c:57: warning: `_MMX_red555' defined but not used SDL_yuv_mmx.c:58: warning: `_MMX_red565' defined but not used SDL_yuv_mmx.c:59: warning: `_MMX_grn555' defined but not used SDL_yuv_mmx.c:60: warning: `_MMX_grn565' defined but not used SDL_yuv_mmx.c:61: warning: `_MMX_blu5x5' defined but not used make[3]: *** [SDL_yuv_mmx.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/mnt/portage/tmp/portage/libsdl-1.2.7-r3/work/SDL-1.2.7/src/video' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/mnt/portage/tmp/portage/libsdl-1.2.7-r3/work/SDL-1.2.7/src/video' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/mnt/portage/tmp/portage/libsdl-1.2.7-r3/work/SDL-1.2.7/src' make: *** [all-recursive] Error 1 !!! ERROR: media-libs/libsdl-1.2.7-r3 failed. !!! Function src_compile, Line 112, Exitcode 2 !!! emake failed !!! If you need support, post the topmost build error, NOT this status message. Removing that patch allows libsdl to compile.
added a check to make sure gcc major version != 2