]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
iproute2-3.6.0 assumes presence of iptables
authorMatt Burgess <matthew@linuxfromscratch.org>
Tue, 2 Oct 2012 18:01:32 +0000 (19:01 +0100)
committerStephen Hemminger <shemminger@vyatta.com>
Wed, 3 Oct 2012 15:51:29 +0000 (08:51 -0700)
Hi,

When compiling iproute2-3.6.0 on a host that doesn't have iptables available, I get the following error:

gcc -Wall -Wstrict-prototypes -O2 -I../include -DRESOLVE_HOSTNAMES
-DLIBDIR=\"/usr/lib\" -DCONFDIR=\"/etc/iproute2\" -D_GNU_SOURCE
-DCONFIG_GACT -DCONFIG_GACT_PROB -DYY_NO_INPUT   -c -o em_ipset.o
em_ipset.c
em_ipset.c:26:21: fatal error: xtables.h: No such file or directory

Fixed by the following patch, which guards the building of em_ipset.o on
the presence of suitable headers.

Thanks,

Matt.

tc/Makefile

index ccf6acd0023e2492b2db1aae3bf6905d826c83ec..389029df076069d90fe5a223edbfb3f170b649fe 100644 (file)
@@ -52,7 +52,9 @@ TCMODULES += q_codel.o
 TCMODULES += q_fq_codel.o
 
 ifeq ($(TC_CONFIG_IPSET), y)
-  TCMODULES += em_ipset.o
+  ifeq ($(TC_CONFIG_XT), y)
+    TCMODULES += em_ipset.o
+  endif
 endif
 
 TCSO :=