Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 367367 - x11-wm/windowmaker fails because of underlinking
Summary: x11-wm/windowmaker fails because of underlinking
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Gnustep project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: underlinking
  Show dependency tree
 
Reported: 2011-05-15 12:46 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2012-06-08 11:18 UTC (History)
0 users

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


Attachments
Build log (windowmaker-0.92.0-r11:20110515-044915.log,67.86 KB, text/plain)
2011-05-15 12:46 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 2011-05-15 12:46:39 UTC
Hello there!

You're getting this bug because the package in Summary failed to build in my tinderbox using the gold link editor from binutils. Before closing the bug as INVALID let me explain why this is still important!

The gold link editor does not support underlinking of shared objects, which is something I have described in my blog post:

http://blog.flameeyes.eu/2010/11/26/it-s-not-all-gold-that-shines-why-underlinking-is-a-bad-thing

Even the basic link editor (ld.bfd) has an option to support this but it is a heck to enable and get passed, so linking with gold is simply quicker.

Fixing underlinking provides optimized --as-needed builds (because the "softer" version no longer need to recover libraries that are underlinked), so it is a Good Thing To Do.

Thank you very much for the attention!
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2011-05-15 12:46:56 UTC
Created attachment 273275 [details]
Build log
Comment 2 Fabian Groffen gentoo-dev 2011-05-15 12:53:53 UTC
your blog is down, can you fix?
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2011-05-15 12:57:21 UTC
I prodded my hoster, afraid I had a slashdot effect due to my hurd post :|
Comment 4 Fabian Groffen gentoo-dev 2011-05-15 13:03:19 UTC
Ok, that's nasty.  Could you perhaps for the meanwhile briefly explain what underlinking is in a sentence or two?
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2011-05-15 13:11:16 UTC
Should be back up. But in general it means that it leaves the result to link indirectly against one (or more) library it uses the interface of directly.

An example with libcanberra would be using XFree (from libX11) without listing it, and assuming it is brought in by libgtk*.

In the case of windowmaker, it is using the Fc* functions, which are exposed by libfontconfig, without linking to libfontconfig (it is brought in by libXft). Quick fix: get -lfontconfig in there.
Comment 6 Fabian Groffen gentoo-dev 2011-05-15 13:13:05 UTC
thanks, I see, it misses indirect libs
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2012-05-26 11:29:42 UTC
Is this still a problem with the windowmaker-0.95.* series? I recommend closing as TEST-REQUEST.
Comment 8 Bernard Cafarelli gentoo-dev 2012-06-08 11:18:48 UTC
I just tested with 0.95.3, libWINGs.so.2.0.1 link command does have -lfontconfig now (with a proper configure check also). So this seems indeed to be fixed in 0.95.x series.