Build fails on Fedora 14 on linking librados-config
Hi,
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
Guido
Am Mittwoch, 7. Dezember 2011, 16:19:24 schrieben Sie:
Quoted 5 lines
Hi,
When building ceph 0.39 on Fedora 14, the build process fails with the following messages:
Quoted 8 lines
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.0so 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
I filed a bug under http://tracker.newdream.net/issues/1797
It turns out compiling works if you call configure with
LIBS="-lpthread" ./configure
Guido