[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] Boost system library now required?
From: |
Ralf S. Engelschall |
Subject: |
Re: [Monotone-devel] Boost system library now required? |
Date: |
Mon, 29 Dec 2008 10:28:28 +0100 |
User-agent: |
Mutt/1.5.18 OpenPKG/CURRENT (2008-05-17) |
On Sun, Dec 28, 2008, Thomas Keller wrote:
> > Until now I've linked Monotone <= 0.41 against Boost <= 1.34.0.
> > Recently I've upgraded to Boost 1.37.0 and today I wanted to compile
> > Monotone 0.42 (under FreeBSD 6.4-STABLE and with GCC 4.2.4, but I
> > don't think this makes any difference here):
> >
> > | g++ -Winvalid-pch -include pch-build.hh -g -O0 -Wall -Wall -W
> [...]
> > `__static_initialization_and_destruction_0': |
> > /usr/opkg/include/boost/system/error_code.hpp:205: undefined
> > reference to `boost::system::get_system_category()' |
> > /usr/opkg/include/boost/system/error_code.hpp:206: undefined
> > reference to `boost::system::get_generic_category()' |
> > /usr/opkg/include/boost/system/error_code.hpp:210: undefined
> > reference to `boost::system::get_generic_category()' |
> > /usr/opkg/include/boost/system/error_code.hpp:211: undefined
> > reference to `boost::system::get_generic_category()' |
> > /usr/opkg/include/boost/system/error_code.hpp:212: undefined
> > reference to `boost::system::get_system_category()' |
> > mtn-simplestring_xform.o: In function
> > `__static_initialization_and_destruction_0':
> [...]
>
> This is gcc 4.0.1 (Apple patched), but still, I remember somebody noted
> on IRC that the build with 1.37 worked for him as well w/o
> modifications. So maybe this is a FreeBSD specific problem or maybe it
> is gcc related? I don't know... maybe its also the boost version I'm
> using (MacPorts configures with `--without-libraries=python' and
> `--without-icu', f.e.).
Ok, then I've to digg deeper. The Boost <error_code.hpp> lines 2005-212
are actually wrapped with "#ifndef BOOST_SYSTEM_NO_DEPRECATED ...
#endif". Interesting, perhaps under your Boost installation this
BOOST_SYSTEM_NO_DEPRECATED is defined somewhere...
Ralf S. Engelschall
address@hidden
www.engelschall.com