Hi all,
I applyed the Visolve patch for Squid2.5 ( to enable Wccpv2 on
Squid )
and now I'm trying to configure and compile Squid2.5 ... I'm trying because
I have a problem.
Here what I've done :
1) tar xvzf squid-2.5.STABLE5-icap-6-pre3.tar.gz ( these Squid sources
are patched with ICAP support )
2) patch -p1 < /squid-w2/squid-2.5.STABLE5-icap-6-pre3/visolve_wccpv2-s2_5.patch
( I patched Squid sources with the
Visolve-patch for Wccpv2 support )
When I applyed this patch I had the messages :
patching file acconfig.h
Hunk #1 succeeded at 119 (offset 7 lines).
patching file configure.in
patching file src/Makefile.am
Hunk #1 succeeded at 32 (offset 6 lines).
Hunk #2 succeeded at 110 (offset 7 lines).
Hunk #3 succeeded at 211 (offset 8 lines).
patching file src/cf.data.pre
Hunk #1 succeeded at 3420 (offset 305 lines).
Hunk #3 succeeded at 3460 (offset 305 lines).
patching file src/cf_gen_defines
Hunk #1 FAILED at 18.
1 out of 1 hunk FAILED -- saving rejects to file src/cf_gen_defines.rej
patching file src/main.c
Hunk #1 succeeded at 297 (offset 5 lines).
Hunk #3 succeeded at 349 (offset 5 lines).
Hunk #4 succeeded at 391 (offset 16 lines).
Hunk #5 succeeded at 549 (offset 11 lines).
Hunk #6 succeeded at 987 (offset 22 lines).
patching file src/protos.h
Hunk #1 succeeded at 571 (offset 1 line).
patching file src/structs.h
Hunk #1 succeeded at 467 (offset 23 lines).
patching file src/wccpv2.c
3) So I applyed manually the source code in the file src/cf_gen_defines.
I added that line :
define["USE_WCCPv2"] = "--enable-wccpv2"
4) I had also to add in the file configure the lines :
ac_help="$ac_help
--enable-wccpv2 Enable Web Cache Coordination V2 Protocol"
# Check whether --enable-wccpv2 was given.
if test "${enable_wccpv2+set}" = set; then
enableval="$enable_wccpv2"
if test "$enableval" = "yes" ; then
echo "Web Cache Coordination Protocol V2 enabled"
cat >> confdefs.h <<\EOF
#undef USE_WCCPv2 1
EOF
fi
fi
5) ./configure --prefix=/usr/local/squid --enable-icap-support --enable-wccp2
6) make all
Everything seems to be OK but instead of compiling wccpv2.c was compiled
wccp.c . I made many tests but I can't be able to compile wccpv2.c .
Infact in /include/autoconf.h there is :
/*
* Define to enable WCCP
*/
#define USE_WCCP 0 --> and non USE_WCCPv2
and the comand "make all" displays on the video the creation of wccp.o .
Some other information :
Linux Distribution: Red Hat 9
Kernel version: 2.4.20-20.9
Is there anyone who can help me ????
Regards
Andrea
Received on Fri Feb 11 2005 - 09:32:22 MST
This archive was generated by hypermail pre-2.1.9 : Tue Mar 01 2005 - 12:00:02 MST