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 727479 - -Wl,-z,defs triggers undefined references on OpenBSD
-Wl,-z,defs triggers undefined references on OpenBSD
Status: RESOLVED FIXED
Product: rygel
Classification: Applications
Component: general
0.22.x
Other OpenBSD
: Normal normal
: ---
Assigned To: rygel-maint
rygel-maint
Depends on:
Blocks:
 
 
Reported: 2014-04-02 07:01 UTC by Antoine Jacoutot
Modified: 2014-04-29 18:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
build: Remove -Wl,-z,defs (904 bytes, patch)
2014-04-29 18:32 UTC, Jens Georg
committed Details | Review

Description Antoine Jacoutot 2014-04-02 07:01:21 UTC
Hi.

By default rygel builds the plugins with:
RYGEL_PLUGIN_LINKER_FLAGS="-module -avoid-version -Wl,-z,defs"

This fails on OpenBSD with:
<...>
undefined reference to `__stack_smash_handler'
undefined reference to `strerror'
undefined reference to `lseek'

On OpenBSD, shared libs and modules are not linked to libc and so -Wl,-z,defs will trigger these undefined references. Is there any reason we must use this flag? I could always send a patch to make it conditional on OpenBSD but I wanted the developers though first :-)

Thank you.
Comment 1 Antoine Jacoutot 2014-04-17 07:36:18 UTC
Hi.

Any opinion or can I cook a patch to drop -Wl,-z,defs ?
Comment 2 Jens Georg 2014-04-17 09:42:39 UTC
Will have a look and get back to you
Comment 3 Jens Georg 2014-04-29 18:32:54 UTC
Created attachment 275440 [details] [review]
build: Remove -Wl,-z,defs

Was added by accident and seems to cause problems on some platforms

Signed-off-by: Jens Georg <mail@jensge.org>
Comment 4 Jens Georg 2014-04-29 18:36:21 UTC
Attachment 275440 [details] pushed as 0483d5f - build: Remove -Wl,-z,defs