This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Unresolvable relocation against symbol...


Hello, all.

I'm having weird link problems in Fedora Core 4 (with g++ 4.0):

/usr/bin/ld:
bin/boost/libs/network/build/libboost_network.so/gcc/release/shared-linkable-true/net_error.o(.text+0x8e):
unresolvable relocation against symbol `std::basic_string<char,
std::char_traits<char>, std::allocator<char>
>::_Rep::_S_empty_rep_storage@@GLIBCXX_3.4'
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status

g++ is called to link basically like this:

g++ -s -fPIC -shared -o
"bin/boost/libs/network/build/libboost_network.so/gcc/release/shared-linkable-true/libboost_network-gcc-1_33.so.1.33.0"
   -Wl,-rpath-link,. -Wl,-soname,libboost_network-gcc-1_33.so.1.33.0

That's stripped to what I think is the relevant stuff. (No object files.)

The problem only occurs in "release" builds, when g++ is called
basically like:

g++ -ftemplate-depth-255 -O3 -finline-functions -Wno-inline -fPIC

That's stripped to what I think is the relevant stuff. (No -I or -D.)

I'm absolutely lost as to what that error message means.
I'm not even sure what exactly to send you for further analysis, so I'm
sending this message sort of as What do I do next?

The code in question is open source, so, no problems sharing it.

--
 Pedro LamarÃo




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]