Re: [squid-users] Problem applying ICAP Patch to 2.6.STABLE10

From: Kai Steverding <kasi@dont-contact.us>
Date: Sat, 17 Mar 2007 14:06:17 +0100

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

Hi !
Thanks for the help. I did as advised, which corrected the issue in
client_side.c but now there is a problem when compiling http.c:

then mv -f ".deps/helper.Tpo" ".deps/helper.Po"; else rm -f
".deps/helper.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H
- -DDEFAULT_CONFIG_FILE=\"/usr/local/squid/etc/squid.conf\" -I. -I.
- -I../include -I. -I. -I../include -I../include -Wall -g -O2 -MT
http.o -MD -MP -MF ".deps/http.Tpo" -c -o http.o http.c; \
then mv -f ".deps/http.Tpo" ".deps/http.Po"; else rm -f
".deps/http.Tpo"; exit 1; fi
http.c: In function `httpAppendBody':
http.c:649: warning: passing arg 2 of `icapRespModAddBodyData' discards
qualifiers from pointer target type
http.c:661: warning: passing arg 2 of `icapRespModAddBodyData' discards
qualifiers from pointer target type
http.c: In function `httpSendComplete':
http.c:1144: error: incompatible type for argument 2 of `storeCreateEntry'
http.c:1144: error: incompatible type for argument 3 of `storeCreateEntry'
http.c:1144: error: too few arguments to function `storeCreateEntry'
make[4]: *** [http.o] Error 1
make[4]: Leaving directory `/var/squid-tree/squid-2.6.STABLE11/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/squid-tree/squid-2.6.STABLE11/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/squid-tree/squid-2.6.STABLE11/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/squid-tree/squid-2.6.STABLE11'
make: *** [build] Error 2

in store.h i found:

extern StoreEntry *storeCreateEntry(const char *, const char *,
request_flags, method_t);

but in http.c it is called this way:

httpState->entry = storeCreateEntry("fake", fake_flags, fake_method);

Can i resolv this problem simply with calling

httpState->entry = storeCreateEntry("fake", "fake",fake_flags, fake_method);

?

Thanks

Kai

Henrik Nordstrom schrieb:
| tor 2007-03-15 klockan 21:38 +0100 skrev Kai Steverding:
|
|>I just downloaded the latest ICAP Patch from
|>
|>http://devel.squid-cache.org/cgi-bin/diff2/icap-2_6.patch
|
|
|>and tried to apply it to the latest 2.6 branch squid.It didn't apply:
|
|
| http://www.squid-cache.org/mail-archive/squid-dev/200703/0074.html
|
| Regards
| Henrik
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFF++fJaoKL0dhmIeERAsomAKCWsSQngH+zWavVUGvtFWQ0YWEy5wCeM6W/
V/gwPD634EWiWk+b7Ez2/pU=
=oiBB
-----END PGP SIGNATURE-----
Received on Sat Mar 17 2007 - 07:06:08 MDT

This archive was generated by hypermail pre-2.1.9 : Sat Mar 31 2007 - 13:00:02 MDT