Boost logo

Boost :

From: Samuel Krempp (krempp_at_[hidden])
Date: 2003-08-14 04:30:27

On Wed, 2003-08-13 at 16:50, Martin Wille wrote:

> The link failures for the format tests and the ios_state_test likely
> isn't an indication of a problem in the respective libraries.

I was in holidays, sorry I did not respond earlier.

I gave a look at the regression reports, and indeed the pthread linking
problem must be rather unrelated to the code itself in format, which
doesnt call any thread function.

I suspect it's because the tests are linked statically (because of wchar
issues whith some compiler), and it triggers something.

Does anyone have a clue on what to do to fix this ?

I attach a snippet of the reports from



format_test1 / intel-7.1
Linker output:

/opt/intel/compiler70/ia32/lib/libcprts.a(xmtx.o)(.text+0x73): In function `_Mtxinit':
: undefined reference to `pthread_mutex_init'
/opt/intel/compiler70/ia32/lib/libunwind.a(ptn_ix86.o)(.text+0x76): In function `.B2.2':
: undefined reference to `pthread_mutex_unlock'

    . /opt/intel/compiler70/ia32/bin/
    icc -g -static -o "../libs/format/test/bin/format_test1.test/intel-7.1/debug/runtime-link-static/format_test1" "../libs/format/test/bin/format_test1.test/intel-7.1/debug/runtime-link-static/format_test1.o" ../libs/test/build/bin/libboost_test_exec_monitor.a/intel-7.1/debug/runtime-link-static/libboost_test_exec_monitor.a ../libs/test/build/bin/libboost_test_exec_monitor.a/intel-7.1/debug/runtime-link-static/libboost_test_exec_monitor.a -lrt

Boost list run by bdawes at, gregod at, cpdaniel at, john at