Hi!
I try to build xorp-1.6 from ports on FreeBSD 8.0-CURRENT g++ (GCC)
4.2.1 20070719 and build stops:
/bin/sh ../../../libtool --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I.
-I../../.. -I../../.. -Wno-uninitialized -Werror -W -Wall -Wwrite-strings
-Wcast-qual -Wpointer-arith -Wcast-align -Woverloaded-virtual
-ftemplate-depth-25 -pipe -MT firewall_get_ipfw2.lo -MD -MP -MF
.deps/firewall_get_ipfw2.Tpo -c -o firewall_get_ipfw2.lo firewall_get_ipfw2.cc
c++ -DHAVE_CONFIG_H -I. -I../../.. -I../../.. -Wno-uninitialized -Werror -W
-Wall -Wwrite-strings -Wcast-qual -Wpointer-arith -Wcast-align
-Woverloaded-virtual -ftemplate-depth-25 -pipe -MT firewall_get_ipfw2.lo -MD
-MP -MF .deps/firewall_get_ipfw2.Tpo -c firewall_get_ipfw2.cc -fPIC -DPIC -o
.libs/firewall_get_ipfw2.o
cc1plus: warnings being treated as errors
firewall_get_ipfw2.cc:143: warning: unused parameter 'firewall_entry_list'
I writed patch (attached), that fix build, but i not tested xorp
working. Can anyone confirm build problem and test this patch?
--
Mykola Dzham, LEFT-(UANIC|RIPE)
JID: [email protected]
--- fea/firewall_manager.hh.old 2009-05-04 23:05:10.000000000 +0300
+++ fea/firewall_manager.hh 2009-05-04 23:08:11.000000000 +0300
@@ -37,6 +37,11 @@
class FeaNode;
class FirewallTransactionManager;
+#ifdef HAVE_IPV6
+#define __unused_without_ipv6
+#else
+#define __unused_without_ipv6 __unused
+#endif
/**
* @short Firewall configuration manager.
--- fea/data_plane/firewall/firewall_get_ipfw2.cc.old 2009-05-04 23:00:24.000000000 +0300
+++ fea/data_plane/firewall/firewall_get_ipfw2.cc 2009-05-04 23:06:09.000000000 +0300
@@ -139,7 +139,7 @@
}
int
-FirewallGetIpfw2::get_table6(list<FirewallEntry>& firewall_entry_list,
+FirewallGetIpfw2::get_table6(list<FirewallEntry>& firewall_entry_list __unused_without_ipv6,
string& error_msg)
{
#ifdef HAVE_IPV6
--- fea/data_plane/firewall/firewall_get_pf.cc.old 2009-05-04 23:06:32.000000000 +0300
+++ fea/data_plane/firewall/firewall_get_pf.cc 2009-05-04 23:06:51.000000000 +0300
@@ -124,7 +124,7 @@
}
int
-FirewallGetPf::get_table6(list<FirewallEntry>& firewall_entry_list,
+FirewallGetPf::get_table6(list<FirewallEntry>& firewall_entry_list __unused_without_ipv6,
string& error_msg)
{
#ifdef HAVE_IPV6
_______________________________________________
Xorp-hackers mailing list
[email protected]
http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers