Linux Netfilter discussions
 help / color / mirror / Atom feed
From: cc <cc@kdtc.net>
To: Netfilter Group <netfilter@lists.netfilter.org>
Subject: make iptables
Date: Thu, 21 Oct 2004 10:30:52 +0800	[thread overview]
Message-ID: <41771F5C.3020809@kdtc.net> (raw)

Hi,

I'm attempting to compile iptables 1.2.11, but am
not sure what I'm doing wrong.   I am currently
running iptables 1.2.8 and it's running smoothly
on a 2.4.24 machine.

I just patched it to a 2.4.27 kernel and did a
make KERNEL_DIR=/usr/src/linux

It then throwing Warnings left,right and center:

cc -O2 -Wall -Wunused -I/usr/src/linux/include -Iinclude/
-DIPTABLES_VERSION=\"1.2.11\"  -fPIC -o extensions/libipt_physdev_sh.o
-c extensions/libipt_physdev.c
In file included from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_physdev.c:7:
/usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:339: warning:
type defaults to `int' in declaration of `DECLARE_MUTEX'
/usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:339: warning:
parameter names (without types) in function declaration

and finally choked at:

extensions/libipt_dstlimit.c: In function `save':
extensions/libipt_dstlimit.c:310: structure has no member named `cfg'
extensions/libipt_dstlimit.c:311: structure has no member named `cfg'
extensions/libipt_dstlimit.c:312: structure has no member named `cfg'
extensions/libipt_dstlimit.c:313: structure has no member named `cfg'
extensions/libipt_dstlimit.c:315: warning: unreachable code at beginning
of switch statement
extensions/libipt_dstlimit.c:327: structure has no member named `cfg'
extensions/libipt_dstlimit.c:328: structure has no member named `cfg'
extensions/libipt_dstlimit.c:329: structure has no member named `cfg'
extensions/libipt_dstlimit.c:330: structure has no member named `cfg'
extensions/libipt_dstlimit.c:331: structure has no member named `cfg'
extensions/libipt_dstlimit.c:332: structure has no member named `cfg'
extensions/libipt_dstlimit.c:333: structure has no member named `cfg'
extensions/libipt_dstlimit.c:334: structure has no member named `cfg'
extensions/libipt_dstlimit.c: At top level:
/usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:339: warning:
`DECLARE_MUTEX' declared `static' but never defined
make: *** [extensions/libipt_dstlimit_sh.o] Error 1

I've scanned the FAQ, the previous threads and the archives and
am quite stumped.

I used the same procedure I did with 1.2.8 against the 2.4.21 kernel.
Did something break?

Correct me if I'm wrong, but :

1)  Uncompress the iptables-1.2.11.tar.bz2 to /usr/src
2)  cd /usr/src/iptables-1.2.11
3)  make KERNEL_DIR=/usr/src/linux

At first, I even applied the POMs, but now to make things easier(?),
I deleted the /usr/src/linux-2.4.27 and uncompressed it again.
Still no go.

Any pointeres appreciated.



                 reply	other threads:[~2004-10-21  2:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=41771F5C.3020809@kdtc.net \
    --to=cc@kdtc.net \
    --cc=netfilter@lists.netfilter.org \
    /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