complie error

Chris Taylor Chris.Taylor at corp.eastlink.ca
Mon Feb 25 16:18:57 UTC 2013


-----Original Message-----
From: JINMEI Tatuya / 神明達哉 [mailto:jinmei at isc.org] 
Sent: Saturday, February 23, 2013 2:15 PM
To: Chris Taylor
Subject: Re: complie error

At Fri, 22 Feb 2013 20:09:42 -0400,
Chris Taylor <Chris.Taylor at corp.eastlink.ca> wrote:

> I had tried boost 1.53 but dropped back to version 1.52 and than
> 1.50 but the last two still had the same compile error.

Hmm, then I'd suspect the compiler is too old or buggy.  Which version of which compiler (I guess it's g++ though) are you using?

In any case, the failure happened at the very last phase of the build, and the tool that triggered the error wouldn't be needed for normal users (even I've never used it:-).  So, if you don't mind applying a patch by hand, the patch copied below will be a workaround.

---
JINMEI, Tatuya
Internet Systems Consortium, Inc.

diff --git a/tests/tools/Makefile.am b/tests/tools/Makefile.am index b4c1394..56cade3 100644
--- a/tests/tools/Makefile.am
+++ b/tests/tools/Makefile.am
@@ -2,4 +2,4 @@
 # portable (at least not exist on our Solaris buildbot).  For a short term  # workaround we stop building it until it's resolved.
 #SUBDIRS = badpacket perfdhcp
-SUBDIRS = badpacket perfdhcp
+SUBDIRS = badpacket

I did apply the patch successfully 


bash-3.2# patch -p0 < bind-10-patch
patching file tests/tools/Makefile.am
Hunk #1 succeeded at 3 with fuzz 2 (offset 1 line).



But when I run make again I get the following error, again, I am pretty sure I got the patch applied correctly.

Below are the versions of gcc and g++ I am running

libgcc-4.1.2-54.el5
gcc-4.1.2-54.el5
gcc-c++-4.1.2-54.el5
libgcc-4.1.2-54.el5


#############################################################
Making all in .
make[5]: Entering directory `/downloads/bind10-1.0.0/tests/tools/perfdhcp'
  CXX    perfdhcp-main.o
  CXX    perfdhcp-command_options.o
  CXX    perfdhcp-perf_pkt6.o
  CXX    perfdhcp-perf_pkt4.o
  CXX    perfdhcp-pkt_transform.o
  CXX    perfdhcp-test_control.o
test_control.cc: In member function âvoid isc::perfdhcp::TestControl::sendDiscover4(const isc::perfdhcp::TestControl::TestControlSocket&, const std::vector<unsigned char, std::allocator<unsigned char> >&, bool)â:
test_control.cc:1369: error: call of overloaded âsaveFirstPacket(isc::perfdhcp::PerfPkt4Ptr&)â is ambiguous
test_control.cc:1257: note: candidates are: void isc::perfdhcp::TestControl::saveFirstPacket(const isc::dhcp::Pkt4Ptr&)
test_control.cc:1266: note:                 void isc::perfdhcp::TestControl::saveFirstPacket(const isc::dhcp::Pkt6Ptr&)
test_control.cc: In member function âvoid isc::perfdhcp::TestControl::sendRequest4(const isc::perfdhcp::TestControl::TestControlSocket&, const std::vector<unsigned char, std::allocator<unsigned char> >&, const isc::dhcp::Pkt4Ptr&, const isc::dhcp::Pkt4Ptr&)â:
test_control.cc:1536: error: call of overloaded âsaveFirstPacket(isc::perfdhcp::PerfPkt4Ptr&)â is ambiguous
test_control.cc:1257: note: candidates are: void isc::perfdhcp::TestControl::saveFirstPacket(const isc::dhcp::Pkt4Ptr&)
test_control.cc:1266: note:                 void isc::perfdhcp::TestControl::saveFirstPacket(const isc::dhcp::Pkt6Ptr&)
test_control.cc: In member function âvoid isc::perfdhcp::TestControl::sendRequest6(const isc::perfdhcp::TestControl::TestControlSocket&, const std::vector<unsigned char, std::allocator<unsigned char> >&, const isc::dhcp::Pkt6Ptr&)â:
test_control.cc:1688: error: call of overloaded âsend(isc::perfdhcp::PerfPkt6Ptr&)â is ambiguous
../../../src/lib/dhcp/iface_mgr.h:380: note: candidates are: bool isc::dhcp::IfaceMgr::send(const isc::dhcp::Pkt6Ptr&)
../../../src/lib/dhcp/iface_mgr.h:393: note:                 bool isc::dhcp::IfaceMgr::send(const isc::dhcp::Pkt4Ptr&)
test_control.cc: In member function âvoid isc::perfdhcp::TestControl::sendSolicit6(const isc::perfdhcp::TestControl::TestControlSocket&, const std::vector<unsigned char, std::allocator<unsigned char> >&, bool)â:
test_control.cc:1775: error: call of overloaded âsend(isc::perfdhcp::PerfPkt6Ptr&)â is ambiguous
../../../src/lib/dhcp/iface_mgr.h:380: note: candidates are: bool isc::dhcp::IfaceMgr::send(const isc::dhcp::Pkt6Ptr&)
../../../src/lib/dhcp/iface_mgr.h:393: note:                 bool isc::dhcp::IfaceMgr::send(const isc::dhcp::Pkt4Ptr&)
test_control.cc:1784: error: call of overloaded âsaveFirstPacket(isc::perfdhcp::PerfPkt6Ptr&)â is ambiguous
test_control.cc:1257: note: candidates are: void isc::perfdhcp::TestControl::saveFirstPacket(const isc::dhcp::Pkt4Ptr&)
test_control.cc:1266: note:                 void isc::perfdhcp::TestControl::saveFirstPacket(const isc::dhcp::Pkt6Ptr&)
make[5]: *** [perfdhcp-test_control.o] Error 1
make[5]: Leaving directory `/downloads/bind10-1.0.0/tests/tools/perfdhcp'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/downloads/bind10-1.0.0/tests/tools/perfdhcp'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/downloads/bind10-1.0.0/tests/tools'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/downloads/bind10-1.0.0/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/downloads/bind10-1.0.0'
make: *** [all] Error 2

#################################################################


More information about the bind10-users mailing list