Subject: Re: [boost] [asio] Massive regression failures
From: Beman Dawes (bdawes_at_[hidden])
Date: 2015-03-06 16:31:13
On Thu, Mar 5, 2015 at 12:55 PM, Aparna Kumta <aparna.kumta_at_[hidden]> wrote:
> I am running the regression tests on the develop branch with Oracle Solaris
> Studio12.4 on Solaris 11.2 OS.
> Tests for asio fail as follows:
> ../boost/system/config.hpp", line 34: Error: #error Must not define both
> BOOST_SYSTEM_DYN_LINK and BOOST_SYSTEM_STATIC_LINK.
> I looked at the developer issues on
> and see that asio tests fail similarly.
> I'm not sure what causes both BOOST_SYSTEM_DYN_LINK and
> to be defined on the command line.
> Any idea on how this can be fixed?
The same symptom came up in the Boost.Test library in [test] Fix
Boost.Build issues (#29)
The relevant commit is
According to JÃ¼rgen Hunold comment:
"I've removed the explicit linking to Boost.System and Boost.Timer as
both dependencies are handled by Boost.Build automagically. The test
[ test-btl-lib run : basic_cstring_test : boost_unit_test_framework/static ]
requires static runtime. Unconditionally adding both libraries
globally (for all tests) results in linking against both shared and
And you only need instead of to draw header dependencies."
His comment is specific to Boost.Test, but if you look at the changes
made by his commit (see link above) you can see the fix, which is very
simple. I think Boost.Thread got bitten by a similar problem.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk