[Boost-bugs] [Boost C++ Libraries] #2421: config_test needs to link against pthread and rt on linux

Subject: [Boost-bugs] [Boost C++ Libraries] #2421: config_test needs to link against pthread and rt on linux
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-10-17 04:56:44


#2421: config_test needs to link against pthread and rt on linux
----------------------------+-----------------------------------------------
 Reporter: smr_at_[hidden] | Type: Bugs
   Status: new | Milestone: Boost 1.37.0
Component: None | Version: Boost 1.36.0
 Severity: Problem | Keywords:
----------------------------+-----------------------------------------------
 The trunk regression test for config_test (see http://tinyurl.com/5rgr9y)
 is failing at the link stage (see below). The link step needs to link
 against pthread and rt; i.e. add "-lpthread -lrt" to the link command.

 Link [2008-10-16 07:07:22 UTC]: fail

     "g++" -o
 "/home/steve/Packages/boost/upstream/testing/trunk/results/boost/bin.v2/libs/config/test/config_test.test/gcc-4.3.2/debug/config_test"
 -Wl,--start-group
 "/home/steve/Packages/boost/upstream/testing/trunk/results/boost/bin.v2/libs/config/test/config_test.test/gcc-4.3.2/debug/config_test.o"
 -Wl,-Bstatic -Wl,-Bdynamic -Wl,--end-group -g


 /home/steve/Packages/boost/upstream/testing/trunk/results/boost/bin.v2/libs/config/test/config_test.test/gcc-4.3.2/debug/config_test.o:
 In function `boost_has_pthread_mutexattr_settype::f()':
 /home/steve/Packages/boost/upstream/testing/trunk/boost/status/../libs/config/test/boost_has_pthread_ma_st.ipp:21:
 undefined reference to `pthread_mutexattr_init'
 /home/steve/Packages/boost/upstream/testing/trunk/boost/status/../libs/config/test/boost_has_pthread_ma_st.ipp:23:
 undefined reference to `pthread_mutexattr_settype'
 /home/steve/Packages/boost/upstream/testing/trunk/results/boost/bin.v2/libs/config/test/config_test.test/gcc-4.3.2/debug/config_test.o:
 In function `boost_has_pthreads::test()':
 /home/steve/Packages/boost/upstream/testing/trunk/boost/status/../libs/config/test/boost_has_pthreads.ipp:35:
 undefined reference to `pthread_mutex_trylock'
 /home/steve/Packages/boost/upstream/testing/trunk/boost/status/../libs/config/test/boost_has_pthreads.ipp:44:
 undefined reference to `pthread_create'
 /home/steve/Packages/boost/upstream/testing/trunk/boost/status/../libs/config/test/boost_has_pthreads.ipp:52:
 undefined reference to `pthread_join'
 /home/steve/Packages/boost/upstream/testing/trunk/results/boost/bin.v2/libs/config/test/config_test.test/gcc-4.3.2/debug/config_test.o:
 In function `boost_has_clock_gettime::f()':
 /home/steve/Packages/boost/upstream/testing/trunk/boost/status/../libs/config/test/boost_has_clock_gettime.ipp:21:
 undefined reference to `clock_gettime'
 collect2: ld returned 1 exit status

-- 
Ticket URL: <http://svn.boost.org/trac/boost/ticket/2421>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:59 UTC