Boost logo

Boost :

From: Rene Rivera (grafik.list_at_[hidden])
Date: 2005-10-10 16:50:49


Caleb Epstein wrote:
> On 10/10/05, Douglas Gregor <dgregor_at_[hidden]> wrote:
>
>>|spirit|
>>bug_000008: gcc-3_4_3-sunos
>>grammar_mt_tests: gcc-3_4_3-sunos
>>owi_mt_tests: gcc-3_4_3-sunos
>>scoped_lock_tests: gcc-3_4_3-sunos
>>scoped_lock_tests_debug: gcc-3_4_3-sunos
>
> See:* *http://tinyurl.com/8jg2h
>
> These failures all appear to be due to unresolved externals when linking
> with Boost.Threads (nanosleep, sched_yield). I'm claiming major bjam
> ignorance, so I need help fixing this: how can I ensure that -lrt is
> included in the link libraries when these tests are built?

Well there's already handling in gcc-tools.jam to add the -lrt when
running in SunOS. It tests that uname is of the "SunOS*" form. What does
uname return on that machine?

Oh, I think I see the problem. The test you pointed to isn't being built
as multi-threaded. The build requirements for those tests need to have
"<threading>multi" added so that it links in the thread libraries.

Grr, except it looks like the Spirit tests are already trying to add
that requirement.

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - Grafik/jabber.org

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk