building on FreeBSD 10
Waitman Gobble
uzimac at da3m0n8t3r.com
Tue Feb 14 08:15:11 UTC 2012
Waitman Gobble <uzimac at da3m0n8t3r.com> wrote ..
> JINMEI Tatuya / $B?@L at C#:H(B <jinmei at isc.org> wrote ..
> > 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.
>
> Hi,
>
> Thanks for the update!
>
> Ok, I'll report the issue, thanks for the example.
>
>
>
> --
> Waitman Gobble
> San Jose California USA
Hi,
I have not yet submitted the bug report, I want to feel extremely confident that I understand the bug so i'm doing some research. It seems this strategy "removes" extraneous warnings from boost :
instead of
#include <boost/numeric/conversion/cast.hpp>
change to
#include "hushup/cast.hpp"
then put cast.hpp in hushup directory:
#ifdef __GNUC__
#pragma GCC system_header
#endif
#include <boost/numeric/conversion/cast.hpp>
p00ntang# g++ -I./ -I/usr/local/include -L/usr/local/lib boing.cpp -Werror
p00ntang# ./a.out
p00ntang#
Perhaps this strategy can be used?
I'm still checking it out...,
Thanks,
--
Waitman Gobble
San Jose California USA
More information about the bind10-users
mailing list