Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110745 - error compiling media-libs/libsdl-1.2.8-r1 against dev-libs/DirectFB-0.9.24
Summary: error compiling media-libs/libsdl-1.2.8-r1 against dev-libs/DirectFB-0.9.24
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
: 111034 (view as bug list)
Depends on:
Reported: 2005-10-28 13:06 UTC by Drake Wyrm
Modified: 2010-03-27 23:32 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Drake Wyrm 2005-10-28 13:06:48 UTC
I needed to rebuild media-libs/libsdl today after upgrading dev-libs/DirectFB.
The build for media-libs/libsdl-1.2.8-r1 crashed with the following complaint:

i686-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-D_REENTRANT -D_GNU_SOURCE -I/usr/include/directfb -march=athlon-tbird -pipe -O2
-I./hermes -I../../../src/hermes -DOSS_SUPPORT -DALSA_SUPPORT -DUSE_DLVSYM -DESD_SUPPORT -DENABLE_X11 -DXTHREADS -I./include -I./src/video
-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_events.c -o SDL_DirectFB_events.o
>/dev/null 2>&1
SDL_DirectFB_video.c: In function `DirectFB_VideoInit':
SDL_DirectFB_video.c:379: error: `DFBCardCapabilities' undeclared (first use in
this function)
SDL_DirectFB_video.c:379: error: (Each undeclared identifier is reported only once
SDL_DirectFB_video.c:379: error: for each function it appears in.)
SDL_DirectFB_video.c:379: error: syntax error before "caps"
SDL_DirectFB_video.c:451: error: structure has no member named `GetCardCapabilities'
SDL_DirectFB_video.c:451: error: `caps' undeclared (first use in this function)
make[3]: *** [SDL_DirectFB_video.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/libsdl-1.2.8-r1/work/SDL-1.2.8/src'
make: *** [all-recursive] Error 1
make: Leaving directory `/var/tmp/portage/libsdl-1.2.8-r1/work/SDL-1.2.8'

The build was attempted with the following USE flags enabled: +X +aalib +alsa
	-arts +dga +directfb +esd +fbcon +ggi +libcaca -nas -noaudio
	-noflagstrip -nojoystick -novideo +opengl +oss -pic +svga -xinerama +xv

Attempting to build libsdl-1.2.8-r1 with USE=-directfb was successful.

Attempting to build media-libs/libsdl-1.2.9.r1 was successful with the
	following USE flags: +X +aalib +alsa -arts +dga +directfb +esd +fbcon
	+ggi +libcaca -nas -noaudio -noflagstrip -nojoystick -novideo +opengl
	+oss +svga -xinerama +xv

All of this occurred when compiling against dev-libs/DirectFB-0.9.24, which was
	built with the following USE flags: -debug +fbcon -fusion +gif +jpeg
	+mmx +mpeg +png +sdl -sse -static -sysfs +truetype +zlib

I have done very little testing on the successful versions, although I am
leaving media-libs/libsdl-1.2.9.r1 installed.
Comment 1 SpanKY gentoo-dev 2005-10-28 16:08:38 UTC
why are you using unstable DirectFB with stable libsdl ?

ive fixed this in the unstable libsdl already (1.2.9-r1)
Comment 2 Drake Wyrm 2005-10-28 19:37:39 UTC
At some point or another I had a problem with DirectFB which was fixed in the
unstable revision, so I added it to package.keywords. If there was a known
problem between the two packages, it might have been prudent to be more specific
in the dependencies of media-libs/libsdl. Something along the lines of
"~dev-libs/DirectFB-0.9.22" instead of the bare "dev-libs/DirectFB" probably
would have caught that.

I realize that you can't test every possible combination (or even most of them),
but I'm surprised that you didn't add some sort of blocker when you knew that
one possible combo would fail.
Comment 3 SpanKY gentoo-dev 2005-10-28 19:47:26 UTC
i just wanted to verify you didnt have something stupid on your system ... i
only bothered to fix the latest packages since they would break most people for sure

added patch to 1.2.8-r1
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-10-31 09:29:33 UTC
*** Bug 111034 has been marked as a duplicate of this bug. ***