Leonardo, This problem was the supposed to be fixed.... hmmm
at any rate here is how to "patch" it: **this is assuming you have already run the "make patch-o-matic"** 1. Use you favorite text editor to edit the ipt_string.c file. vi /usr/src/<your_kernel_source_directory>/net/ipv4/netfilter/ipt_string.c 2. Change this line: right_end = max(int, right_end - i + sk, right_end + sh); To this: right_end = max(right_end - i + sk, right_end + sh); 3. Save the file. 4. Recompile the kernel Regards, Jeff Humes Leonardo Rodrigues wrote: > Hello Guys, > > I'm having problems compiling kernel 2.4.18 after 'make patch-o-matic' > from iptables 1.2.6 tree. Seems that string module is missing something .... > > gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-tri > graphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpre > ferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include > /usr/src/linux/include/linux/modversions.h -DKBUILD_BASENAME=ipt_string -c > -o ipt_string.o ipt_string.c > 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/net/ipv4/netfilter' > make[1]: *** [_modsubdir_ipv4/netfilter] Error 2 > make[1]: Leaving directory `/usr/src/linux/net' > make: *** [_mod_net] Error 2 > > Am I doing something wrong ? I'd like your advices ... > > Sincerily, > Leonardo Rodrigues
smime.p7s
Description: S/MIME Cryptographic Signature