building on FreeBSD 10

JINMEI Tatuya / 神明達哉 jinmei at isc.org
Mon Feb 13 21:25:42 UTC 2012


At Mon, 13 Feb 2012 07:05:22 -0800 (PST),
"Waitman Gobble" <uzimac at da3m0n8t3r.com> wrote:

> So it's a pickle. Since so many servers and routers are running FreeBSD it is prudent to have bind10 installed and working perfectly. I think the short term solution is to avoid -Werror (it's bombing out on warnings in boost headers). From my tests so far bind10 is running on FreeBSD 10.

I've tentatively created a ticket proposing a ./configure switch to
disable -Werror: http://bind10.isc.org/ticket/1671

If and when we implement this workaround, you'll at least be able to
avoid manually editing configure.ac or Makefile.  We could make it
more automatic by having the configure script identify this bug of g++
and internally disable -Werror, but at the moment I'd see if FreeBSD
applies more (internal?) patches to gcc/g++ in the base system that
can possibly fix this problem.

If I can be very sure this is an internal bug of g++ I'd report it to
FreeBSD.  If you're willing to do it yourself, you can prove the
problem with a much simpler example: Compiling this program with
-Werror will fail on g++/FreeBSD.

#include <boost/numeric/conversion/cast.hpp>

#include <stdint.h>

int
main() {
    return (boost::numeric_cast<uint16_t>(0));
}

---
JINMEI, Tatuya
Internet Systems Consortium, Inc.



More information about the bind10-users mailing list