[moved to squid-dev where it belongs]
-------- Vidarebefordrat meddelande --------
Från: Philipp Lohr <lohr@rwi-essen.de>
Till: squid-bugs@squid-cache.org
Ämne: Squid 2.6 STABLE 10 and ICAP
Datum: Fri, 9 Mar 2007 15:37:55 +0100
Dear Squid Support Team,
I'm an administrator in an economically research Institute in Germany and I
try to implement the icap patch into squid 2.6 STABLE 2.6 but I don't know
why it does not work.
First of all I implement the patch with patch -p1 < icap-2.6.pach.
after that it looks quite good
[code]
patching file configure.in
Hunk #3 succeeded at 2548 (offset 2 lines).
patching file errors/list
patching file errors/Bulgarian/ERR_ICAP_FAILURE
patching file errors/Catalan/ERR_ICAP_FAILURE
patching file errors/Czech/ERR_ICAP_FAILURE
patching file errors/Danish/ERR_ICAP_FAILURE
patching file errors/Dutch/ERR_ICAP_FAILURE
patching file errors/English/ERR_ICAP_FAILURE
patching file errors/Estonian/ERR_ICAP_FAILURE
patching file errors/Finnish/ERR_ICAP_FAILURE
patching file errors/French/ERR_ICAP_FAILURE
patching file errors/German/ERR_ICAP_FAILURE
patching file errors/Greek/ERR_ICAP_FAILURE
patching file errors/Hebrew/ERR_ICAP_FAILURE
patching file errors/Hungarian/ERR_ICAP_FAILURE
patching file errors/Italian/ERR_ICAP_FAILURE
patching file errors/Japanese/ERR_ICAP_FAILURE
patching file errors/Korean/ERR_ICAP_FAILURE
patching file errors/Lithuanian/ERR_ICAP_FAILURE
patching file errors/Polish/ERR_ICAP_FAILURE
patching file errors/Portuguese/ERR_ICAP_FAILURE
patching file errors/Romanian/ERR_ICAP_FAILURE
patching file errors/Russian-1251/ERR_ICAP_FAILURE
patching file errors/Russian-koi8-r/ERR_ICAP_FAILURE
patching file errors/Serbian/ERR_ICAP_FAILURE
patching file errors/Simplify_Chinese/ERR_ICAP_FAILURE
patching file errors/Slovak/ERR_ICAP_FAILURE
patching file errors/Spanish/ERR_ICAP_FAILURE
patching file errors/Swedish/ERR_ICAP_FAILURE
patching file errors/Traditional_Chinese/ERR_ICAP_FAILURE
patching file errors/Turkish/ERR_ICAP_FAILURE
patching file include/util.h
patching file lib/Makefile.am
patching file lib/strcasestr.c
patching file lib/strnstr.c
patching file src/Makefile.am
patching file src/MemBuf.c
patching file src/cache_cf.c
Hunk #1 succeeded at 2394 (offset 7 lines).
patching file src/cbdata.c
patching file src/cf.data.pre
Hunk #1 succeeded at 3215 (offset 15 lines).
Hunk #2 succeeded at 3483 (offset 15 lines).
patching file src/cf_gen_defines
patching file src/client_side.c
Hunk #6 succeeded at 1375 (offset 8 lines).
Hunk #7 succeeded at 1410 (offset 8 lines).
Hunk #8 succeeded at 1610 (offset 9 lines).
Hunk #9 succeeded at 1629 (offset 9 lines).
Hunk #10 succeeded at 1655 (offset 11 lines).
Hunk #11 succeeded at 3318 (offset -16 lines).
Hunk #12 succeeded at 3329 with fuzz 1 (offset -15 lines).
Hunk #13 FAILED at 3778.
Hunk #14 FAILED at 3811.
Hunk #15 succeeded at 3831 (offset -182 lines).
Hunk #16 succeeded at 4119 (offset 7 lines).
Hunk #17 succeeded at 4248 (offset 7 lines).
Hunk #18 succeeded at 4290 (offset 7 lines).
Hunk #19 succeeded at 5012 (offset 7 lines).
2 out of 19 hunks FAILED -- saving rejects to file src/client_side.c.rej
patching file src/comm.c
patching file src/enums.h
patching file src/forward.c
Hunk #2 succeeded at 942 (offset 2 lines).
Hunk #3 succeeded at 982 (offset 2 lines).
Hunk #4 succeeded at 1003 (offset 2 lines).
patching file src/globals.h
patching file src/http.c
Hunk #5 succeeded at 643 (offset -1 lines).
Hunk #6 succeeded at 716 (offset -1 lines).
Hunk #7 succeeded at 737 (offset -10 lines).
Hunk #8 succeeded at 800 (offset -10 lines).
Hunk #9 succeeded at 863 (offset -10 lines).
Hunk #10 succeeded at 885 (offset -10 lines).
Hunk #11 succeeded at 932 (offset -10 lines).
Hunk #12 succeeded at 1036 (offset -15 lines).
Hunk #13 succeeded at 1106 (offset -15 lines).
Hunk #14 succeeded at 1171 (offset -15 lines).
Hunk #15 succeeded at 1486 (offset -15 lines).
Hunk #16 succeeded at 1616 with fuzz 1 (offset -15 lines).
Hunk #17 succeeded at 1659 (offset -15 lines).
patching file src/icap_common.c
patching file src/icap_opt.c
patching file src/icap_reqmod.c
patching file src/icap_respmod.c
patching file src/main.c
patching file src/mem.c
patching file src/mk-string-arrays.pl
patching file src/pconn.c
patching file src/protos.h
Hunk #1 succeeded at 302 (offset -1 lines).
Hunk #2 succeeded at 626 (offset -2 lines).
Hunk #3 succeeded at 1420 with fuzz 2 (offset -14 lines).
patching file src/squid.h
patching file src/stat.c
Hunk #1 succeeded at 804 (offset 9 lines).
Hunk #2 succeeded at 1199 (offset 9 lines).
Hunk #3 succeeded at 1510 (offset 9 lines).
patching file src/store.c
Hunk #1 succeeded at 1105 (offset -8 lines).
patching file src/structs.h
Hunk #2 succeeded at 827 (offset 5 lines).
Hunk #3 succeeded at 911 (offset 4 lines).
Hunk #4 succeeded at 1121 (offset 3 lines).
Hunk #5 succeeded at 1257 (offset 3 lines).
Hunk #6 succeeded at 1376 (offset 4 lines).
Hunk #7 succeeded at 1391 (offset 4 lines).
Hunk #8 succeeded at 2063 (offset 5 lines).
Hunk #9 succeeded at 2173 (offset 5 lines).
patching file src/typedefs.h
patching file src/url.c
[/code]
Than I try continue with the bootstrap.sh followed by ./configure
--enable--icap-support --prefix=/usr/local/squid26.
That works to.
But when I try to execute the "make" command I'll get this error:
[code]
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 argument 2 of 'icapRespModAddBodyData' discards
qualifiers from pointer target type
http.c:661: warning: passing argument 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[3]: *** [http.o] Fehler 1
make[3]: Leaving directory `/home/plohr/Projekte/proxy/Squid-2.6/squid-
2.6.STABLE10/src'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/home/plohr/Projekte/proxy/Squid-2.6/squid-
2.6.STABLE10/src'
make[1]: *** [all] Fehler 2
make[1]: Leaving directory `/home/plohr/Projekte/proxy/Squid-2.6/squid-
2.6.STABLE10/src'
make: *** [all-recursive] Fehler 1
[/code]
**I use a SuSE 10.2 32 bit System fully patched.
Probably this will help you to fix it.
SincerelyPhilipp Lohr
___________________________________________________________________
|Rheinisch-Westfälisches Institut für Wirtschaftsforschung e.V. |
| Kompetenzbereich Daten |
| Philipp Lohr |
| Hohenzollern Str. 1-3 D - 45128 Essen |
| Tel.: 02 01 / 81 49 - 246 - Telefax: 02 01 / 81 49 - 200 |
| Mail: lohr@rwi-essen.de |
___________________________________________________________________
This archive was generated by hypermail pre-2.1.9 : Sun Apr 01 2007 - 12:00:01 MDT