Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 283348 - gpe-utils/gpe-ownerinfo-0.28 fails due to missing -lGL LDFLAGS
Summary: gpe-utils/gpe-ownerinfo-0.28 fails due to missing -lGL LDFLAGS
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: GPE Desktop Herd
Depends on: 283339
  Show dependency tree
Reported: 2009-08-31 17:44 UTC by Christopher Friedt
Modified: 2009-09-22 21:17 UTC (History)
0 users

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

build.log (build.log,11.71 KB, text/plain)
2009-08-31 17:44 UTC, Christopher Friedt

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Friedt 2009-08-31 17:44:05 UTC
This is exactly the same thing that happened while building libgpewidgets-0.117-r1, in bug #283339. 

Check out the attached build.log, and see bug #283339 for some suggestions.

Reproducible: Always

Steps to Reproduce:
1.cross-compile gpe-utils/gpe-ownerinfo-0.28
Comment 1 Christopher Friedt 2009-08-31 17:44:38 UTC
Created attachment 202813 [details]
Comment 2 solar (RETIRED) gentoo-dev 2009-09-04 14:58:13 UTC
This package does not need to link with opengl directly. 
Comment 3 Christopher Friedt 2009-09-04 15:09:43 UTC
(In reply to comment #2)
> This package does not need to link with opengl directly. 

That's what makes it a bit tricky...

I don't see any other 'smooth' way around it aside from inserting -lGL into cairo.pc from the cairo ebuild. So it could be considered a bug in cairo. 

An alternative is to add a test to some aspect of the configure process to see if the -lGL flag is necessary to build a cairo-linked binary, and insert that into the resulting Makefile, as appropriate, but that might be a lot of work for each of the gpe-* apps that doesn't build. 
Comment 4 solar (RETIRED) gentoo-dev 2009-09-04 15:24:11 UTC
try with the linker flag -Wl,--as-needed on all of the pkgs in question.
Comment 5 Christopher Friedt 2009-09-04 15:49:42 UTC
(In reply to comment #4)
> try with the linker flag -Wl,--as-needed on all of the pkgs in question.

still no dice
Comment 6 Angelo Arrifano (RETIRED) gentoo-dev 2009-09-04 15:56:39 UTC
Can you do 

armv5tel-softfloat-linux-gnueabi-scanelf -n /usr/armv5tel-softfloat-linux-gnueabi/usr/lib/{libglitz,libglitz-glx,libgtk-x11,libcairo}.so ?

Comment 7 Christopher Friedt 2009-09-04 16:31:37 UTC
I've actually tried compiling the program natively, so cross-compiling is not an issue. On the hose machine, I've got

ET_DYN,, /usr/lib/ 
ET_DYN,,,, /usr/lib/ 
ET_DYN,,,,,,,,,,,,,,,, /usr/lib/

/usr/lib/ does not exist (I guess it would be a symlink?) but rather 

/usr/lib/ ->
/usr/lib/ ->

for that so, scanelf gives

ET_DYN,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, /usr/lib/
Comment 8 Angelo Arrifano (RETIRED) gentoo-dev 2009-09-22 21:17:13 UTC
Sorry, I can't reproduce it. Since the problem isn't on gpe-ownerinfo, I'm going to close as cantfix.