[SQU] Squid with ipf on solaris

From: $BLZB <ma-kimura@dont-contact.us>
Date: Wed, 27 Sep 2000 14:38:53 +0900

Hi.

I tried to compile squid-2.3.STABLE4 with IP-Filter 3.4.10
on Solaris 8 for Intel(MU1) and gcc-2.95.2.
But, compile doesn't successful.

I tried fix error.
First, I read 'Reported Bugs' on squid 2.3, patched there.
  squid-2.3.stable4-ftp_icon_not_found.patch
  squid-2.3.stable4-internal_dns_rcode_table_formatting.patch
  squid-2.3.stable4-invalid_ip_acl_entry.patch
  squid-2.3.stable4-ipfw_configure.patch

Second, I read this ML's log, and execute this command.
http://www.si.uniovi.es/mirror/squid/mail-archive/squid-users/200006/0870.html
  % cd src
  % perl -i -p -e 's/\bCounter\b/statCounter/g' *.[ch]

Third, I think this error message not related squid,
  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'
And I delete it in /usr/include/inet/ip.h
  % diff /usr/include/inet/ip.h.org /usr/include/inet/ip.h
  1151,1166d1150
  < struct ip6_pkt_s {
  < uint_t ipp_fields; /* Which fields are valid */
  < uint_t ipp_ifindex; /* pktinfo ifindex */
  < in6_addr_t ipp_addr; /* pktinfo src/dst addr */
  < uint_t ipp_hoplimit;
  < uint_t ipp_hopoptslen;
  < uint_t ipp_rtdstoptslen;
  < uint_t ipp_rthdrlen;
  < uint_t ipp_dstoptslen;
  < ip6_hbh_t *ipp_hopopts;
  < ip6_dest_t *ipp_rtdstopts;
  < ip6_rthdr_t *ipp_rthdr;
  < ip6_dest_t *ipp_dstopts;
  < in6_addr_t ipp_nexthop; /* Transmit only */
  < };
  < typedef struct ip6_pkt_s ip6_pkt_t;

Forth, this error is fix to delete it in src/squid.h.
  In file included from /usr/include/vm/as.h:38,
                   from /usr/include/sys/devops.h:16,
                   from /usr/include/sys/ddi_impldefs.h:15,
                   from /usr/include/sys/promif.h:16,
                   from /usr/include/inet/ip.h:1381,
                   from /usr/include/netinet/ip_compat.h:102,
                   from client_side.c:51:
  /usr/include/vm/seg.h:139: parse error before `+'
  % diff src/squid.h.org src/squid.h
  401,403d400
  < #ifndef free
  < #define free +
  < #endif

Finally, I don't fix it.
  gcc -g -I. -I../include -I../include -c client_side.c
  In file included from /usr/include/sys/promif.h:18,
                   from /usr/include/inet/ip.h:1365,
                   from /usr/include/netinet/ip_compat.h:102,
                   from client_side.c:51:
  /usr/include/sys/varargs.h:61: warning: `va_start' redefined
  /opt/sfw/lib/gcc-lib/i386-pc-solaris2.8/2.95.2/include/stdarg.h:96: warning: this is the location of the previous definition
  /usr/include/sys/varargs.h:62: warning: `va_arg' redefined
  /opt/sfw/lib/gcc-lib/i386-pc-solaris2.8/2.95.2/include/stdarg.h:109: warning: this is the location of the previous definition
  /usr/include/sys/varargs.h:101: warning: `va_end' redefined
  /opt/sfw/lib/gcc-lib/i386-pc-solaris2.8/2.95.2/include/stdarg.h:100: warning: th is is the location of the previous definition
  In file included from /usr/include/sys/promif.h:18,
                   from /usr/include/inet/ip.h:1365,
                   from /usr/include/netinet/ip_compat.h:102,
                   from client_side.c:51:
  /usr/include/sys/varargs.h:49: conflicting types for `va_list'
  /opt/sfw/lib/gcc-lib/i386-pc-solaris2.8/2.95.2/include/stdarg.h:170: previous declaration of `va_list'
  /usr/include/sys/varargs.h:100: parse error before `void'
  *** Error code 1
  make: Fatal error: Command failed for target `client_side.o'

help me!

--
To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
Received on Tue Sep 26 2000 - 23:44:42 MDT

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