netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* iproute2-3.6.0 assumes presence of iptables
@ 2012-10-02 18:01 Matt Burgess
  2012-10-03 15:53 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: Matt Burgess @ 2012-10-02 18:01 UTC (permalink / raw)
  To: netdev

[-- Attachment #1: Type: text/plain, Size: 511 bytes --]

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.

[-- Attachment #2: iproute2-3.6.0-ipset-1.patch --]
[-- Type: text/x-patch, Size: 398 bytes --]

diff -Naur iproute2-3.6.0.orig/tc/Makefile iproute2-3.6.0/tc/Makefile
--- iproute2-3.6.0.orig/tc/Makefile	2012-10-01 15:39:21.000000000 +0000
+++ iproute2-3.6.0/tc/Makefile	2012-10-02 17:45:31.605612832 +0000
@@ -52,7 +52,9 @@
 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 :=

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: iproute2-3.6.0 assumes presence of iptables
  2012-10-02 18:01 iproute2-3.6.0 assumes presence of iptables Matt Burgess
@ 2012-10-03 15:53 ` Stephen Hemminger
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2012-10-03 15:53 UTC (permalink / raw)
  To: Matt Burgess; +Cc: netdev

On Tue, 02 Oct 2012 19:01:32 +0100
Matt Burgess <matthew@linuxfromscratch.org> wrote:

> 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.

Applied

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-03 15:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-02 18:01 iproute2-3.6.0 assumes presence of iptables Matt Burgess
2012-10-03 15:53 ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).