[bind10-dev] nsas build issues

Jelte Jansen jelte at isc.org
Wed Dec 15 16:03:14 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/14/2010 09:58 PM, Jeremy C. Reed wrote:
> The merge of NSAS caused various build failures. All of our automated 
> builders failed for different reasons. We cleaned up some of it. But I 
> still have a few issues. Feel free to jump in and fix.
> 

for solaris with gcc:
on my environment boost and stl conflicted over how many arguments the iterator
template should have. I installed my own boost (1.45) and got to your error

> 
> 4) cc1plus: error: unrecognized command line option 
> "-Wno-missing-field-initializers"
> 
> Ooops! I intgroduced that myself to fix problem seen on other platform. 
> I need to check if gcc has that or don't use on older gcc or don't fail 
> on errors at all here.
> 
> So I comment that out:
> 
<snip>
> ...
> So I manually added -pthreads and then commented out that -Wno... flag 
> ... and it completes and "make check" does work in nsas/tests for 
> Solaris10-sparc-GCC.
> 

same here, and for me it did not even work then; for some files it complained
that uint32_t was undefined. Took a while but I figured out the cause was a
using directive, the files that error have
using namespace boost;

boost also has these types, and apparently they are undefined for us, i think
something with including boost/cstdint.hpp might help, but i opted for removing
the 'using namespace boost' altogether (btw i think we should get rid of most if
not all 'using' directives anyway)

attached is a patch for that (also removes the no-missing- from the makefile,
but not yet the -pthreads addition, as i think that may need a higher-level
solution)

with that it compiles for me, finally (or well, it's compiling now, at least it
got past the nsas)

Jelte
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0I5sIACgkQ4nZCKsdOncWEUwCfc+mJmXer/xxpcYxry5WDf6rV
VLYAoNp3dWmjwbYthIkRdUv3rnKJr27+
=s5C9
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bind10_no_using_namespace_boost.hpp
Type: text/x-c++hdr
Size: 33827 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/bind10-dev/attachments/20101215/9af79ae0/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bind10_no_using_namespace_boost.hpp.sig
Type: application/octet-stream
Size: 72 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/bind10-dev/attachments/20101215/9af79ae0/attachment.obj>


More information about the bind10-dev mailing list