Bug #1797
configure doesn't link to pthread on Fedora 14 on linking librados-config
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
librados
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
When building ceph 0.39 on Fedora 14, the build process fails with the
following messages:
CXXLD librados-config
/usr/bin/ld: ./.libs/libglobal.a(libcommon_la-HeartbeatMap.o): undefined
reference to symbol 'pthread_rwlock_wrlock@GLIBC_2.2.5'
/usr/bin/ld: note: 'pthread_rwlock_wrlock
@GLIBC_2.2.5' is defined in DSO
/lib64/libpthread.so.0 so try adding it to the linker command line
/lib64/libpthread.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[3]: *** [librados-config] Error 1
Related issues
History
#1 Updated by Guido Winkelmann over 12 years ago
I just find out it works when you call configure with
LIBS="-lpthread" ./configure
Still a bug, though, the configure script should figure out by itself when it needs to link to libpthread.
#2 Updated by Sage Weil over 12 years ago
- Subject changed from Build fails on Fedora 14 on linking librados-config to configure doesn't link to pthread on Fedora 14 on linking librados-config
#3 Updated by Sage Weil about 12 years ago
- Status changed from New to Resolved
I'm going to assume that using the automake pthread macros fix this (c5144eed4eadf5cfaa0a41c0ced2a1cd3462289f)...