GNOME Bugzilla – Bug 766221
Look for both dlopen and dlsym when configuring
Last modified: 2016-05-18 12:51:58 UTC
Trying to jhbuild gnome-keyring on my system, I got /usr/bin/ld: pkcs11/rpc-layer/gkm_rpc_daemon_standalone-gkm-rpc-daemon-standalone.o: undefined reference to symbol 'dlsym@@GLIBC_2.2.5' //lib/x86_64-linux-gnu/libdl.so.2: error adding symbols: DSO missing from command line Because DL_LIBS wasn't being set to -ldl, as the check only looked for dlopen and not dlsym too, which fixes the problem. Attached patch is adapted from glib.
Created attachment 327575 [details] [review] Look for both dlopen and dlsym when configuring We use both, and they may not both be exposed by libc but by libdl instead.
Created attachment 327576 [details] [review] Look for both dlopen and dlsym when configuring We use both, and they may not both be exposed by libc but by libdl instead.
Thanks. Merged into git master. Attachment 327576 [details] pushed as 4e6eca9 - Look for both dlopen and dlsym when configuring