Hi list,
I've downloaded ipvsadm-1.21.tar.gz and patched my vanilla kernel. Problem
is, when I try to compile ipvsadm, the error is:
-------------------------------------------------------
gcc -Wall -Wunused -Wstrict-prototypes -g -O2 -I/usr/src/linux/include
-DVERSION=\"1.21\" -DSCHEDULERS=\""rr|wrr|lc|wlc|lblc|dh|sh"\" -DHAVE_POPT
-DHAVE_NET_IP_VS_H -o ipvsadm.o -c ipvsadm.c
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/asm/param.h:4,
from /usr/src/linux/include/linux/param.h:4,
from /usr/include/sys/param.h:24,
from ipvsadm.c:102:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in
userspace
make: *** [ipvsadm.o] Error 1
-------------------------------------------------------
From reading on google, seems that there's a policy for userspace program not
to include any kernel header?
I don't understand about programming, but it seems that it's getting headers
from /usr/include and also /usr/src/linux/include. What can I do so that all
include is from /usr/src/linux/include (or the other one, whichever is
correct)?
I'm using RedHat 8.0, with a patched vanilla kernel 2.4.18, and ipvsadm-1.21.
Thank you.
|