Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 248580 - x11-misc/wbar: fails with forced --as-needed
Summary: x11-misc/wbar: fails with forced --as-needed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Desktop Misc. Team
URL: http://www.gentoo.org/proj/en/qa/asne...
Whiteboard:
Keywords:
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2008-11-24 09:46 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2010-01-14 16:11 UTC (History)
0 users

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


Attachments
Build log (wbar-1.3.3:20081124-082427.log,6.62 KB, text/plain)
2008-11-24 09:49 UTC, Diego Elio Pettenò (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
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