Skip to contentSkip to conversation

Build fails on Fedora 14 on linking librados-config

DISCUSSION Guido Winkelmann 1 participant 2 messages Dec 7, 2011 – Dec 9, 2011

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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.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

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