compile error using iptables 1.2.3 and linux-2.4.9-ac5
s I n
sin@Aniela.EU.ORG
Mon, 3 Sep 2001 09:44:08 +0300 (EEST)
Thanks for the fast replies. I am aware about the min/max thingy, but I
thoyght that Alan Cox introduced it in his -ac patches. I will now try to
compile the kernel and see if it compiles ok.
/me
On Sun, 2 Sep 2001, Martin Josefsson wrote:
> On Mon, 3 Sep 2001, s I n wrote:
>
> > # right_end = max(int, right_end - i + sk, right_end + sh);
> >
> > This is line 65 of ipt_string.c, located in /usr/src/linux/net/ipv4/netfilter,
> >
> > When I tried to compile the kernel to use the string match feature, I got
> > an error about parse error near int at ipt_string.c at line 65. Is this a
> > known problem ?
>
> There is a diffrence in hos the max() and min() macros work in vanilla
> 2.4.9 and in the patched -ac versions.
>
> You have to edit that line so that it looks like this:
>
> right_end = max(right_end - i + sk, right_end + sh);
>
> just remove the int stuff and it should work again.
>
> /Martin
>