Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 248580

Summary: x11-misc/wbar: fails with forced --as-needed
Product: Gentoo Linux Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: New packagesAssignee: Desktop Misc. Team <desktop-misc>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.gentoo.org/proj/en/qa/asneeded.xml
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 129413    
Attachments: Build log

Description Diego Elio Pettenò (RETIRED) gentoo-dev 2008-11-24 09:46:58 UTC
I'm reporting this bug because the package in summary fails to build when forcing --as-needed on through spec files (check out http://blog.flameeyes.eu/2008/11/14/problems-and-mitigation-strategies-for-as-needed for details).

Check the attached build log.

Thanks,
Diego
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-11-24 09:49:44 UTC
Created attachment 173174 [details]
Build log
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2008-12-06 12:32:50 UTC
i686-pc-linux-gnu-g++ -Wl,-O1 XWin.o Icon.o Bar.o IconLoader.o OptParser.o SuperBar.o SuperIcon.o Main.o `imlib2-config --libs` -o wbar
XWin.o: In function `XWin::bottomLayer()':
XWin.cc:(.text+0xa3): undefined reference to `XInternAtom'

Looks like correct order to me.

What does ´imlib2-config --libs´ return to you? Also, i'd like to see 'emerge -pv imlib2' output.

Thanks.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-12-06 12:39:05 UTC
It might have been missing X USE flag on imlib2 when I built this. On the other hand it does not seem to _need_ the X USE flag for imlib2, just adding a -lX11 or -lXext, whatever provides the symbol, on the commandline.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2008-12-06 13:44:04 UTC
(In reply to comment #3)
> It might have been missing X USE flag on imlib2 when I built this. On the other
> hand it does not seem to _need_ the X USE flag for imlib2, just adding a -lX11
> or -lXext, whatever provides the symbol, on the commandline.
> 

As I suspected, will look.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2010-01-14 16:11:41 UTC
+  14 Jan 2010; Samuli Suominen <ssuominen@gentoo.org>
+  files/wbar-1.3.3-Makefile.patch:
+  Link to -lX11 even if media-libs/imlib2 is built with USE="-X" wrt
+  #248580, thanks to Diego E. Pettenò for reporting.

$ strings /usr/lib64/libX11.so |grep XInt
XInternAtom
XInternAtoms