----- Original Message -----
From: "Robin Stevens" <robin.stevens@computing-services.oxford.ac.uk>
To: "sovik" <ahn@sovik.co.kr>
Cc: <squid-users@squid-cache.org>
Sent: Tuesday, August 07, 2001 6:49 PM
Subject: Re: [squid-users] Compiling Problem with transparent proxy on Squid-2.3.STABLE3(SOLARIS 8, 64bit Processor , Sparc)
> On Tue, Aug 07, 2001 at 12:15:22PM +0900, sovik wrote:
> > We wanted to test Transparent Proxy On SOLARIS 8(Squid-2.3.STABLE3 installed)
> >
> > when configuring squid, we take an option --enable-ipf-transparent
> >
> > on compiling squid, Following Eorror is shown
> >
> > In file included from /usr/include/inet/ip.h:18,
> > from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0/include/netinet/ip_compat.h:111,
> > from client_side.c:47:
> > /usr/include/inet/mib2.h:105: `Counter' redeclared as different kind of symbol
> > globals.h:138: previous declaration of `Counter'
> > In file included from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0/include/netinet/ip_compat.h:111,
> > from client_side.c:47:
> > /usr/include/inet/ip.h:1337: parse error before "ip6_hbh_t"
> > /usr/include/inet/ip.h:1339: parse error before '*' token
> > /usr/include/inet/ip.h:1340: parse error before '*' token
> > /usr/include/inet/ip.h:1342: parse error before '}' token
>
> This was causing me problems yesterday. The errors appear to originate in
> a bit of ipv6 specific code in the headers, so unless you actually use
> ipv6, it can be removed, at least while you compile squid.
>
> Quick and dirty solution: edit /usr/include/inet/ip.h and at line 1328,
> wrap in a suitable #ifdef, eg:
>
> #ifdef PERSON_WHO_WANTS_IPV6
> struct ip6_pkt_s {
> uint_t ipp_fields; /* Which fields are valid */
> uint_t ipp_ifindex; /* pktinfo ifindex */
> ...
> in6_addr_t ipp_nexthop; /* Transmit only */
> };
> typedef struct ip6_pkt_s ip6_pkt_t;
> #endif
>
> No doubt there's a better way, but this seems to do the job...
>
thanks answer..
in squid-2.3.STABLE3/src
we commanded
find . -name '*.[ch]' --print | xargs perl -i -p -e 's/\bCounter\b/StatCounter/g;'
and /usr/include/inet/ip.h..
suitable #ifdef..
squid recompile... no error..
but some problem...
i wanted to test Transparent caching with Foundry ServerIron Layer 4 Swith
in squid.conf
http_port 3228
http_access allow all
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
in /etc/ipnat.rules
rdr eri0 0.0.0.0/0 port 80 -> x.x.x.x port 3228 tcp
and ipnat -CF -f /etc/ipnat.rules
run squid
touch -f access.log
997339602.248 1 x.x.x.x NONE/400 281 HEAD error:nat-lookup-failed - NONE/- -
i don't know..error.nat-lookup-failed..
please help...
Received on Thu Aug 09 2001 - 03:18:47 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:01:30 MST