Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10906 - libSDL-1.2.5 compilation error
Summary: libSDL-1.2.5 compilation error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Seemant Kulleen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-18 07:02 UTC by Mark
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark 2002-11-18 07:02:05 UTC
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".
Comment 1 Sébastien HOUZE 2002-11-18 15:23:46 UTC
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 ! 
Comment 2 Sébastien HOUZE 2002-11-18 15:24:41 UTC
humm... replace ebuil by ebuild of course ! 
Comment 3 Mark 2002-11-24 08:11:07 UTC
Can this be confirmed by a developer?
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2002-11-29 14:14:33 UTC
what happens if you disable distcc for this?
Comment 5 Seemant Kulleen (RETIRED) gentoo-dev 2002-12-02 01:45:46 UTC
well, vocis?
Comment 6 Mark 2002-12-02 04:37:00 UTC
Seemant, apparantly without dcc it compiled. Thanks for the suggestion - this
didn't come to mind at first. Anyway, I will close this bug.