ipt_string.c does not compile
Hans Lohmander
hans.lohmander@ei.sigma.se
Thu, 27 Sep 2001 17:06:33 +0200
Hi,
problem compiling the string module.
Kernal 2.4.10
Iptables 1.2.3
GCC 2.96
Anyone else had the same problem?
gcc -D__KERNEL__ -I/usr/src/linux-2.4.10/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586 -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.10/include/linux/modversions.h -c -o ipt_string.o ipt_string.c
ipt_string.c:65:72: macro "max" passed 3 arguments, but takes just 2
ipt_string.c: In function `search_sublinear':
ipt_string.c:38: warning: array subscript has type `char'
ipt_string.c:63: warning: array subscript has type `char'
ipt_string.c:65: `max' undeclared (first use in this function)
ipt_string.c:65: (Each undeclared identifier is reported only once
ipt_string.c:65: for each function it appears in.)
make[2]: *** [ipt_string.o] Error 1
/Hans
--
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Hans Lohmander -- Sigma Exallon Information AB
Research & Development
Talkto:+46 (0)40 665 91 65
Faxto:+46 (0)40 665 90 22
Mobile# +46 (0)703-79 09 51
mailto:hans.lohmander@ei.sigma.se
http://www.ei.sigma.se/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/