Re: [SQU] --enable-ipf-transparent compile failure on Solaris 8

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Tue, 09 Jan 2001 22:22:56 +0100

This problem has been fixed in 2.3-HEAD. No patch was produced for it,
but you can patch your sources manually if you do not want to use a 2.3
daily snapshot.

   cd squid-2.3.STABLE4/src
   find . -name '*.[ch]' -print | xargs perl -i -p -e
's/\bCounter\b/StatCounter/g;'

My recommendation is to grab the daily snapshot of Squid-2.3. It will
get you one tar ball with all the fixes already applied, including this
one for which there is no separate patch file.

--
Henrik Nordstrom
Squid hacker
Isaac Cheung wrote:
> 
> Hi Henrik,
> 
> I actually had the following compilation errors.  Your refered patch
> fixes the configure error but not the compilation errors.
> 
> Has anyone successfully gotten squid 2.3.STABLE4 running in
> transparent mode with ipfilter3.4.15?
> 
> gcc -g  -Wall -I. -I../include -I../include    -c -o client_side.o
> client_side.c
> In file included from /usr/include/inet/ip.h:18,
>                  from /usr/include/netinet/ip_compat.h:102,
>                  from client_side.c:51:
> /usr/include/inet/mib2.h:105: `Counter' redeclared as different kind
> of symbol
> globals.h:120: previous declaration of `Counter'
> In file included from /usr/include/netinet/ip_compat.h:102,
>                  from client_side.c:51:
> /usr/include/inet/ip.h:1160: parse error before `ip6_hbh_t'
> /usr/include/inet/ip.h:1160: warning: no semicolon at end of struct or
> union
> /usr/include/inet/ip.h:1161: warning: data definition has no type or
> storage class
> /usr/include/! inet/ip.h:1162: parse error before `*'
> /usr/include/inet/ip.h:1162: warning: data definition has no type or
> storage class
> /usr/include/inet/ip.h:1163: parse error before `*'
> /usr/include/inet/ip.h:1163: warning: data definition has no type or
> storage class
> /usr/include/inet/ip.h:1165: parse error before `}'
> client_side.c: In function `clientUpdateCounters':
> client_side.c:583: parse error before `.'
> client_side.c:585: parse error before `.'
> client_side.c:587: parse error before `.'
> client_side.c:588: parse error before `Counter'
> client_side.c:597: parse error before `Counter'
> client_side.c:600: parse error before `Counter'
> client_side.c:605: parse error before `Counter'
> client_side.c:609: parse error before `Counter'
> client_side.c:618: parse error before `.'
> client_side.c:621: parse error before `.'
> client_side.c:624: parse error before `Counter'
> client_side.c:627: parse error before `.'
> client_side.c:630: parse error bef! ore `.'
> client_side.c:580: warning: unused variable `svc_time'< BR>c
> lient_side.c: In function `clientWriteComplete':
> client_side.c:1789: parse error before `Counter'
> client_side.c:1791: parse error before `Counter'
> client_side.c: In function `clientReadRequest':
> client_side.c:2334: parse error before `.'
> client_side.c:2338: parse error before `Counter'
> make[1]: *** [client_side.o] Error 1
> make[1]: Leaving directory `/home/isaacc/build/squid-2.3.STABLE4/src'
> make: *** [all] Error 1
> 
> >From: Henrik Nordstrom
> >To: Isaac Cheung
> >CC: squid-users@ircache.net
> >Subject: Re: [SQU] --enable-ipf-transparent compile failure on
> Solaris 8
> >Date: Tue, 09 Jan 2001 13:37:25 +0100
> >
> >Isaac Cheung wrote:
> > >
> > > Hi,
> > >
> > > I have squid2.3STABLE4 configured with --enable-ipf-transparent
> > > option.
> > > and i used gcc2.95.2 to compile the sources.
> > >
> > > I got the following messages..... please let me know if anyone has
> > > solution for this.
> >
> >http://www.squid-cache.org/Version/v2/2.3/bugs/
> >
> >--
> >To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
> >
> 
> ----------------------------------------------------------------------
> Get your FREE download of MSN Explorer at http://explorer.msn.com
--
To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
Received on Tue Jan 09 2001 - 14:46:26 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:57:23 MST