Boost C++ Libraries: Ticket #2421: config_test needs to link against pthread and rt on linux https://svn.boost.org/trac10/ticket/2421 <p> The trunk regression test for config_test (see <a class="ext-link" href="http://tinyurl.com/5rgr9y"><span class="icon">​</span>http://tinyurl.com/5rgr9y</a>) 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. </p> <p> Link [2008-10-16 07:07:22 UTC]: fail </p> <blockquote> <p> "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 </p> </blockquote> <p> /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 </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2421 Trac 1.4.3 smr@… Fri, 17 Oct 2008 04:58:15 GMT <link>https://svn.boost.org/trac10/ticket/2421#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2421#comment:1</guid> <description> <p> Ooops: forgot to set the component to config. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Thu, 06 Nov 2008 16:14:06 GMT</pubDate> <title>component, milestone changed; owner set https://svn.boost.org/trac10/ticket/2421#comment:2 https://svn.boost.org/trac10/ticket/2421#comment:2 <ul> <li><strong>owner</strong> set to <span class="trac-author">Gennadiy Rozental</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">test</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.37.0</span> → <span class="trac-field-new">To Be Determined</span> </li> </ul> Ticket Gennadiy Rozental Sat, 06 Jun 2009 10:01:44 GMT owner changed https://svn.boost.org/trac10/ticket/2421#comment:3 https://svn.boost.org/trac10/ticket/2421#comment:3 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Gennadiy Rozental</span> to <span class="trac-author">Vladimir Prus</span> </li> </ul> <p> Volodia, Can you please update Jamfile accordingly? I am not sure what needs to be done </p> Ticket Vladimir Prus Sat, 06 Jun 2009 11:49:11 GMT component changed https://svn.boost.org/trac10/ticket/2421#comment:4 https://svn.boost.org/trac10/ticket/2421#comment:4 <ul> <li><strong>component</strong> <span class="trac-field-old">test</span> → <span class="trac-field-new">config</span> </li> </ul> <p> Gennadiy, </p> <p> 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. </p> Ticket Vladimir Prus Sat, 06 Jun 2009 11:58:11 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2421#comment:5 https://svn.boost.org/trac10/ticket/2421#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> This problem appears to be already fixed in <a class="changeset" href="https://svn.boost.org/trac10/changeset/50687" title="Try and fix linux regressions">[50687]</a>. </p> Ticket