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 670956 - glib-networking: Undefined references to glib symbols in pkcs11 TLS backend
glib-networking: Undefined references to glib symbols in pkcs11 TLS backend
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: network
2.31.x
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2012-02-28 10:21 UTC by Kalev Lember
Modified: 2012-02-28 13:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
pkcs11: Link libgiopkcs11.la against glib (736 bytes, patch)
2012-02-28 10:23 UTC, Kalev Lember
committed Details | Review

Description Kalev Lember 2012-02-28 10:21:39 UTC
In glib-networking pkcs11 TLS backend, the libgiopkcs11.la convenience library isn't linked with glib. This makes linking fail on platforms that don't allow undefined symbols, like win32:

  CCLD   pkcs11-util.exe
../../tls/pkcs11/.libs/libgiopkcs11.a(gpkcs11util.o): In function `g_pkcs11_get_error_domain':
glib-networking/tls/pkcs11/gpkcs11util.c:38: undefined reference to `g_once_init_enter'
glib-networking/tls/pkcs11/gpkcs11util.c:40: undefined reference to `g_quark_from_static_string'
glib-networking/tls/pkcs11/gpkcs11util.c:41: undefined reference to `g_once_init_leave'
../../tls/pkcs11/.libs/libgiopkcs11.a(gpkcs11util.o): In function `g_pkcs11_propagate_error':
glib-networking/tls/pkcs11/gpkcs11util.c:56: undefined reference to `g_set_error_literal'
collect2: error: ld returned 1 exit status
Comment 1 Kalev Lember 2012-02-28 10:23:23 UTC
Created attachment 208562 [details] [review]
pkcs11: Link libgiopkcs11.la against glib
Comment 2 Dan Winship 2012-02-28 13:11:31 UTC
Comment on attachment 208562 [details] [review]
pkcs11: Link libgiopkcs11.la against glib

looks right
Comment 3 Kalev Lember 2012-02-28 13:21:19 UTC
Review of attachment 208562 [details] [review]:

Thanks, pushed to master as 28f8b68