Opened 14 years ago

Closed 13 years ago

#2421 closed Bugs (fixed)

config_test needs to link against pthread and rt on linux

Reported by: smr@… Owned by: Vladimir Prus
Milestone: To Be Determined Component: config
Version: Boost 1.36.0 Severity: Problem
Keywords: Cc:

Description

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

Change History (5)

comment:1 by smr@…, 14 years ago

Ooops: forgot to set the component to config.

comment:2 by Marshall Clow, 14 years ago

Component: Nonetest
Milestone: Boost 1.37.0To Be Determined
Owner: set to Gennadiy Rozental

comment:3 by Gennadiy Rozental, 13 years ago

Owner: changed from Gennadiy Rozental to Vladimir Prus

Volodia, Can you please update Jamfile accordingly? I am not sure what needs to be done

comment:4 by Vladimir Prus, 13 years ago

Component: testconfig

Gennadiy,

in fact, it does not appear like this issue is related to Boost.Test at all. It's Boost.Config test that's failing. Anyway, I'll look into that.

comment:5 by Vladimir Prus, 13 years ago

Resolution: fixed
Status: newclosed

This problem appears to be already fixed in [50687].

Note: See TracTickets for help on using tickets.