Boost logo

Boost Users :

From: Carr, Dudley (dcarr_at_[hidden])
Date: 2002-03-25 04:10:30


> Hi,
>
> I'm attempting to compile the shared library version of boost-python on
> Solaris 2.6 using gcc2.95.3, Sun's ld, and python 2.1. The compilation
> works just fine, but the linking phase for creating libboost-python.so
> fails. Here is the relevant info for my compilation:
>
> jam -sBOOST_ROOT=. -sTOOLS="gcc" -sPYTHON_ROOT=/home/dcarr/opt/python
> -sPYTHON_VERSION=2.1 -sPYTHON=/home/dcarr/opt/python/bin/python2.1
>
> And where things go wrong...
>
> gcc-Link-action
> ../../../libs/python/build/bin/libboost_python/gcc/debug/runtime-link-dyna
> mic/shared-linkable-true/libboost_python.so
> ld: fatal: library -lutil: not found
> ld: elf error: file .: elf_begin: I/O error: region read: Is a directory
> ld: fatal: File processing errors. No output written to
> ../../../libs/python/build/bin/libboost_python/gcc/debug/runtime-link-dyna
> mic/shared-linkable-true/libboost_python.so
> collect2: ld returned 1 exit status
>
> g++ -g -fPIC -shared -o
> "../../../libs/python/build/bin/libboost_python/gcc/debug/runtime-link-dyn
> amic/shared-linkable-true/libboost_python.so"
> -L/home/dcarr/opt/python/lib/python2.1/config
> "../../../libs/python/build/bin/libboost_python/gcc/debug/runtime-link-dyn
> amic/shared-linkable-true/types.o"
> "../../../libs/python/build/bin/libboost_python/gcc/debug/runtime-link-dyn
> amic/shared-linkable-true/classes.o"
> "../../../libs/python/build/bin/libboost_python/gcc/debug/runtime-link-dyn
> amic/shared-linkable-true/conversions.o"
> "../../../libs/python/build/bin/libboost_python/gcc/debug/runtime-link-dyn
> amic/shared-linkable-true/extension_class.o"
> "../../../libs/python/build/bin/libboost_python/gcc/debug/runtime-link-dyn
> amic/shared-linkable-true/functions.o"
> "../../../libs/python/build/bin/libboost_python/gcc/debug/runtime-link-dyn
> amic/shared-linkable-true/init_function.o"
> "../../../libs/python/build/bin/libboost_python/gcc/debug/runtime-link-dyn
> amic/shared-linkable-true/module_builder.o"
> "../../../libs/python/build/bin/libboost_python/gcc/debug/runtime-link-dyn
> amic/shared-linkable-true/objects.o"
> "../../../libs/python/build/bin/libboost_python/gcc/debug/runtime-link-dyn
> amic/shared-linkable-true/cross_module.o"
> "../../../libs/python/build/bin/libboost_python/gcc/debug/runtime-link-dyn
> amic/shared-linkable-true/errors.o" -lutil -Wl,-rpath-link,.
>
>
> I tried removing the -lutil since I figured it may not be necessary, but I
> got the exact same error message without the "-lutil: not found" message.
> As far as I can tell, I need to install glibc2 in order to link against
> the util library. The elf error, however, is a mystery to me. Any help
> would be much appreciated.
>
> Dudley
>
> PS Sorry for the hideous disclaimer below.

------------------------------------------------------------------------------
This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net