mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jan-Benedict Glaw <jbglaw@lug-owl.de>
To: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
Cc: coreteam@netfilter.org, linux-kernel@vger.kernel.org
Subject: 2.4.27-rc2: Compile error in net/ipv4/netfilter/ip_fw_compat_masq.c
Date: Mon, 28 Jun 2004 16:53:50 +0200	[thread overview]
Message-ID: <20040628145350.GY20632@lug-owl.de> (raw)

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

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:

--- linux-2.4.27-rc2-clean/net/ipv4/netfilter/ip_fw_compat_masq.c	Mon Jan  5 14:53:56 2004
+++ linux-2.4.27-rc2-mod/net/ipv4/netfilter/ip_fw_compat_masq.c	Mon Jun 28 16:48:28 2004
@@ -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

-- 
   Jan-Benedict Glaw       jbglaw@lug-owl.de    . +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));

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

             reply	other threads:[~2004-06-28 14:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-28 14:53 Jan-Benedict Glaw [this message]
2004-06-28 20:26 ` David S. Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040628145350.GY20632@lug-owl.de \
    --to=jbglaw@lug-owl.de \
    --cc=coreteam@netfilter.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo.tosatti@cyclades.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®