BIND 10 #1559: build failed at gcc version 4.6.2

BIND 10 Development do-not-reply at isc.org
Thu Jan 12 01:05:33 UTC 2012


#1559: build failed at gcc version 4.6.2
-------------------------------------+-------------------------------------
                   Reporter:         |                 Owner:  UnAssigned
  haikuo                             |                Status:  new
                       Type:         |             Milestone:  New Tasks
  defect                             |            Resolution:
                   Priority:  major  |             Sensitive:  0
                  Component:  build  |           Sub-Project:  DNS
  system                             |  Estimated Difficulty:  0
                   Keywords:         |           Total Hours:  0
            Defect Severity:         |
  Medium                             |
Feature Depending on Ticket:         |
        Add Hours to Ticket:  0      |
                  Internal?:  0      |
-------------------------------------+-------------------------------------
Changes (by haikuo):

 * owner:   => UnAssigned
 * component:  Unclassified => build system


Old description:

> the build of bind10 will fail if I use GCC 4.6.2 at ubuntu.
> GCC 4.6.2 do not support -R option
> I modified the configure.ac as followed:
> //////////////////////////////////////////////////////////////////
> --- a/configure.ac
> +++ b/configure.ac
> @@ -51,7 +51,7 @@ AM_CONDITIONAL(USE_CLANGPP, test "X${CLANGPP}" =
> "Xyes")
>  # check -R rather than gcc specific -rpath to be as portable as
> possible.
>  AC_MSG_CHECKING([whether -R flag is available in linker])
>  LDFLAGS_SAVED="$LDFLAGS"
> -LDFLAGS="$LDFLAGS -R/usr/lib"
> +LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
>  AC_TRY_LINK([],[],
>         [ AC_MSG_RESULT(yes)
>                 rpath_available=yes
> @@ -205,7 +205,7 @@ fi
>  if test $rpath_available = yes; then
>         python_rpath=
>         for flag in ${PYTHON_LDFLAGS}; do
> -               python_rpath="${python_rpath} `echo $flag | sed -ne
> 's/^\(\-L\)
> +               python_rpath="${python_rpath} `echo $flag | sed -ne
> 's/^\(\-L\)
> ////////////////////////////////////////////////////////////////////////////////////////////
>
> I rebuild it , it will print out some errors when build b10-resolver,the
> error is followed:
> ////////////////////////////////////////////////////////////////////////////////////////////
> libtool: link: g++ -Wall -Wextra -Wwrite-strings -Woverloaded-virtual
> -Wno-sign-compare -Werror -fPIC -g -O2 -pthread
> -Wl,-R/var/software/botan/lib -o .libs/b10-resolver resolver.o
> resolver_log.o response_scrubber.o main.o resolver_messages.o
> ../../../src/bin/auth/change_user.o
> ../../../src/lib/dns/.libs/libdns++.so
> ../../../src/lib/config/.libs/libcfgclient.so
> ../../../src/lib/cc/.libs/libcc.so ../../../src/lib/util/.libs/libutil.so
> ../../../src/lib/acl/.libs/libdnsacl.so
> ../../../src/lib/exceptions/.libs/libexceptions.so
> ../../../src/lib/asiodns/.libs/libasiodns.so
> ../../../src/lib/asiolink/.libs/libasiolink.so
> ../../../src/lib/xfr/.libs/libxfr.so ../../../src/lib/log/.libs/liblog.so
> ../../../src/lib/server_common/.libs/libserver_common.so
> ../../../src/lib/cache/.libs/libcache.so
> ../../../src/lib/nsas/.libs/libnsas.so
> ../../../src/lib/resolve/.libs/libresolve.so -pthread -Wl,-rpath
> -Wl,/var/software/bind10/lib
> ../../../src/lib/server_common/.libs/libserver_common.so: undefined
> reference to `isc::util::io::write_data(int, void const*, unsigned long)'
> ../../../src/lib/server_common/.libs/libserver_common.so: undefined
> reference to `isc::util::io::recv_fd(int)'
> ../../../src/lib/server_common/.libs/libserver_common.so: undefined
> reference to `isc::util::io::read_data(int, void*, unsigned long)'
> ////////////////////////////////////////////////////////////////////////////////////////////

New description:

 the build of bind10 will fail if I use GCC 4.6.2 at ubuntu.
 GCC 4.6.2 do not support -R option
 my OS is Linux ubuntu 3.2.0-5-generic #11-Ubuntu SMP Thu Dec 15 19:06:32
 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
 I modified the configure.ac as followed:
 {{{
 --- a/configure.ac
 +++ b/configure.ac
 @@ -51,7 +51,7 @@ AM_CONDITIONAL(USE_CLANGPP, test "X${CLANGPP}" = "Xyes")
  # check -R rather than gcc specific -rpath to be as portable as possible.
  AC_MSG_CHECKING([whether -R flag is available in linker])
  LDFLAGS_SAVED="$LDFLAGS"
 -LDFLAGS="$LDFLAGS -R/usr/lib"
 +LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
  AC_TRY_LINK([],[],
         [ AC_MSG_RESULT(yes)
                 rpath_available=yes
 @@ -205,7 +205,7 @@ fi
  if test $rpath_available = yes; then
         python_rpath=
         for flag in ${PYTHON_LDFLAGS}; do
 -               python_rpath="${python_rpath} `echo $flag | sed -ne
 's/^\(\-L\)
 +               python_rpath="${python_rpath} `echo $flag | sed -ne
 's/^\(\-L\)
 }}}

 I rebuild it , it will print out some errors when build b10-resolver,the
 error is followed:
 {{{
 libtool: link: g++ -Wall -Wextra -Wwrite-strings -Woverloaded-virtual
 -Wno-sign-compare -Werror -fPIC -g -O2 -pthread
 -Wl,-R/var/software/botan/lib -o .libs/b10-resolver resolver.o
 resolver_log.o response_scrubber.o main.o resolver_messages.o
 ../../../src/bin/auth/change_user.o
 ../../../src/lib/dns/.libs/libdns++.so
 ../../../src/lib/config/.libs/libcfgclient.so
 ../../../src/lib/cc/.libs/libcc.so ../../../src/lib/util/.libs/libutil.so
 ../../../src/lib/acl/.libs/libdnsacl.so
 ../../../src/lib/exceptions/.libs/libexceptions.so
 ../../../src/lib/asiodns/.libs/libasiodns.so
 ../../../src/lib/asiolink/.libs/libasiolink.so
 ../../../src/lib/xfr/.libs/libxfr.so ../../../src/lib/log/.libs/liblog.so
 ../../../src/lib/server_common/.libs/libserver_common.so
 ../../../src/lib/cache/.libs/libcache.so
 ../../../src/lib/nsas/.libs/libnsas.so
 ../../../src/lib/resolve/.libs/libresolve.so -pthread -Wl,-rpath
 -Wl,/var/software/bind10/lib
 ../../../src/lib/server_common/.libs/libserver_common.so: undefined
 reference to `isc::util::io::write_data(int, void const*, unsigned long)'
 ../../../src/lib/server_common/.libs/libserver_common.so: undefined
 reference to `isc::util::io::recv_fd(int)'
 ../../../src/lib/server_common/.libs/libserver_common.so: undefined
 reference to `isc::util::io::read_data(int, void*, unsigned long)'
 }}}

--

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


More information about the bind10-tickets mailing list