From: Jesper Dangaard Brouer <jdb@comx.dk>
To: Jan Engelhardt <jengelh@computergmbh.de>
Cc: Netfilter Developers <netfilter-devel@vger.kernel.org>,
yasuyuki@netfilter.org
Subject: Re: Make/compile error for iptables-1.4.0rc1
Date: Sun, 18 Nov 2007 15:23:07 +0100 [thread overview]
Message-ID: <1195395787.15945.77.camel@localhost.localdomain> (raw)
In-Reply-To: <1195390182.15945.57.camel@localhost.localdomain>
On Sun, 2007-11-18 at 13:49 +0100, Jesper Dangaard Brouer wrote:
> On Fri, 2007-11-16 at 21:32 +0100, Jesper Dangaard Brouer wrote:
> > SVN blame on iptables.c line 207-208 says its changed by Yasuyuki
> > Kozakai with chainset 6920.
> >
> > The strange thing about these lines is that they contain
> > IPT_SO_GET_REVISION_xxx and not XT_SO_GET_REVISION_xxx as the
> compiler
> > claims. Is some strange macro stuff going on here?
>
> Does anyone else have this problem with iptables-1.4.0rc1, or is it
> just my compile environment which is screwed?
Now I have tried to compile on three debian boxes (incl.
people.netfilter.org) where it fails! I also tried it on a Gentoo box
where it success!
The problem is "strange macro stuff" because on debian, the header file:
/usr/include/linux/netfilter_ipv4/ip_tables.h
Defines:
#define IPT_SO_GET_REVISION_MATCH XT_SO_GET_REVISION_MATCH
#define IPT_SO_GET_REVISION_TARGET XT_SO_GET_REVISION_TARGET
So fare it looks like a debian bug, in package linux-kernel-headers
(2.6.18-7), because the latest kernel has these defines:
#define IPT_SO_GET_REVISION_MATCH (IPT_BASE_CTL + 2)
#define IPT_SO_GET_REVISION_TARGET (IPT_BASE_CTL + 3)
Is this a debian bug? or did the kernel header at some point contain the
IPT_xxx to XT_SO_xxx re-defines?
Look below for what I could find in git...
--
Med venlig hilsen / Best regards
Jesper Brouer
ComX Networks A/S
Linux Network developer
Cand. Scient Datalog / MSc.
Author of http://adsl-optimizer.dk
LinkedIn: http://www.linkedin.com/in/brouer
commit b96e7ecbd052a0916b6078e7600604d7e276a336
Author: Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>
Date: Tue Nov 14 19:48:48 2006 -0800
[NETFILTER]: ip6_tables: fixed conflicted optname for getsockopt
66 and 67 for getsockopt on IPv6 socket is doubly used for IPv6 Advanced
API and ip6tables. This moves numbers for ip6tables to 68 and 69.
This also kills XT_SO_* because {ip,ip6,arp}_tables doesn't have so much
common numbers now.
The old userland tools keep to behave as ever, because old kernel always
calls functions of IPv6 Advanced API for their numbers.
Signed-off-by: Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
next prev parent reply other threads:[~2007-11-18 14:24 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-16 20:32 Make/compile error for iptables-1.4.0rc1 Jesper Dangaard Brouer
2007-11-16 21:34 ` Jan Engelhardt
2007-11-18 12:49 ` Jesper Dangaard Brouer
2007-11-18 14:23 ` Jesper Dangaard Brouer [this message]
2007-11-20 23:10 ` [FIX] " Jesper Dangaard Brouer
2007-11-21 7:53 ` Patrick McHardy
2007-11-21 11:21 ` Jan Engelhardt
2007-11-21 19:30 ` Jesper Dangaard Brouer
2007-11-22 10:31 ` Patrick McHardy
2007-11-23 14:30 ` Jesper Dangaard Brouer
2007-11-23 16:16 ` [PATCH] Fix make/compile " Jesper Dangaard Brouer
2007-11-23 16:38 ` Jan Engelhardt
2007-11-25 15:13 ` Patrick McHardy
2007-11-26 5:55 ` Yasuyuki KOZAKAI
[not found] ` <200711260555.lAQ5tXS0025231@toshiba.co.jp>
2007-11-26 6:23 ` Patrick McHardy
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=1195395787.15945.77.camel@localhost.localdomain \
--to=jdb@comx.dk \
--cc=jengelh@computergmbh.de \
--cc=netfilter-devel@vger.kernel.org \
--cc=yasuyuki@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;
as well as URLs for NNTP newsgroup(s).