[C++-sig] Link trouble on OS X
Scott A. Smith
ssmith at magnet.fsu.edu
Thu May 23 17:27:05 CEST 2002
Hi Dave,
I've clipped out the CygWin stuff and rewrite with a different Subject
when I have time to reattempt the build.
> You can look at tools/build/python.jam if you can understand it. However,
> if you want me to help what I need from you is information about a link
> command-line that works. For that, you can just do experiments by hand
> until you find something that works.
OK. Here is the exact output from jam when I do the build.
export LD_LIBRARY_PATH
c++ -s -fPIC -shared -o
"../../../libs/python/build/bin/libboost_python.so/gcc/release/inlining-on/r
untime-link-dynamic/shared-linkable-true/libboost_python.so" -L/sw/lib/pyth
on2.2/config
"../../../libs/python/build/bin/libboost_python.so/gcc/release/inlining-on/r
untime-link-dynamic/shared-linkable-true/types.o"
"../../../libs/python/build/bin/libboost_python.so/gcc/release/inlining-on/r
untime-link-dynamic/shared-linkable-true/classes.o"
"../../../libs/python/build/bin/libboost_python.so/gcc/release/inlining-on/r
untime-link-dynamic/shared-linkable-true/conversions.o"
"../../../libs/python/build/bin/libboost_python.so/gcc/release/inlining-on/r
untime-link-dynamic/shared-linkable-true/extension_class.o"
"../../../libs/python/build/bin/libboost_python.so/gcc/release/inlining-on/r
untime-link-dynamic/shared-linkable-true/functions.o"
"../../../libs/python/build/bin/libboost_python.so/gcc/release/inlining-on/r
untime-link-dynamic/shared-linkable-true/init_function.o"
"../../../libs/python/build/bin/libboost_python.so/gcc/release/inlining-on/r
untime-link-dynamic/shared-linkable-true/module_builder.o"
"../../../libs/python/build/bin/libboost_python.so/gcc/release/inlining-on/r
untime-link-dynamic/shared-linkable-true/objects.o"
"../../../libs/python/build/bin/libboost_python.so/gcc/release/inlining-on/r
untime-link-dynamic/shared-linkable-true/cross_module.o"
"../../../libs/python/build/bin/libboost_python.so/gcc/release/inlining-on/r
untime-link-dynamic/shared-linkable-true/errors.o" -lutil
/usr/bin/ld: can't locate file for: -lutil
I looked around for any util library but cannot find it. I also just tried a
simpler version
export LD_LIBRARY_PATH
c++ -s -fPIC -shared -o
"../../../libs/python/build/bin/libboost_python.so/gcc/release/inlining-on/r
untime-link-dynamic/shared-linkable-true/libboost_python.so" -L/sw/lib/pyth
on2.2/config
"../../../libs/python/build/bin/libboost_python.so/gcc/release/inlining-on/r
untime-link-dynamic/shared-linkable-true/types.o"
but this left me with complaints that it could not find anything. Here is
the output from that.
/usr/bin/ld: Undefined symbols:
_main
_PyErr_SetObject
_PyErr_SetString
_PyExc_IndexError
_PyExc_RuntimeError
_PyExc_ValueError
___Q35boost6python6stringPCc
___apl__Q35boost6python6stringRCB0
___builtin_delete
___builtin_new
___cp_push_exception
___eh_alloc
___pure_virtual
___rtti_si
___rtti_user
___throw
___vt_9exception
_get__CQ35boost6python6object
_handle_exception_impl__Q25boost6pythonGQ25boostt9function04ZvZQ25boost21emp
ty_function_policyZQ25boost20empty_function_mixinZt9allocator1ZQ25boost13fun
ction_base
_terminate__Fv
___eprintf
___tf9exception
___ti9exception
If you can give me some clues as to what I should add in to the compilation
command or what
should be set for LD_LIBRARY_PATH I'll be happy to give it and variants a
try. In the meantime
I will look around for any known problems with OS X and builds of shared
libraries.
Best Regards,
Scott
-----------------------------------------
-----------------------------------------
Dr. Scott A. Smith
Associate in Research
National High Magnetic Field Laboratory
1800 East Paul Dirac Drive
Tallahassee, FL 32310
phone: (850) 644-6348
FAX: (850) 644-1366
email: ssmith at magnet.fsu.edu
http://www.magnet.fsu.edu
http://gamma.magnet.fsu.edu
More information about the Cplusplus-sig
mailing list