[tproxy] Tproxy + squid 2.6.18STABLE + squid patch problem!

Luiz Biazus luiz at biazus.com
Fri Oct 31 00:42:42 CET 2008

dear all,

im trying to use the last patch for squid2.6
(tproxy-squid-2.6-STABLE18.20080304-110716-1204625236.patch )
on ubuntu 8.04 with kernel patched!

i follow this steps:

#wget http://www.balabit.com/downloads/files/tproxy/tproxy-squid-2.6-STABLE18.20080304-110716-1204625236.patch
#tar -xvzf squid squid-2.6.STABLE18
#cd squid-2.6.STABLE18
#cat ../tproxy-squid*.patch | patch -p1


patching file configure
patching file configure.in
patching file src/cache_cf.c
patching file src/cf_gen_defines
patching file src/client_side.c
patching file src/comm.c
patching file src/defines.h
patching file src/forward.c
patching file src/globals.h
patching file src/http.c
patching file src/ssl.c
patching file src/structs.h
patching file src/tools.c

# ./configure --prefix=/usr --exec_prefix=/usr
--srcdir=/usr/local/src/squid-2.6.STABLE18 --bindir=/usr/sbin
--sbindir=/usr/sbin --libexecdir=/usr/lib/squid --sysconfdir=/etc
--localstatedir=/var/spool/squid --datadir=/usr/share/squid
--with-pthreads --enable-netfilter --enable-arp-acl --enable-epoll
--enable-removal-policies=lru,heap --enable-snmp --enable-delay-pools
--enable-htcp --enable-cache-digests --enable-auth="basic,digest"
--enable-carp --enable-follow-x-forwarded-for --with-large-files
--enable-linux-tproxy --with-filedescriptors=65536
--enable-multicast-miss --disable-ident-lookups --with-maxfd=65536

everything ok until here!

but when i do make....

make[3]: Leaving directory `/usr/local/src/squid-2.6.STABLE18/src/auth'
make[3]: Entering directory `/usr/local/src/squid-2.6.STABLE18/src'
gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/etc/squid.conf\" -I. -I.
-I../include -I. -I. -I../include -I../include    -m64 -Wall -g -O2
-D_REENTRANT -DUNLINK_DAEMON -c ./unlinkd.c -o unlinkd-daemon.o
gcc  -m64 -Wall -g -O2 -D_REENTRANT   -o unlinkd   unlinkd-daemon.o
if gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/etc/squid.conf\" -I.
-I. -I../include -I. -I. -I../include -I../include    -m64 -Wall -g
-O2 -D_REENTRANT -MT access_log.o -MD -MP -MF ".deps/access_log.Tpo"
-c -o access_log.o access_log.c; \
        then mv -f ".deps/access_log.Tpo" ".deps/access_log.Po"; else
rm -f ".deps/access_log.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/etc/squid.conf\" -I.
-I. -I../include -I. -I. -I../include -I../include    -m64 -Wall -g
-O2 -D_REENTRANT -MT acl.o -MD -MP -MF ".deps/acl.Tpo" -c -o acl.o
acl.c; \
        then mv -f ".deps/acl.Tpo" ".deps/acl.Po"; else rm -f
".deps/acl.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/etc/squid.conf\" -I.
-I. -I../include -I. -I. -I../include -I../include    -m64 -Wall -g
-O2 -D_REENTRANT -MT asn.o -MD -MP -MF ".deps/asn.Tpo" -c -o asn.o
asn.c; \
        then mv -f ".deps/asn.Tpo" ".deps/asn.Po"; else rm -f
".deps/asn.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/etc/squid.conf\" -I.
-I. -I../include -I. -I. -I../include -I../include    -m64 -Wall -g
-O2 -D_REENTRANT -MT authenticate.o -MD -MP -MF
".deps/authenticate.Tpo" -c -o authenticate.o authenticate.c; \
        then mv -f ".deps/authenticate.Tpo" ".deps/authenticate.Po";
else rm -f ".deps/authenticate.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/etc/squid.conf\" -I.
-I. -I../include -I. -I. -I../include -I../include    -m64 -Wall -g
-O2 -D_REENTRANT -MT cache_cf.o -MD -MP -MF ".deps/cache_cf.Tpo" -c -o
cache_cf.o cache_cf.c; \
        then mv -f ".deps/cache_cf.Tpo" ".deps/cache_cf.Po"; else rm
-f ".deps/cache_cf.Tpo"; exit 1; fi
cache_cf.c:45:2: error: #error krotefa
In file included from cache_cf.c:2629:
cf_parser.h: In function âparse_lineâ:
cf_parser.h:999: warning: passing argument 1 of âparse_ushortâ from
incompatible pointer type
cf_parser.h: In function âfree_allâ:
cf_parser.h:1820: warning: passing argument 1 of âfree_ushortâ from
incompatible pointer type
make[3]: *** [cache_cf.o] Error 1
make[3]: Leaving directory `/usr/local/src/squid-2.6.STABLE18/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/squid-2.6.STABLE18/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/src/squid-2.6.STABLE18/src'
make: *** [all-recursive] Error 1

any one knows what´s up?!

Best Rgds!

Luiz Biazus

More information about the tproxy mailing list