BIND 10 #2147: boost::offset_ptr causes build failures

BIND 10 Development do-not-reply at isc.org
Tue Jul 24 17:09:15 UTC 2012


#2147: boost::offset_ptr causes build failures
-------------------------------------+-------------------------------------
                   Reporter:         |                 Owner:  UnAssigned
  jinmei                             |                Status:  new
                       Type:         |             Milestone:  Next-Sprint-
  defect                             |  Proposed
                   Priority:         |            Resolution:
  medium                             |             Sensitive:  0
                  Component:  build  |           Sub-Project:  DNS
  system                             |  Estimated Difficulty:  0
                   Keywords:         |           Total Hours:  0
            Defect Severity:  N/A    |
Feature Depending on Ticket:         |
        Add Hours to Ticket:  0      |
                  Internal?:  0      |
-------------------------------------+-------------------------------------
Description changed by jinmei:

Old description:

> See this:
> http://git.bind10.isc.org/~tester/builder/BIND10/20120723120000-FreeBSD8-i386-Clang/logs/build.out
> and
> http://git.bind10.isc.org/~tester/builder/BIND10/20120724134032-Solaris11-i386-GCC/logs/build.out
>
> Regarding the first one: From experiments offset_ptr in some older
> versions of boost causes this error on clang++.  Confirmed with boost
> 1.43 + clang 2.8 and boost 1.42 + clang 3.1, so it's more about the
> boost version and doesn't depend on the clang version.
>
> Regarding the second one: it looks like a one-time regression for
> particular version(s) of boost.  I confirmed this happened with boost
> 1.49 (used on our Solaris11 buildbox) but not with 1.48 or 1.50.
>
> Maybe these are minor cases, but it's probably helpful to detect this in
> ./configure and tell the user to upgrade boost.  It should suffice to
> check it with AC_TRY_COMPILE() using this test code:
>
> {{{#!cpp
> #include <boost/interprocess/offset_ptr.hpp>
> }}}
> (Note: for the second one we need -Werror because technically it's not
> an "error", but a warning then converted to an error due to -Werror)

New description:

 See this:
 http://git.bind10.isc.org/~tester/builder/BIND10/20120723120000-FreeBSD8-i386-Clang/logs/build.out
 and
 http://git.bind10.isc.org/~tester/builder/BIND10/20120724134032-Solaris11-i386-GCC/logs/build.out

 Regarding the first one: From experiments offset_ptr in some older
 versions of boost causes this error on clang++.  Confirmed with boost
 1.43 + clang 2.8 and boost 1.42 + clang 3.1, so it's more about the
 boost version and doesn't depend on the clang version.

 Regarding the second one: it looks like a one-time regression for
 particular version(s) of boost.  I confirmed this happened with boost
 1.49 (used on our Solaris11 buildbox) but not with 1.48 or 1.50.

 Maybe these are minor cases, but it's probably helpful to detect this in
 ./configure and tell the user to upgrade boost.  It should suffice to
 check it with AC_TRY_COMPILE() using this test code:

 {{{#!cpp
 #include <boost/interprocess/offset_ptr.hpp>
 }}}
 (Note: for the second one we need -Werror because technically it's not
 an "error", but a warning then converted to an error due to -Werror)

 Also: we should not just writing the check code in configure.ac, but
 figure out how exactly these errors happen, especially for the second
 one.

--

-- 
Ticket URL: <http://bind10.isc.org/ticket/2147#comment:2>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list