Subject: [Boost-bugs] [Boost C++ Libraries] #9038: [pool] Test cases need to link with boost_system DSO on Linux
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-08-22 21:19:48
#9038: [pool] Test cases need to link with boost_system DSO on Linux
---------------------------------------+----------------------
Reporter: Petr Machata <pmachata@â¦> | Owner: cnewbold
Type: Bugs | Status: new
Milestone: To Be Determined | Component: pool
Version: Boost 1.54.0 | Severity: Problem
Keywords: |
---------------------------------------+----------------------
Currently running the test suite for Boost.Pool gives me messages like the
following:
{{{
/home/petr/rpmbuild/BUILD/boost_1_53_0/tests-
out/boost/bin.v2/libs/pool/test/test_simple_seg_storage.test/gcc-4.8.1/debug/test_simple_seg_storage.o:
In function `__static_initialization_and_destruction_0':
/home/petr/rpmbuild/BUILD/boost_1_53_0/libs/pool/test/../../../boost/system/error_code.hpp:214:
undefined reference to `boost::system::generic_category()'
/home/petr/rpmbuild/BUILD/boost_1_53_0/libs/pool/test/../../../boost/system/error_code.hpp:215:
undefined reference to `boost::system::generic_category()'
/home/petr/rpmbuild/BUILD/boost_1_53_0/libs/pool/test/../../../boost/system/error_code.hpp:216:
undefined reference to `boost::system::system_category()'
}}}
I'm not sure whether Boost.Pool uses Boost.System directly, but on Linux,
linking with Boost.System DSO is commonly needed also when one uses
Boost.Thread header files.
I'm attaching a patch that fixes the obvious cases. Unfortunately I don't
know enough Jam magic to fix the valgrind invocations as well.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9038> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:13 UTC