Skip to contentSkip to conversation

2.4.27-rc2: Compile error in net/ipv4/netfilter/ip_fw_compat_masq.c

PATCH Applied Jan-Benedict Glaw 2 participants 2 messages Jun 28, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi!

I get this compile error:

gcc -D__KERNEL__ -I/home/jbglaw/kernel/linux-2.4.27-rc2-md/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i386 -DMODULE -nostdinc -iwithprefix include -DKBUILD_BASENAME=ip_fw_compat_masq -c -o ip_fw_compat_masq.o ip_fw_compat_masq.c
ip_fw_compat_masq.c: In function `check_for_demasq':
ip_fw_compat_masq.c:157: `IP_OFFSET' undeclared (first use in this function)
ip_fw_compat_masq.c:157: (Each undeclared identifier is reported only once
ip_fw_compat_masq.c:157: for each function it appears in.)
make[2]: *** [ip_fw_compat_masq.o] Error 1
make[2]: Leaving directory `/home/jbglaw/kernel/linux-2.4.27-rc2-md/net/ipv4/netfilter'
make[1]: *** [_modsubdir_ipv4/netfilter] Error 2
make[1]: Leaving directory `/home/jbglaw/kernel/linux-2.4.27-rc2-md/net'
make: *** [_mod_net] Error 2

This patch fixes it:

net/ipv4/netfilter/ip_fw_compat_masq.c +1 -0
@@ -15,6 +15,7 @@
 #include <linux/proc_fs.h>
 #include <linux/version.h>
 #include <linux/module.h>
+#include <net/ip.h>
 #include <net/route.h>
 
 #define ASSERT_READ_LOCK(x) MUST_BE_READ_LOCKED(&ip_conntrack_lock)

MfG, JBG

Signature · 4 lines
   Jan-Benedict Glaw       [email protected]    . +49-172-7608481
   "Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg
    fuer einen Freien Staat voll Freier Bürger" | im Internet! |   im Irak!
   ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));