From: Pablo Neira <pablo@eurodev.net>
To: Colin Harrison <colin.harrison@virgin.net>
Cc: netfilter-devel@lists.netfilter.org, Patrick McHardy <kaber@trash.net>
Subject: Re: Unable to build iptables on linux kernel 2.6.10 + 2.6.11-rc2 + 2.6.11-rc2-bk5
Date: Sun, 30 Jan 2005 23:27:08 +0100 [thread overview]
Message-ID: <41FD5F3C.1060009@eurodev.net> (raw)
In-Reply-To: <200501271553.j0RFr747004108@StraightRunning.com>
[-- Attachment #1: Type: text/plain, Size: 1098 bytes --]
Colin Harrison wrote:
>Hi
>I am experimenting with the linux kernel 2.6.10 + 2.6.11-rc2 +
>2.6.11-rc2-bk5.
>When I try to build CVS snapshot iptables (iptables-1.3.0-20050125) against
>this kernel I get:-
>
>
>make KERNEL_DIR=/home/src/kernel/linux-2.6.10
>....
>cc -O2 -Wall -Wunused -I/home/src/kernel/linux-2.6.10/include -Iinclude/
>-DIPTABLES_VERSION=\"1.3.0-20050125\" -fPIC -o
>extensions/libipt_conntrack_sh.o -c extensions/libipt_conntrack.c
>In file included from extensions/libipt_conntrack.c:13:
>/home/src/kernel/linux-2.6.10/include/linux/netfilter_ipv4/ip_conntrack_tupl
>e.h:67: error: parse error before "u8"
>
>
u8 seems not to be defined in user space, that's why iptables complains
in compilation time. A quick grep at /usr/include on my laptop tells me
that such definition doesn't exist in user space. AFAICS it's only
defined in kernel space. So, I've renamed it to u_int8_t and that fixed
the problem.
Patrick, if this is the best way to fix this problem, are you willing to
add it to your patchset?
Signed-off-by: Pablo Neira Ayuso <pablo@eurodev.net>
--
Pablo
[-- Attachment #2: x --]
[-- Type: text/plain, Size: 424 bytes --]
===== include/linux/netfilter_ipv4/ip_conntrack_tuple.h 1.6 vs edited =====
--- 1.6/include/linux/netfilter_ipv4/ip_conntrack_tuple.h 2005-01-17 23:02:05 +01:00
+++ edited/include/linux/netfilter_ipv4/ip_conntrack_tuple.h 2005-01-30 23:19:09 +01:00
@@ -64,10 +64,10 @@
} u;
/* The protocol. */
- u8 protonum;
+ u_int8_t protonum;
/* The direction (for tuplehash) */
- u8 dir;
+ u_int8_t dir;
} dst;
};
next prev parent reply other threads:[~2005-01-30 22:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-27 15:53 Unable to build iptables on linux kernel 2.6.10 + 2.6.11-rc2 + 2.6.11-rc2-bk5 Colin Harrison
2005-01-30 22:27 ` Pablo Neira [this message]
2005-02-01 0:51 ` Thomas Graf
2005-02-01 1:31 ` Pablo Neira
2005-02-01 7:04 ` Tomáš Macek
2005-02-01 13:17 ` Patrick McHardy
2005-02-01 13:17 ` 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=41FD5F3C.1060009@eurodev.net \
--to=pablo@eurodev.net \
--cc=colin.harrison@virgin.net \
--cc=kaber@trash.net \
--cc=netfilter-devel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.