I am unable to build boost.test 1.32.0 on MacOS X 10.3/10.4.
The build fails due to some undefined symbols.
On MacOS 10.3, these symbols are:
cpp_main(int, char**)
test_main(int, char**)
init_unit_test_suite(int,
char**)
On 10.4, these symbols are
__Z8cpp_mainiPPc
__Z9test_mainiPPc
__Z20init_unit_test_suiteiPPc
Does anyone know why this is happening and how to fix
it? Thanks. Below is the output of the first of these link errors
on 10.3:
darwin-Link-DyLib-action
builddir/bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/debug/runtime-link-static/shared-linkable-true/libboost_prg_exec_monitor-sd-1_32.dylib
ld: Undefined symbols:
cpp_main(int, char**)
DYLD_LIBRARY_PATH=builddir/bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/debug/runtime-link-static/shared-linkable-true
export
DYLD_LIBRARY_PATH
ld
-dynamic -m -r -d -o
"builddir/bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/debug/runtime-link-static/shared-linkable-true/libboost_prg_exec_monitor-sd-1_32.lo"
"builddir/bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/debug/runtime-link-static/shared-linkable-true/execution_monitor.o"
"builddir/bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/debug/runtime-link-static/shared-linkable-true/cpp_main.o"
\
&&
\
c++
-static-libgcc -g -Wl,-dynamic -nostartfiles -Wl,-dylib -Wl,-ldylib1.o -o
"builddir/bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/debug/runtime-link-static/shared-linkable-true/libboost_prg_exec_monitor-sd-1_32.dylib"
"builddir/bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/debug/runtime-link-static/shared-linkable-true/libboost_prg_exec_monitor-sd-1_32.lo"
\
\
\
&&
\
rm -f
"builddir/bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/debug/runtime-link-static/shared-linkable-true/libboost_prg_exec_monitor-sd-1_32.lo"
...failed
darwin-Link-DyLib-action
builddir/bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/debug/runtime-link-static/shared-linkable-true/libboost_prg_exec_monitor-sd-1_32.dylib...
...skipped
<@boost!lib>libboost_prg_exec_monitor-sd-1_32.dylib for lack of
<@boost!libs!test!build/libboost_prg_exec_monitor.dylib/darwin/debug/runtime-link-static/shared-linkable-true>libboost_prg_exec_monitor-sd-1_32.dylib...