2002-10-19 10:03:03

by Helge Hafting

[permalink] [raw]
Subject: 2.5.44 compile failure, net/ipv4/raw.c

gcc -Wp,-MD,net/ipv4/.raw.o.d -D__KERNEL__ -Iinclude -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
-march=i686 -Iarch/i386/mach-generic -nostdinc -iwithprefix include
-DKBUILD_BASENAME=raw -c -o net/ipv4/raw.o net/ipv4/raw.c
net/ipv4/raw.c: In function `raw_send_hdrinc':
net/ipv4/raw.c:297: `NF_IP_LOCAL_OUT' undeclared (first use in this
function)
net/ipv4/raw.c:297: (Each undeclared identifier is reported only once
net/ipv4/raw.c:297: for each function it appears in.)


2002-10-19 10:17:28

by David Miller

[permalink] [raw]
Subject: Re: 2.5.44 compile failure, net/ipv4/raw.c


Change the "#include <linux/netfilter.h" in net/ipv4/raw.c
to "#include <linux/netfilter_ipv4.h"

2002-10-19 10:20:00

by Thierry Mallard

[permalink] [raw]
Subject: already fixed (was 2.5.44 compile failure, net/ipv4/raw.c)

Skip Ford <[email protected]> already replied for this :

net/ipv4/raw.c needs to include netfilter_ipv4.h instead of just
netfilter.h

--- linux/net/ipv4/raw.c~ Sat Oct 19 00:47:05 2002
+++ linux/net/ipv4/raw.c Sat Oct 19 00:47:11 2002
@@ -64,7 +64,7 @@
#include <net/raw.h>
#include <net/inet_common.h>
#include <net/checksum.h>
-#include <linux/netfilter.h>
+#include <linux/netfilter_ipv4.h>

struct sock *raw_v4_htable[RAWV4_HTABLE_SIZE];
rwlock_t raw_v4_lock = RW_LOCK_UNLOCKED;

Regards,

--
Thierry Mallard
http://vawis.net