Bug 506206
Summary: | problems linking with -z defs | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] 389 | Reporter: | Luis Vivero P. <morenisco> | ||||
Component: | Directory Server | Assignee: | Rich Megginson <rmeggins> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Viktor Ashirov <vashirov> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 1.2.1 | CC: | rmeggins | ||||
Target Milestone: | --- | Keywords: | VerifiedUpstream | ||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2015-12-07 16:51:07 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 543590 | ||||||
Attachments: |
|
Description
Luis Vivero P.
2009-06-16 02:00:54 UTC
I think this same thing causes problems with Fedora pre-linking - there may be other libraries that we need to add Are you sure it is -lrt that is needed? On my RHEL5 x86_64 system, the sem_* functions are provided by libpthread: ll /usr/lib64/librt.so lrwxrwxrwx 1 root root 22 Sep 29 20:01 /usr/lib64/librt.so -> ../../lib64/librt.so.1* readelf -s /lib64/librt.so.1 |grep sem # nothing ll /lib64/libpthread.so.0 lrwxrwxrwx 1 root root 17 Sep 29 19:55 /lib64/libpthread.so.0 -> libpthread-2.5.so* readelf -s /lib64/libpthread-2.5.so |grep sem 80: 0000003bac20cb50 57 FUNC GLOBAL DEFAULT 12 sem_post@@GLIBC_2.2.5 88: 0000003bac20ca10 36 FUNC GLOBAL DEFAULT 12 sem_trywait@@GLIBC_2.2.5 .... 907: 0000003bac20ca10 36 FUNC GLOBAL DEFAULT 12 sem_trywait 917: 0000003bac20c180 925 FUNC GLOBAL DEFAULT 12 sem_open 944: 0000003bac20c970 139 FUNC GLOBAL DEFAULT 12 sem_wait So instead of needed -lrt, I think -lpthread is needed. Created attachment 396306 [details]
patch
pushed to master commit 2cc5ac4e6de01c75d3b974146fde7f41a77b0268 Author: Rich Megginson <rmeggins> Date: Thu Feb 25 08:46:32 2010 -0700 Reviewed by: nhosoi (Thanks!) Branch: HEAD Fix Description: Some platforms (debian) and some build checking tools (rpmlint, others) link with -z defs to look for any undefined references at link time. We had several of these in various directory server objects. 1) all of the plugins need to link against libslapd.la 2) most of the plugins need to link against ldapcsdk and nspr 3) the pwdstorage plugin needs to link against LIBCRYPT, which is platform dependent 4) various other link fixes Platforms tested: RHEL5 x86_64 Flag Day: yes - autotool file changes Doc impact: no The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days |