On Thu, 21 Mar 2002, Izauddin Mohd Isa wrote:

> Hi guys,
> 
> I'm trying to patch 1.2.6a into a 2.4.16 kernel with the inclusion of
> the String Matching filter, but I got this error when compiling the
> kernel at the make modules stage. The error as follow :
> 
> ipt_string.c:80:72: macro "max" passed 3 arguments, but takes just 2
> ipt_string.c: In function `search_sublinear':
> ipt_string.c:53: warning: subscript has type `char'
> ipt_string.c:78: warning: subscript has type `char'
> ipt_string.c:80: `max' undeclared (first use in this function)
> ipt_string.c:80: (Each undeclared identifier is reported only once
> ipt_string.c:80: for each function it appears in.)
> make[2]: *** [ipt_string.o] Error 1
> make[2]: Leaving directory `/usr/src/linux-2.4.16/net/ipv4/netfilter'
> make[1]: *** [_modsubdir_ipv4/netfilter] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.4.16/net'
> make: *** [_mod_net] Error 2
> 
> 
> I thought that the string matching can be used with kernel that above 2.4.9,
> why do the error occur on the 2.4.16 kernel. I'm also patching the 
> kernel with LIDS.

This was recently fixed in netfilter cvs, but unfortunatly after the
1.2.6a release.

It's very easy to fix it so it compiles and works, just remove the first
argument to max() in ipt_string.c

/Martin

Never argue with an idiot. They drag you down to their level, then beat you with 
experience.


Reply via email to