BIND 10 #1559: build failed at gcc version 4.6.2

BIND 10 Development do-not-reply at isc.org
Thu Jan 12 00:42:08 UTC 2012


#1559: build failed at gcc version 4.6.2
-------------------------------------+-------------------------------------
            Reporter:  haikuo        |                        Owner:
                Type:  defect        |                       Status:  new
            Priority:  major         |                    Milestone:  New
           Component:  Unclassified  |  Tasks
           Sensitive:  0             |                     Keywords:
         Sub-Project:  DNS           |              Defect Severity:
Estimated Difficulty:  0             |  Medium
         Total Hours:  0             |  Feature Depending on Ticket:
                                     |          Add Hours to Ticket:  0
                                     |                    Internal?:  0
-------------------------------------+-------------------------------------
 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)'
 ////////////////////////////////////////////////////////////////////////////////////////////

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


More information about the bind10-tickets mailing list