Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 24454
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Games <games@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Bernd Wurst <bugzilla-gentoo@bwurst.org>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 24454 depends on: Show dependency tree
Bug 24454 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2003-07-14 06:17 0000
I wanted to emerge clanlib-0.6.5 as a dependency for the pingus game.
For some testing with it, I installed directfb earlier but removed the USEflag
for it. 
The clanlib-0.6.5 does not compile when it finds directfb installed, no matter
if I set the USE flag or not. There is a configure option for this, you can
switch on or off directfb. But on is the default. The ebuild uses `use_enable
directfb` to set the configure-option. But this doesn't work when on is the default!

If I manually add --disable-directfb, it compiles.

Reproducible: Always
Steps to Reproduce:
USE="directfb" emerge directfb
USE="-directfb" emerge clanlib
Actual Results:  
./configure of clanlib-0.6.5 checks for directfb which results in a compile error.

Expected Results:  
USE="-directfb" should give "--disable-directfb" to the configure-script and it
should not check for directfb itself.

------- Comment #1 From SpanKY 2003-07-15 18:51:01 0000 -------
what version of directfb ? 
 
could you post the error ? 

------- Comment #2 From Bernd Wurst 2003-07-15 23:29:38 0000 -------
It's DirectFB version 0.9.18, the newest one in portage.
The error messages are as follows:
========================================================
[...]
Compiling Sources/Display/Display/X11/target_ximage_dga.cpp
Compiling Sources/Display/System/Unix/x11_target.cpp
Compiling Sources/Display/Display/DirectFB/display_directfb.cpp
Compiling Sources/Display/Display/DirectFB/target_directfb.cpp
Sources/Display/Display/DirectFB/target_directfb.cpp: In member function 
   `virtual unsigned int CL_Target_DirectFB::get_width() const':
Sources/Display/Display/DirectFB/target_directfb.cpp:109: invalid conversion 
   from `unsigned int*' to `int*'
Sources/Display/Display/DirectFB/target_directfb.cpp: In member function 
   `virtual unsigned int CL_Target_DirectFB::get_height() const':
Sources/Display/Display/DirectFB/target_directfb.cpp:118: invalid conversion 
   from `unsigned int*' to `int*'
Sources/Display/Display/DirectFB/target_directfb.cpp: In member function `void 
   CL_Target_DirectFB::Clear(float, float, float, float)':
Sources/Display/Display/DirectFB/target_directfb.cpp:268: invalid conversion 
   from `unsigned int*' to `int*'
Sources/Display/Display/DirectFB/target_directfb.cpp:268: invalid conversion 
   from `unsigned int*' to `int*'
make: *** [Libs/Intermediate/target_directfb.o] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: dev-games/clanlib-0.6.5 failed.
!!! Function src_compile, Line 68, Exitcode 2
!!! (no error message)
========================================================

above that, everything seems fine.
Gcc version is 3.2.3, possibly a problem with the newer error handling in gcc3?

------- Comment #3 From SpanKY 2003-07-16 08:12:05 0000 -------
nope, simple fix ... the functions utilize unsigned integers while the directfb
prototypes are signed integers ...

i made a patch and ill update the ebuild in a bit

------- Comment #4 From SpanKY 2003-07-16 17:16:52 0000 -------
updated the patch in cvs ... should be all set now :) 

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug