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
Signature · 1 line
/jm
Quoted 10 lines · Juan M. de la Torre
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 oncenet/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
Quoted 2 lines
net/ipv4/raw.cincludeslinux/netfilter.h, but notlinux/netfilter_ipv4.h(NF_IP_LOCAL_OUTis defined innetfilter_ipv4.h).
Fixed in -ac1 - you can just grab the net/ipv4/raw.c fix if need be
Quoted 11 lines · Alan Cox
Quoted 10 lines · Juan M. de la Torre
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 oncenet/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
Quoted 4 lines
Quoted 2 lines
net/ipv4/raw.cincludeslinux/netfilter.h, but notlinux/netfilter_ipv4.h(NF_IP_LOCAL_OUTis defined innetfilter_ipv4.h).Fixed in -ac1 - you can just grab the
net/ipv4/raw.cfix if need be
Please remove include for netfilter.h as this is already included in netfilter_ipv4.h.
net/ipv4/raw.c renamed from net/ipv4/raw.c.orig +1 -1
@@ -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 ;
Signature · 2 lines
Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT 56 69 73 69 74 http://www.zabbadoz.net/