libSDL fails to compile. The following error occurs: SDL_DirectFB_video.c: In function `DirectFB_VideoInit': SDL_DirectFB_video.c:397: warning: passing arg 2 of pointer to function makes pointer from integer without a cast SDL_DirectFB_video.c:397: too many arguments to function make[3]: *** [SDL_DirectFB_video.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... distcc gcc -DPACKAGE=\"SDL\" -DVERSION=\"1.2.5\" -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -I. -I. -march=pentium3 -O3 -pipe -Wall -DDISABLE_AUDIO -DENABLE_DUMMYVIDEO -DUSE_ASMBLIT -I./hermes -I../../../src/hermes -I/usr/X11R6/include -DENABLE_X11 -I./include -I./src/video -DXFREE86_VM -DXFREE86_VMGAMMA -DXFREE86_DGAMOUSE -DDEFAULT_DGAMOUSE -DXFREE86_XV -DHAVE_XINERAMA -Isrc/video -DENABLE_DGA -DENABLE_FBCON -DENABLE_DIRECTFB -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 -D_REENTRANT -I/usr/include/directfb -c SDL_DirectFB_yuv.c >/dev/null 2>&1 mv -f .libs/SDL_DirectFB_events.lo SDL_DirectFB_events.lo mv -f .libs/SDL_DirectFB_yuv.lo SDL_DirectFB_yuv.lo make[3]: Leaving directory `/var/tmp/portage/libsdl-1.2.5/work/SDL-1.2.5/src/video/directfb' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/libsdl-1.2.5/work/SDL-1.2.5/src/video' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/libsdl-1.2.5/work/SDL-1.2.5/src' make: *** [all-recursive] Error 1 !!! ERROR: media-libs/libsdl-1.2.5 failed. !!! Function src_compile, Line 124, Exitcode 2 gcc 3.2; CFLAGS="-march=pentium3 -O3 -pipe".
You can retrieve the SDL_DirectFB_video.c file from sdl.org cvs and change the line 397 of the CVS one in your own local file. then, ebuil libsdl-1.2.5.ebuild compile, ebuil libsdl-1.2.5.ebuild install, ebuil libsdl-1.2.5.ebuild qmerge and that's all !
humm... replace ebuil by ebuild of course !
Can this be confirmed by a developer?
what happens if you disable distcc for this?
well, vocis?
Seemant, apparantly without dcc it compiled. Thanks for the suggestion - this didn't come to mind at first. Anyway, I will close this bug.