Subject: [Boost-bugs] [Boost C++ Libraries] #2123: link against libexpat.a of graph lib fails on 64 bit Linux
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-07-17 11:22:37
#2123: link against libexpat.a of graph lib fails on 64 bit Linux
-----------------------------------------------------+----------------------
Reporter: michael.hufer_at_[hidden] | Owner: dgregor
Type: Bugs | Status: new
Milestone: Boost 1.35.1 | Component: graph
Version: Boost 1.35.0 | Severity: Problem
Keywords: gcc-4.3 linux 64bit graph graphml expat |
-----------------------------------------------------+----------------------
Error from build:[[BR]]
--- [[BR]]
bash> EXPAT_INCLUDE=/home/micha/external-builds/xgen-
externals/install/Linux-x86_64/expat-2.0.1/include
EXPAT_LIBPATH=/home/micha/external-builds/xgen-
externals/install/Linux-x86_64/expat-2.0.1/lib make[[BR]]
./tools/jam/src/bin.linuxx86_64/bjam -sICU_PATH=/home/micha/external-
builds/xgen-externals/install/Linux-x86_64/icu-3.8.1 --user-config=user-
config.jam --without-python --without-mpi --without-test --without-
wave[[BR]]
Building Boost.Regex with Unicode/ICU support enabled[[BR]]
Using ICU in /home/micha/external-builds/xgen-
externals/install/Linux-x86_64/icu-3.8.1/include[[BR]]
...patience...[[BR]]
...patience...[[BR]]
...found 3188 targets...[[BR]]
...updating 1 target...[[BR]]
gcc.link.dll bin.v2/libs/graph/build/gcc-4.3/release/threading-multi
/libboost_graph-gcc43-mt-1_35.so.1.35.0
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld:
/home/micha/external-builds/xgen-
externals/install/Linux-x86_64/expat-2.0.1/lib/libexpat.a(xmlparse.o):
relocation R_X86_64_32 against `a local symbol' can not be used when
making a shared object; recompile with -fPIC[[BR]]
/home/micha/external-builds/xgen-
externals/install/Linux-x86_64/expat-2.0.1/lib/libexpat.a: could not read
symbols: Bad value[[BR]]
collect2: ld returned 1 exit status[[BR]]
[[BR]]
"g++" -L"/home/micha/external-builds/xgen-
externals/install/Linux-x86_64/expat-2.0.1/lib" -o
"bin.v2/libs/graph/build/gcc-4.3/release/threading-multi/libboost_graph-
gcc43-mt-1_35.so.1.35.0" -Wl,-h -Wl,libboost_graph-gcc43-mt-1_35.so.1.35.0
-shared -Wl,--start-group "bin.v2/libs/graph/build/gcc-4.3/release
/threading-multi/read_graphviz_spirit.o"
"bin.v2/libs/graph/build/gcc-4.3/release/threading-multi/graphml.o"
-Wl,-Bstatic -lexpat -Wl,-Bdynamic -lrt -Wl,--end-group -Wl,--strip-all
-pthread
[[BR]]
...failed gcc.link.dll[[BR]] bin.v2/libs/graph/build/gcc-4.3/release
/threading-multi/libboost_graph-gcc43-mt-1_35.so.1.35.0...[[BR]]
...failed updating 1 target...[[BR]]
Not all Boost libraries built properly.[[BR]]
---[[BR]]
Build was with gcc 4.3 on OpenSuSE 11 (x86_64).[[BR]]
The link error occurres with both the (native) expat lib from openSUSE and
the expat lib I build myself (the example above tries to link against the
latter)
-- Ticket URL: <http://svn.boost.org/trac/boost/ticket/2123> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:58 UTC