Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2008-08-27 15:53:53


Hi,

I've been trying to run the Boost 1.35.0 tests with GCC on Suse Linux
Enterprise Server 10/AMD64, and there are some failures that indicate we
got something wrong somewhere. I'm getting the error described in
http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=3#doc_chap7

  gcc.link.dll
  /zorak/sles/build/boost/bin.v2/libs/graph/build/gcc-4.1.0/release/
    libboost_graph-gcc41-1_35.so.1.35.0

  /usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld:
    skipping incompatible /usr/lib/libexpat.a when searching for -lexpat
    /usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld:

  /usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../lib64/libexpat.a(xmlparse.o):
    relocation R_X86_64_32S against `a local symbol' can not be used when
    making a shared object; recompile with -fPIC

  ...

  gcc.link.dll /zorak/sles/build/boost/bin.v2/libs/mpi/build/gcc-4.1.0/
    release/libboost_mpi-gcc41-1_35.so.1.35.0

  /usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld:
    /opt/mpich/ch-p4/lib64/libpmpich++.a(intercepts.o): relocation
    R_X86_64_32 against `__dso_handle' can not be used when making a
    shared object; recompile with -fPIC

  ...

  gcc.link.dll
  /zorak/sles/build/boost/bin.v2/libs/statechart/test/gcc-4.1.0/release/
    libLibTestNativeLib-gcc41-1_35.so.1.35.0

  /usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld:
    /zorak/sles/build/boost/bin.v2/libs/statechart/test/gcc-4.1.0/release/link-static/LibTestNativeLibTuTest.o:
    relocation R_X86_64_32 against `a local symbol' can not be used when
    making a shared object; recompile with -fPIC
                
  ...

  gcc.link.dll /zorak/sles/build/boost/bin.v2/libs/statechart/test/
    gcc-4.1.0/release/libLibTestNormalLib-gcc41-1_35.so.1.35.0

  /usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld:
    /zorak/sles/build/boost/bin.v2/libs/statechart/test/gcc-4.1.0/release/
    link-static/LibTestNormalLibTuTest.o:
    relocation R_X86_64_32 against `a local symbol' can not be used when
    making a shared object; recompile with -fPIC

I assume that there's something wrong with what Boost.Build is doing
here, but I'm at a loss as to how it might be fixed.

Help?

Thanks,

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk