[odb-users] ODB installed from .rpm on Fedora 16 does not function correctly under some circumstances

Boris Kolpackov boris at codesynthesis.com
Thu Jul 11 07:13:58 EDT 2013


Hi Jeff,

Jeff Waller <truthset at gmail.com> writes:

> The problem, i suspect, is that the odb that comes packaged in the rpm 
> is built using gcc 4.7.  There is a well known problem with gcc 4.7 and
> versions of boost prior to version 1.48 (Fedora 16 has version 1.47).
> This causes the build to incorrectly detect that boost pthread support
> is not present. This is not a problem normally on Fedora 16 because it
> uses only gcc version 4.6.

ODB binary packages come with their own private copy of GCC (currently
4.7.2). This GCC is used internally by ODB and you can continue using
your system GCC to build your application.

In this setup, the only way I can see how the above issue can arise is
if the headers that you compile with ODB include some Boost threading
classes.

If that's the case, I am not sure what we can do about it. Downgrading
to 4.6 is not an option since people keep asking for better C++11 support.
In fact, we will probably be upgrading to GCC 4.8 some time soon.

Other options would be to upgrade Boost or, as you said, build ODB from
source to use your system GCC (always a good idea).

Boris



More information about the odb-users mailing list