On Fri, 27 Feb 2004, Mahmood Ahmed wrote:

> [EMAIL PROTECTED] linux]# gcc -D__KERNEL__ -I/usr/include/linux -Wall
> -Wstrict-prototypes\
> > -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce \
> > -mcpu=i386 -DCPU=386 -DMODULE -DMODVERSIONS -include \
> > /usr/include/linux/modversions.h -c ip_wccp.c

both /usr/include/linux references above should point to your kernel 
sources, not the /usr/include directory. Usually 
/usr/src/linux-2.4.24/include/linux or similar.

If you have not built your own custom kernel this first needs to be done.  
Few if any distributions include kernel headers that allow easy building
of extra modules without first building a custom kernel to use with the
modules.

Regards
Henrik

Reply via email to