2002-10-22 18:45:37

by Juan M. de la Torre

[permalink] [raw]
Subject: Problem compiling 2.5.44 (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.)
make[2]: *** [net/ipv4/raw.o] Error 1
make[1]: *** [net/ipv4] Error 2
make: *** [net] Error 2

net/ipv4/raw.c includes linux/netfilter.h, but not linux/netfilter_ipv4.h
(NF_IP_LOCAL_OUT is defined in netfilter_ipv4.h).

Regards,
Juanma

--
/jm


2002-10-22 19:56:23

by Alan

[permalink] [raw]
Subject: Re: Problem compiling 2.5.44 (net/ipv4/raw.c)

On Tue, 2002-10-22 at 19:49, Juan M. de la Torre wrote:
>
> 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.)
> make[2]: *** [net/ipv4/raw.o] Error 1
> make[1]: *** [net/ipv4] Error 2
> make: *** [net] Error 2
>
> net/ipv4/raw.c includes linux/netfilter.h, but not linux/netfilter_ipv4.h
> (NF_IP_LOCAL_OUT is defined in netfilter_ipv4.h).

Fixed in -ac1 - you can just grab the net/ipv4/raw.c fix if need be

2002-10-23 14:33:38

by Bjoern A. Zeeb

[permalink] [raw]
Subject: Re: Problem compiling 2.5.44 (net/ipv4/raw.c)

On 22 Oct 2002, Alan Cox wrote:

> On Tue, 2002-10-22 at 19:49, Juan M. de la Torre wrote:
> >
> > 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.)
> > make[2]: *** [net/ipv4/raw.o] Error 1
> > make[1]: *** [net/ipv4] Error 2
> > make: *** [net] Error 2
> >
> > net/ipv4/raw.c includes linux/netfilter.h, but not linux/netfilter_ipv4.h
> > (NF_IP_LOCAL_OUT is defined in netfilter_ipv4.h).
>
> Fixed in -ac1 - you can just grab the net/ipv4/raw.c fix if need be


Please remove include for netfilter.h as this is already included in
netfilter_ipv4.h.

--- linux/net/ipv4/raw.c.orig Tue Oct 22 15:20:07 2002
+++ linux/net/ipv4/raw.c Tue Oct 22 21:16:17 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;

--
Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT
56 69 73 69 74 http://www.zabbadoz.net/