Opened 9 years ago
#9038 new Bugs
[pool] Test cases need to link with boost_system DSO on Linux
Reported by: | Owned by: | Chris Newbold | |
---|---|---|---|
Milestone: | To Be Determined | Component: | pool |
Version: | Boost 1.54.0 | Severity: | Problem |
Keywords: | Cc: |
Description
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.
Attachments (2)
Change History (2)
by , 9 years ago
Attachment: | boost-1.54.0-pool-test_linking.patch added |
---|
by , 7 years ago
Attachment: | boost-1.58.0-pool-test_linking.patch added |
---|
Updated patch for 1.58.0 and 1.59.0
Note:
See TracTickets
for help on using tickets.
A fix.