[squid-users] WCCP Compilation Error

From: Scott Phalen <scott@dont-contact.us>
Date: Fri, 25 Feb 2005 13:31:39 -0600

I am building squid (2.5STABLE7) on a new RHEL 3 AS dell server (kernel
2.4.21-4.ELsmp). When compiling the ip_wccp module I get the following
error:

iip_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

Output of those lines in the ip_wccp.c file:

  IPPROTO_GRE,
  0,
  NULL,
  "GRE"
};
static inline void wccp_add_protocol(void) {
inet_add_protocol(&ipwccp_protocol); }
static inline int wccp_del_protocol(void) { return
inet_del_protocol(&ipwccp_protocol); }

I have searched the archives and google but can't find any solutions for
this. I tried using the latest ip_wccp.c file from squid-cache.org and a
file I used successfully on AS 2.1 a year ago. Any guidance is greatly
appreciated!

Scott Phalen
Received on Fri Feb 25 2005 - 12:31:17 MST

This archive was generated by hypermail pre-2.1.9 : Tue Mar 01 2005 - 12:00:02 MST