All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] iptables 1.4.2: Fix compile error
@ 2008-10-23 12:56 Thomas Jarosch
  2008-10-23 13:41 ` Patrick McHardy
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Jarosch @ 2008-10-23 12:56 UTC (permalink / raw)
  To: Patrick McHardy; +Cc: Netfilter Development Mailinglist

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

Hello Patrick,

attached is a small patch to fix compilation
of iptables 1.4.2 using gcc 4.3.2.

Cherrs,
Thomas


[-- Attachment #2: iptables-1.4.2-libxt_iprange-compile-error.patch --]
[-- Type: text/x-patch, Size: 1562 bytes --]

Fix compile error in libxt_iprange.c using gcc 4.3.2

In file included from libxt_iprange.c:9:
../include/linux/netfilter.h:43: error: field 'in' has incomplete type
../include/linux/netfilter.h:44: error: field 'in6' has incomplete type
libxt_iprange.c: In function 'parse_iprange':
libxt_iprange.c:46: error: dereferencing pointer to incomplete type
libxt_iprange.c:53: error: dereferencing pointer to incomplete type
libxt_iprange.c: In function 'iprange_mt4_parse':
libxt_iprange.c:117: error: dereferencing pointer to incomplete type
libxt_iprange.c:121: error: dereferencing pointer to incomplete type
libxt_iprange.c:136: error: dereferencing pointer to incomplete type
libxt_iprange.c:140: error: dereferencing pointer to incomplete type
libxt_iprange.c: In function 'iprange_mt6_parse':
libxt_iprange.c:167: error: dereferencing pointer to incomplete type
libxt_iprange.c:171: error: dereferencing pointer to incomplete type
libxt_iprange.c:186: error: dereferencing pointer to incomplete type
libxt_iprange.c:190: error: dereferencing pointer to incomplete type

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
diff -u -r -p iptables-1.4.2.orig/extensions/libxt_iprange.c iptables-1.4.2/extensions/libxt_iprange.c
--- iptables-1.4.2.orig/extensions/libxt_iprange.c	Thu Oct 23 12:33:44 2008
+++ iptables-1.4.2/extensions/libxt_iprange.c	Thu Oct 23 14:16:00 2008
@@ -5,6 +5,7 @@
 #include <stdlib.h>
 #include <getopt.h>
 
+#include <netinet/in.h>
 #include <xtables.h>
 #include <linux/netfilter.h>
 #include <linux/netfilter/xt_iprange.h>

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

* Re: [patch] iptables 1.4.2: Fix compile error
  2008-10-23 12:56 [patch] iptables 1.4.2: Fix compile error Thomas Jarosch
@ 2008-10-23 13:41 ` Patrick McHardy
  0 siblings, 0 replies; 2+ messages in thread
From: Patrick McHardy @ 2008-10-23 13:41 UTC (permalink / raw)
  To: Thomas Jarosch; +Cc: Netfilter Development Mailinglist

Thomas Jarosch wrote:
> Hello Patrick,
> 
> attached is a small patch to fix compilation
> of iptables 1.4.2 using gcc 4.3.2.

Applied, thanks.

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

end of thread, other threads:[~2008-10-23 13:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-23 12:56 [patch] iptables 1.4.2: Fix compile error Thomas Jarosch
2008-10-23 13:41 ` Patrick McHardy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.