You are not logged in.

#1 2015-10-22 12:57:55

mvymazal
Member
Registered: 2015-08-08
Posts: 30

[Solved] Boost test in arch linux

Hello everyone,

I'm trying to compile a C++ code of mine (which normally works) after I updated boost this morning. I'm getting the following error:

undefined reference to `boost::test_tools::tt_detail::check_impl

It seems that the boost_unit_test_framework in arch is missing this function. The command

   grep check_impl $(find /usr/lib/ -name "libboost*.so")

Does not return anything. On the other hand, with boost that I compiled myself, grep confirms that the function 'check_impl' is present in boost_unit_test_framework and the linking goes fine. This is with boost 1.59.0-2.

One side question: why are there boost libs in /usr/lib AND in /usr/lib64? (I have 64 bit system). I searched the libraries in both /usr/lib and /usr/lib64, the result is the same (check_impl not present) in case you're wondering.

Martin

Last edited by mvymazal (2015-10-26 13:03:46)

Offline

#2 2015-10-22 13:07:08

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: [Solved] Boost test in arch linux

I can't help with most of this - but the libs in /usr/lib and /usr/lib64 are the exact same files: /usr/lib64 is a link to /usr/lib


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2015-10-22 13:43:25

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: [Solved] Boost test in arch linux

Based on the following, I believe you need to modify your code to support Boost 1.59.

https://github.com/eranpeer/FakeIt/issues/38
https://github.com/eranpeer/FakeIt/commit/b6951256411e

The following upstream change appears to have renamed check_impl() to report_assertion():

https://github.com/boostorg/test/commit/bae8de14b4b5

Offline

#4 2015-10-25 20:22:13

mvymazal
Member
Registered: 2015-08-08
Posts: 30

Re: [Solved] Boost test in arch linux

Hi,

you're right - this was not at all issue with boost, but my code. I was linking to boost 1.59 and also to a third-party code that was compiled with older boost version, hence the linking errors. Sorry for the false alarm.

Offline

#5 2015-10-25 22:09:25

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] Boost test in arch linux

Not a Pacman Issue, moving to Creating Packages.

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB