Issue 16 in socket-sentry: Missing -lpthread in PcapManagerTest and WatcherTest

0 views
Skip to first unread message

socket...@googlecode.com

unread,
Mar 31, 2012, 12:44:02 PM3/31/12
to socket-s...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 16 by f...@flyn.cc: Missing -lpthread in PcapManagerTest and
WatcherTest
http://code.google.com/p/socket-sentry/issues/detail?id=16

What steps will reproduce the problem?
1. Try compiling the socket-sentry 0.9.3 on Archlinux

What is the expected output? What do you see instead?
There is a missing flag that should be passed to gcc so it will link with
the pthread shared library:


-- Configuring done
-- Generating done
-- Build files have been written to:
/home/adam/kdeplasma-addons-applets-socketsentry/src/socketsentry-0.9.3
[ 38%] Built target socksent-service-common
[ 40%] Built target runCookedPacketDecoderTest
[ 43%] Built target runEthernetPacketDecoderTest
[ 46%] Built target runHostAddressUtilsTest
[ 49%] Built target runHostNameCachingTest
[ 52%] Built target runInternetProtocolDecoderTest
[ 54%] Built target runNetworkHistoryTest
Linking CXX executable runPcapManagerTest
/usr/bin/ld: CMakeFiles/runPcapManagerTest.dir/test/PcapManagerTest.cpp.o:
undefined reference to symbol 'pthread_setspecific@@GLIBC_2.0'
/usr/bin/ld: note: 'pthread_setspecific@@GLIBC_2.0' is defined in DSO
/lib/libpthread.so.0 so try adding it to the linker command line
/lib/libpthread.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status


Reply all
Reply to author
Forward
0 new messages