After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 766221 - Look for both dlopen and dlsym when configuring
Look for both dlopen and dlsym when configuring
Status: RESOLVED FIXED
Product: gnome-keyring
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: GNOME keyring maintainer(s)
GNOME keyring maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2016-05-10 11:18 UTC by Iain Lane
Modified: 2016-05-18 12:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Look for both dlopen and dlsym when configuring (1.36 KB, patch)
2016-05-10 11:18 UTC, Iain Lane
none Details | Review
Look for both dlopen and dlsym when configuring (1.36 KB, patch)
2016-05-10 11:21 UTC, Iain Lane
none Details | Review

Description Iain Lane 2016-05-10 11:18:40 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.
Comment 1 Iain Lane 2016-05-10 11:18:44 UTC
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.
Comment 2 Iain Lane 2016-05-10 11:21:18 UTC
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.
Comment 3 Stef Walter 2016-05-18 12:51:58 UTC
Thanks. Merged into git master.

Attachment 327576 [details] pushed as 4e6eca9 - Look for both dlopen and dlsym when configuring