ip_wccp module and squid with RHEL 3 AS

Mohamed Eldesoky m.eldesoky at tedata.net
Wed May 5 11:34:06 UTC 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

Have anyone tried to compile the ip_wccp module mentioned in the 
squid-cache.org FAQ ??
It is linked here http://www.squid-cache.org/WCCP-support/Linux/ip_wccp.c

This module is required to enable wccp.
However, I always get compilation errors when trying it on RHEL 3, while it 
compiles fine on RHL 9.

The compilation I did like that

root# gcc -D__KERNEL__ -I/usr/src/linux-2.4/include -Wall -Wstrict-prototypes  
- -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce 
- -mcpu=i386 -DCPU=i386 -DMODULE -DMODVERSIONS 
- -include /usr/src/linux-2.4/include/linux/modversions.h -c ip_wccp.c

(All on one line)
And the error I got was


ip_wccp.c:133: warning: excess elements in struct initializer
ip_wccp.c:133: warning: (near initialization for `ipwccp_protocol')
ip_wccp.c:134: warning: excess elements in struct initializer
ip_wccp.c:134: warning: (near initialization for `ipwccp_protocol')
ip_wccp.c:135: warning: excess elements in struct initializer
ip_wccp.c:135: warning: (near initialization for `ipwccp_protocol')
ip_wccp.c:137: warning: excess elements in struct initializer
ip_wccp.c:137: warning: (near initialization for `ipwccp_protocol')
ip_wccp.c: In function `wccp_add_protocol':
ip_wccp.c:138: too few arguments to function `inet_add_protocol_Rsmp_dc5483d7'
ip_wccp.c: In function `wccp_del_protocol':
ip_wccp.c:139: too few arguments to function `inet_del_protocol_Rsmp_23842692'

Anything wrong ??

Anyone faced this before ??

Regards
aratux
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAmNEx2FHsOWMJBKMRAiEZAKCXk9FYmXDIghh54qWD4Xdhuu/oAACfbUrV
bH+CM/bBimxmkVolXHHV7uo=
=LBC3
-----END PGP SIGNATURE-----





More information about the redhat-list mailing list