|
Boost : |
Subject: Re: [boost] [1.38.0] [config] Linux release branch link failures
From: Dmitry Goncharov (dgoncharov_at_[hidden])
Date: 2009-01-20 11:27:23
You could link against librt and libpthread.
E.g. -lrt -lpthread
BR, Dmitry
Beman Dawes wrote:
> config_test is failing with link errors on both Linux testers. Any ideas?
>
> --Beman
>
> "g++" -o
> "/home/steve/Packages/boost/upstream/testing/release/results/boost/bin.v2/libs/config/test/config_test.test/gcc-4.3.3/debug/config_test"
> -Wl,--start-group
> "/home/steve/Packages/boost/upstream/testing/release/results/boost/bin.v2/libs/config/test/config_test.test/gcc-4.3.3/debug/config_test.o"
> -Wl,-Bstatic -Wl,-Bdynamic -Wl,--end-group -g
>
>
> /home/steve/Packages/boost/upstream/testing/release/results/boost/bin.v2/libs/config/test/config_test.test/gcc-4.3.3/debug/config_test.o:
> In function `boost_has_pthread_mutexattr_settype::f()':
> /home/steve/Packages/boost/upstream/testing/release/boost/status/../libs/config/test/boost_has_pthread_ma_st.ipp:21:
> undefined reference to `pthread_mutexattr_init'
> /home/steve/Packages/boost/upstream/testing/release/boost/status/../libs/config/test/boost_has_pthread_ma_st.ipp:23:
> undefined reference to `pthread_mutexattr_settype'
> /home/steve/Packages/boost/upstream/testing/release/results/boost/bin.v2/libs/config/test/config_test.test/gcc-4.3.3/debug/config_test.o:
> In function `boost_has_pthreads::test()':
> /home/steve/Packages/boost/upstream/testing/release/boost/status/../libs/config/test/boost_has_pthreads.ipp:35:
> undefined reference to `pthread_mutex_trylock'
> /home/steve/Packages/boost/upstream/testing/release/boost/status/../libs/config/test/boost_has_pthreads.ipp:44:
> undefined reference to `pthread_create'
> /home/steve/Packages/boost/upstream/testing/release/boost/status/../libs/config/test/boost_has_pthreads.ipp:52:
> undefined reference to `pthread_join'
> /home/steve/Packages/boost/upstream/testing/release/results/boost/bin.v2/libs/config/test/config_test.test/gcc-4.3.3/debug/config_test.o:
> In function `boost_has_clock_gettime::f()':
> /home/steve/Packages/boost/upstream/testing/release/boost/status/../libs/config/test/boost_has_clock_gettime.ipp:21:
> undefined reference to `clock_gettime'
> collect2: ld returned 1 exit status
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk