Thanks for your quick reply
i use standard wccp module aviable at squid site
i am patching with following command
gcc -D__KERNEL__ -I/usr/src/linux-2.6.0/include -Wall
-Wstrict-prototypes \
-O2 -fomit-frame-pointer -fno-strict-aliasing -pipe
-fno-strength-reduce \
-m386 -DCPU=386 -DMODULE -DMODVERSIONS -include \
/usr/src/linux-2.6.0/include/linux/modversions.h -c
ip_wccp.c
there is no modversions.h at that location .one thing
more , iptables are not compiled cleanly with 2.6.0
kernel is thats the reason
this command works fine with 2.4.x kernel
or i am missing something
error is below .
`-m386' is deprecated. Use `-march=i386' or
`-mcpu=i386' instead.
<command line>:137890711:2976:
/usr/src/linux-2.6.0/include/linux/modversions.h: No
such file or directory
In file included from
/usr/src/linux-2.6.0/include/linux/irq.h:20,
from
/usr/src/linux-2.6.0/include/asm/hardirq.h:6,
from
/usr/src/linux-2.6.0/include/linux/interrupt.h:11,
from
/usr/src/linux-2.6.0/include/asm/highmem.h:24,
from
/usr/src/linux-2.6.0/include/linux/highmem.h:14,
from
/usr/src/linux-2.6.0/include/linux/skbuff.h:27,
from ip_wccp.c:32:
/usr/src/linux-2.6.0/include/asm/irq.h:16:25:
irq_vectors.h: No such file or directory
In file included from
/usr/src/linux-2.6.0/include/asm/hardirq.h:6,
from
/usr/src/linux-2.6.0/include/linux/interrupt.h:11,
from
/usr/src/linux-2.6.0/include/asm/highmem.h:24,
from
/usr/src/linux-2.6.0/include/linux/highmem.h:14,
from
/usr/src/linux-2.6.0/include/linux/skbuff.h:27,
from ip_wccp.c:32:
/usr/src/linux-2.6.0/include/linux/irq.h:70: `NR_IRQS'
undeclared here (not in a function)In file included
fro
m /usr/src/linux-2.6.0/include/linux/irq.h:72,
from
/usr/src/linux-2.6.0/include/asm/hardirq.h:6,
from
/usr/src/linux-2.6.0/include/linux/interrupt.h:11,
from
/usr/src/linux-2.6.0/include/asm/highmem.h:24,
from
/usr/src/linux-2.6.0/include/linux/highmem.h:14,
from
/usr/src/linux-2.6.0/include/linux/skbuff.h:27,
from ip_wccp.c:32:
/usr/src/linux-2.6.0/include/asm/hw_irq.h:28:
`NR_IRQ_VECTORS' undeclared here (not in a function)
/usr/src/linux-2.6.0/include/asm/hw_irq.h:31:
`NR_IRQS' undeclared here (not in a function)
ip_wccp.c:47:41: missing binary operator before '('
ip_wccp.c:105: variable `ipgre_protocol' has
initializer but incomplete type
ip_wccp.c:106: warning: excess elements in struct
initializer
--- Henrik Nordstrom <hno@squid-cache.org> wrote:
> On Sun, 28 Dec 2003, unixware wrote:
>
> > i recently upgrade to kernel 2.6.0 but i cant
> patch
> > with ip_wccp.c with newest kernel i think this
> patch
> > aslo need to updated
>
> The latest ip_wccp.c WCCP v1 module linked from the
> FAQ should work with
> 2.6.0 I think. It is however only distributed as a
> separate C file and
> you need to manually integrate it into the kernel
> build process if you are
> not comfortable with compiling it manually.
>
> The 2.4.18 patch supplied by Joe Cooper is based on
> a much older version
> of ip_wccp.c and very specific to Linux-2.4.X. This
> won't work for
> Linux-2.6.
>
> Regards
> Henrik
>
__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
Received on Sun Dec 28 2003 - 11:29:03 MST
This archive was generated by hypermail pre-2.1.9 : Thu Jan 01 2004 - 12:00:27 MST