Test library fails to link on OS X 10.3 Panther
I've downloaded boost-1.30.2 and boost-jam-3.1.7 to my PowerBook running Mac OS X 10.3 (Panther). After installing boost-jam without problems, I'm attempting to build the boost test library as follows: $ uname -a Darwin spiff.local 7.2.0 Darwin Kernel Version 7.2.0: Thu Dec 11 16:20:23 PST 2003; root:xnu/xnu-517.3.7.obj~1/RELEASE_PPC Power Macintosh powerpc $ gcc_select Current default compiler: gcc version 3.3 20030304 (Apple Computer, Inc. build 1495) $ cd boost-1.30.2/libs/test/build $ bjam -sTOOLS=darwin It chugs for a while, but gets link failures. It gives a warning about undefined symbols and dies. The symbols are cpp_main, test_main, and init_unit_test_suite. It doesn't really look like this is a fatal error - it says it's just a warning and that prebinding is disabled. And I think these are to be defined by the user of the library, so isn't it normal for them to be undefined here? In any case, this is the only error I see other than bjam complaining that the command failed. Any ideas how to fix it? Thanks, Scott Lamb The first of the failed commands did this: darwin-Link-DyLib-action ../../../libs/test/build/bin/libboost_prg_exec_monitor. dylib/darwin/debug/runtime-link-static/shared-linkable-true/ libboost_prg_exec_mo nitor.dylib ld: warning prebinding disabled because of undefined symbols ld: Undefined symbols: cpp_main(int, char**) export DYLD_LIBRARY_PATH ld -dynamic -m -r -d -o "../../../libs/test/build/bin/libboost_prg_exec_moni tor.dylib/darwin/debug/runtime-link-static/shared-linkable-true/ libboost_prg_exe c_monitor.lo" "../../../libs/test/build/bin/libboost_prg_exec_monitor.dylib/dar win/debug/runtime-link-static/shared-linkable-true/execution_monitor.o" "../../. ./libs/test/build/bin/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 -Wl,-dylib_compatibility_version,1.30.2 -W,l-dylib_current_version,1.30.2 -o ". ./../../libs/test/build/bin/libboost_prg_exec_monitor.dylib/darwin/ debug/runtime -link-static/shared-linkable-true/libboost_prg_exec_monitor.dylib" "../../../li bs/test/build/bin/libboost_prg_exec_monitor.dylib/darwin/debug/runtime- link-stat ic/shared-linkable-true/libboost_prg_exec_monitor.lo" \ \ \ && \ rm -f "../../../libs/test/build/bin/libboost_prg_exec_monitor.dylib/darwin/d ebug/runtime-link-static/shared-linkable-true/ libboost_prg_exec_monitor.lo" ...failed darwin-Link-DyLib-action ../../../libs/test/build/bin/libboost_prg_exe c_monitor.dylib/darwin/debug/runtime-link-static/shared-linkable-true/ libboost_prg_exec_monitor.dylib...
It chugs for a while, but gets link failures. It gives a warning about undefined symbols and dies. The symbols are cpp_main, test_main, and init_unit_test_suite. It doesn't really look like this is a fatal error - it says it's just a warning and that prebinding is disabled. And I think these are to be defined by the user of the library, so isn't it normal for them to be undefined here?
Yes. You right those are user defined. I do not know why you are getting warnings or errors.
In any case, this is the only error I see other than bjam complaining that the command failed. Any ideas how to fix it?
Thanks, Scott Lamb
Gennadiy
participants (2)
-
Gennadiy Rozental
-
Scott Lamb