Boost logo

Boost Users :

From: matthew.garman_at_[hidden]
Date: 2007-04-26 18:58:13


On Thu, Apr 26, 2007 at 05:30:26PM -0400, Chris Weed wrote:
> This warning means you have some code built with gcc 3.4+ and some
> code built with gcc earlier than gcc 3.4. This will invariably
> cause your code to crash:
>
> /usr/bin/ld: warning: libstdc++.so.6, needed by
> /usr/local/lib/libboost_serialization-gcc.so, may conflict with
> libstdc++.so.5
>
> You need to rebuild all of your code to link against the same
> libstdc++ library.

Hi,

I fixed the above problem (I was still pulling in the 3.4 build of
boost). Now I'm correctly pulling in only stuff built with gcc32
(ldd confirmed this).

But the program still segfaults. Here's an excerpt from the gdb
back trace after a crash. Basically, everything prior to #32 is our
own code, and #32 is where the boost serialization code is first
referenced. (I can certainly post the whole backtrace, just trying
to be concise.) Note "MyClass" is the name of our custom class that
uses boost::serialization:

[ ... ]
#27 0x08089912 in boost::archive::detail::load_non_pointer_type<portable_binary_iarchive, MyClass>::load_standard::invoke (ar=@0xf5bd6140, t=@0x81459f0)
    at /.../include/boost-1_33_1/boost/archive/detail/iserializer.hpp:375
#28 0x08089776 in boost::archive::detail::load_non_pointer_type<portable_binary_iarchive, MyClass>::invoke (ar=@0xf5bd6140, t=@0x81459f0)
    at /.../include/boost-1_33_1/boost/archive/detail/iserializer.hpp:425
#29 0x0808960a in load<portable_binary_iarchive, MyClass> (ar=@0xf5bd6140,
    t=@0x81459f0)
    at /.../include/boost-1_33_1/boost/archive/detail/iserializer.hpp:572
#30 0x0808944f in load_override<MyClass> (this=0xf5bd6140, t=@0x81459f0)
    at /.../include/boost-1_33_1/boost/archive/basic_binary_iarchive.hpp:70
#31 0x08089092 in load_override<MyClass> (this=0xf5bd6140, t=@0x81459f0)
    at /.../include/boost-1_33_1/boost/archive/binary_iarchive.hpp:47
#32 0x0808899d in operator>><MyClass> (this=0xf5bd6140, t=@0x81459f0)
    at /.../include/boost-1_33_1/boost/archive/detail/interface_iarchive.hpp:76
[ ... ]

Thanks again,
Matt


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