On 20-May-14, at 8:24 PM, John David Anglin wrote:

libtool: link: g++-4.8 -I/usr/include/nss -I/usr/include/nspr -Wall - Wtype-limit s -Wignored-qualifiers -Winit-self -Wpointer-arith -Werror=format- security -fno- strict-aliasing -fsigned-char -rdynamic -ftemplate-depth-1024 -Wnon- virtual-dtor -Wno-invalid-offsetof -Wstrict-null-sentinel -g -O2 -Wformat - Werror=format-sec urity -o ceph_erasure_code_benchmark test/erasure-code/ ceph_erasure_code_benchma rk.o -Wl,--as-needed ./.libs/libosd.a ./.libs/libosdc.a ./.libs/ libos.a -laio . /.libs/libperfglue.a -lboost_program_options ./.libs/ libglobal.a ./.libs/libcomm on.a -lnss3 -lnssutil3 -lsmime3 -lssl3 -lplds4 -lplc4 -lnspr4 -luuid -lm /usr/li b/libatomic_ops.a -lrt -ldl -lboost_thread -lboost_system -lleveldb - lsnappy /usr/bin/ld.bfd.real: ./.libs/libglobal.a(HeartbeatMap.o): undefined reference t
o symbol 'pthread_rwlock_wrlock@@GLIBC_2.2'
//lib/hppa-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from com
mand line
collect2: error: ld returned 1 exit status
Makefile:7080: recipe for target 'ceph_erasure_code_benchmark' failed

It seems $(PTHREAD_CFLAGS) needs to be added to a lot of *_LDADD statements in Makefile.in. This causes -lpthread to be added to link command in the correct location.

Dave
--
John David Anglin       [email protected]


--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to