Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 371839 - x11-misc/keytouch-2.4.1 - ld: plugin.o: undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
Summary: x11-misc/keytouch-2.4.1 - ld: plugin.o: undefined reference to symbol 'dlclos...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tristan Heaven (RETIRED)
URL:
Whiteboard: Pending removal: 2014-07-22
Keywords: PMASKED
: 497430 (view as bug list)
Depends on:
Blocks: underlinking 486460 gnome2-mask
  Show dependency tree
 
Reported: 2011-06-15 20:21 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2014-07-27 10:33 UTC (History)
3 users (show)

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


Attachments
Build log (keytouch-2.4.1:20110615-190448.log,30.16 KB, text/plain)
2011-06-15 20:21 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-06-15 20:21:02 UTC
Created attachment 277173 [details]
Build log

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 Jeroen Roovers (RETIRED) gentoo-dev 2014-01-08 02:50:00 UTC
*** Bug 497430 has been marked as a duplicate of this bug. ***
Comment 2 Homer 2014-04-19 23:53:19 UTC
I get this same error even switching to the BFD linker (via package.env):

/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: plugin.o: undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: note: 'dlclose@@GLIBC_2.2.5' is defined in DSO /lib64/libdl.so.2 so try adding it to the linker command line
/lib64/libdl.so.2: could not read symbols: Invalid operation

So this is not just a Gold error.

The fix is to add "-ldl -lm" to the LDFLAGS.
Comment 3 Pacho Ramos gentoo-dev 2014-06-22 19:34:09 UTC
I wonder if we should maybe treeclean this as upstream is clearly dead for ages, Debian dropped it due some unresolved bugs with recent X versions:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=632110

and is also the last consumer of old gnome-menus slot :/

What do you think?
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2014-06-22 19:37:14 UTC
+1 for removal, we shouldn't ship anything using the old gnome2 core anymore, and gnome-menus is part of that
Comment 5 Tristan Heaven (RETIRED) gentoo-dev 2014-06-22 21:19:25 UTC
I'm okay with removal
Comment 6 Pacho Ramos gentoo-dev 2014-07-27 10:33:35 UTC
dropped