Okay I've done some more work, I got the patch, applied it (mostly
successful) and ran autoconf to update the configure file (latest squid
(2.5)).
This is what I get while compiling--
gcc -DHAVE_CONFIG_H
-DDEFAULT_CONFIG_FILE=\"/usr/local/squid/etc/squid.conf\" -I. -I.
-I../include -I. -I. -I../include -I../include -g -O2 -Wall -c `test -f
'icap_common.c' || echo './'`icap_common.c
icap_common.c: In function `icapInit':
icap_common.c:47: structure has no member named `icapcfg'
icap_common.c:48: warning: implicit declaration of function `icapOptInit'
icap_common.c: In function `icapClose':
icap_common.c:56: warning: implicit declaration of function
`icapOptShutdown'
icap_common.c: At top level:
icap_common.c:84: syntax error before `*'
icap_common.c: In function `icapParseEncapsulated':
icap_common.c:89: `icap' undeclared (first use in this function)
icap_common.c:89: (Each undeclared identifier is reported only once
icap_common.c:89: for each function it appears in.)
icap_common.c:90: `enc_start' undeclared (first use in this function)
icap_common.c:91: `enc_end' undeclared (first use in this function)
icap_common.c: At top level:
icap_common.c:135: syntax error before `*'
icap_common.c:136: syntax error before `type'
icap_common.c:137: warning: return-type defaults to `int'
icap_common.c: In function `icapService':
icap_common.c:138: `icap_service_list' undeclared (first use in this
function)
icap_common.c:138: `isl_iter' undeclared (first use in this function)
icap_common.c:138: warning: statement with no effect
icap_common.c:139: warning: implicit declaration of function
`icapServiceToStr'
icap_common.c:139: `type' undeclared (first use in this function)
icap_common.c:139: warning: format argument is not a pointer (arg 2)
icap_common.c:140: `r' undeclared (first use in this function)
icap_common.c: At top level:
icap_common.c:159: syntax error before `*'
icap_common.c: In function `icapConnect':
icap_common.c:162: `icap' undeclared (first use in this function)
icap_common.c:167: `icapStateFree' undeclared (first use in this function)
icap_common.c:168: warning: implicit declaration of function `theCallback'
icap_common.c:176: `icapStateFree' used prior to declaration
icap_common.c:176: warning: implicit declaration of function `icapStateFree'
icap_common.c:186: `icapConnectTimeout' undeclared (first use in this
function)
icap_common.c:196: `theCallback' undeclared (first use in this function)
icap_common.c: At top level:
icap_common.c:204: syntax error before `*'
icap_common.c:206: warning: return-type defaults to `int'
icap_common.c: In function `icapAllocate':
icap_common.c:207: `IcapStateData' undeclared (first use in this function)
icap_common.c:207: `icap' undeclared (first use in this function)
icap_common.c:207: warning: statement with no effect
icap_common.c:209: structure has no member named `icapcfg'
icap_common.c:212: syntax error before `)'
icap_common.c: At top level:
icap_common.c:229: `icapStateFree' used prior to declaration
icap_common.c:229: warning: `icapStateFree' was previously implicitly
declared to return `int'
icap_common.c: In function `icapStateFree':
icap_common.c:230: `IcapStateData' undeclared (first use in this function)
icap_common.c:230: `icap' undeclared (first use in this function)
icap_common.c: At top level:
icap_common.c:269: `icapConnectTimeout' used prior to declaration
icap_common.c: In function `icapConnectTimeout':
icap_common.c:270: `IcapStateData' undeclared (first use in this function)
icap_common.c:270: `icap' undeclared (first use in this function)
icap_common.c:273: warning: implicit declaration of function
`icapOptSetUnreachable'
icap_common.c: In function `icapReadTimeout':
icap_common.c:280: `IcapStateData' undeclared (first use in this function)
icap_common.c:280: `icap' undeclared (first use in this function)
icap_common.c: At top level:
icap_common.c:288: syntax error before `icapServiceToType'
icap_common.c:289: warning: return-type defaults to `int'
icap_common.c: In function `icapServiceToType':
icap_common.c:291: `ICAP_SERVICE_REQMOD_PRECACHE' undeclared (first use in
this function)
icap_common.c:293: `ICAP_SERVICE_REQMOD_POSTCACHE' undeclared (first use in
this function)
icap_common.c:295: `ICAP_SERVICE_RESPMOD_PRECACHE' undeclared (first use in
this function)
icap_common.c:297: `ICAP_SERVICE_RESPMOD_POSTCACHE' undeclared (first use in
this function)
icap_common.c:298: `ICAP_SERVICE_MAX' undeclared (first use in this
function)
icap_common.c:299: warning: control reaches end of non-void function
icap_common.c: At top level:
icap_common.c:302: syntax error before `type'
icap_common.c:303: warning: return-type defaults to `int'
icap_common.c:303: warning: type mismatch with previous implicit declaration
icap_common.c:139: warning: previous implicit declaration of
`icapServiceToStr'
icap_common.c:303: warning: `icapServiceToStr' was previously implicitly
declared to return `int'
icap_common.c: In function `icapServiceToStr':
icap_common.c:304: `type' undeclared (first use in this function)
icap_common.c:304: `ICAP_SERVICE_MAX' undeclared (first use in this
function)
icap_common.c:305: `icap_service_type_str' undeclared (first use in this
function)
icap_common.c:307: warning: return from incompatible pointer type
icap_common.c:308: warning: control reaches end of non-void function
icap_common.c: In function `icapCheckAcl':
icap_common.c:331: `icap_access' undeclared (first use in this function)
icap_common.c:331: `iter' undeclared (first use in this function)
icap_common.c:331: warning: statement with no effect
icap_common.c:332: syntax error before `*'
icap_common.c:334: structure has no member named `icapcfg'
icap_common.c:336: `icapChecklist' undeclared (first use in this function)
icap_common.c:342: structure has no member named `class'
icap_common.c: At top level:
icap_common.c:390: syntax error before `IcapStateData'
icap_common.c: In function `icapReadHeader':
icap_common.c:398: `fd' undeclared (first use in this function)
icap_common.c:442: `icap' undeclared (first use in this function)
icap_common.c:446: `isIcap' undeclared (first use in this function)
icap_common.c: At top level:
icap_common.c:460: syntax error before `*'
icap_common.c:461: warning: return-type defaults to `int'
icap_common.c: In function `icapParseConnectionClose':
icap_common.c:462: `s' undeclared (first use in this function)
icap_common.c:462: `e' undeclared (first use in this function)
icap_common.c: At top level:
icap_common.c:469: syntax error before `*'
icap_common.c: In function `icapSetKeepAlive':
icap_common.c:473: `icap' undeclared (first use in this function)
icap_common.c:475: `hdrs' undeclared (first use in this function)
icap_common.c: At top level:
icap_common.c:578: syntax error before `*'
icap_common.c: In function `icapParseChunkedBody':
icap_common.c:582: `icap' undeclared (first use in this function)
icap_common.c:593: warning: implicit declaration of function `store'
icap_common.c:593: `store_data' undeclared (first use in this function)
icap_common.c: In function `icapAddAuthUserHeader':
icap_common.c:663: structure has no member named `icapcfg'
icap_common.c:667: structure has no member named `icapcfg'
icap_common.c:669: structure has no member named `icapcfg'
icap_common.c:671: structure has no member named `icapcfg'
icap_common.c:672: structure has no member named `icapcfg'
icap_common.c:655: warning: `userofslen' might be used uninitialized in this
function
gmake[3]: *** [icap_common.o] Error 1
gmake[3]: Leaving directory `/root/dave-squid/squid-2.5.STABLE5/src'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/root/dave-squid/squid-2.5.STABLE5/src'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/root/dave-squid/squid-2.5.STABLE5/src'
gmake: *** [all-recursive] Error 1
Any help would be MOST appreciated, thanks
Dave
-----Original Message-----
From: Dave Raven [mailto:dave@raven.za.net]
Sent: 20 April 2004 12:03 PM
To: squid-users@squid-cache.org
Subject: [squid-users] ICAP build
Hi all,
I've been trying to build squid with ICAP support lately (applied
the patch to the latest squid) and with the squid-icap-2.5-200404051745
snapshot and had no success (lots of automake/autoconf errors with the
snapshot and a lot of errors in icap_common.c with the patch). Is anyone
currently using it or is there another version or something? Also I intend
to try and interface this with the netapp icap server release, and then get
that to talk to clamav - is there a better way of handing virus scanning
over to Clam ?
Thanks
Dave
Received on Tue Apr 20 2004 - 17:13:38 MDT
This archive was generated by hypermail pre-2.1.9 : Fri Apr 30 2004 - 12:00:02 MDT