Hello,
I'm having some difficulty to compile squid 3.2.0.16 under Solaris 10 (u7 5/09) - x86.
At first, it doesn't compile nor with gcc 3.4.6 nor Sun CC. So, I finally (and hardly) succeeded to
have a gcc-4.6.3 compiled...
Now the problems...
The starting configuration options are (derived from my running squid 3.1.x) :
HELPERS="basic,digest,ntlm"
BASIC_HELPERS="DB,LDAP,PAM,getpwnam,SASL"
DIGEST_HELPERS="ldap,password"
./configure\
--prefix=/var/squid \
--disable-icmp \
--enable-snmp \
--enable-delay-pools \
--enable-useragent-log \
--enable-referer-log \
--enable-cache-digests \
--enable-kill-parent-hack \
--enable-cachemgr-hostname=proxy.ensmp.fr \
--enable-ssl \
--with-openssl=/usr/local/ssl \
--enable-auth \
--enable-basic-auth-helpers=$BASIC_HELPERS \
--enable-digest-auth-helpers=$DIGEST_HELPERS \
--disable-ident-lookups \
--enable-async-io \
--enable-carp \
--enable-xmalloc-statistics \
--with-large-files \
--with-build-environment=POSIX_V6_ILP32_OFFBIG \
--disable-gnuregex \
LDFLAGS=-lsasl
*******************************************
With these options, configure rants :
checking for broken Solaris krb5.h... yes
configure: WARNING: You have a broken Solaris <krb5.h> system include.
configure: WARNING: Please see http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6837512
configure: WARNING: If you need Kerberos support you'll have to patch
configure: WARNING: your system. See contrib/solaris/solaris-krb5-include.patch
but the contrib pointed file : "contrib/solaris/solaris-krb5-include.patch" can't be found in any
distribution of squid (3.0.x, 3.1.x and 3.2.x). Neither the opensolaris URL...
To circunvent this, as I think I don't need kerberos, I added the option "--without-krb5-config".
So far, so good, configure is OK, but the compile process stops later with :
...
/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
-DDEFAULT_STATEDIR=\"/var/squid/var/run/squid\" -I../.. -I../../include -I../../lib -I../../src
-I../../include -I../../libltdl -I/usr/local/ssl/include -Wall -Wpointer-arith -Wwrite-strings
-Wcomments -Werror -pipe -D_REENTRANT -pthreads -Usparc -Uunix -Ui386 -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -g -O2 -MT TypedMsgHdr.lo -MD -MP -MF .deps/TypedMsgHdr.Tpo -c -o
TypedMsgHdr.lo TypedMsgHdr.cc
libtool: compile: g++ -DHAVE_CONFIG_H -DDEFAULT_STATEDIR=\"/var/squid/var/run/squid\" -I../..
-I../../include -I../../lib -I../../src -I../../include -I../../libltdl -I/usr/local/ssl/include
-Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -pipe -D_REENTRANT -pthreads -Usparc -Uunix
-Ui386 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -MT TypedMsgHdr.lo -MD -MP -MF
.deps/TypedMsgHdr.Tpo -c TypedMsgHdr.cc -fPIC -DPIC -o .libs/TypedMsgHdr.o
TypedMsgHdr.cc: In member function 'void Ipc::TypedMsgHdr::address(const sockaddr_un&)':
TypedMsgHdr.cc:78:32: error: 'SUN_LEN' was not declared in this scope
gmake[3]: *** [TypedMsgHdr.lo] Error 1
gmake[3]: Leaving directory `/export/sources/squid/squid-3.2.0.16/src/ipc'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/export/sources/squid/squid-3.2.0.16/src'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/export/sources/squid/squid-3.2.0.16/src'
gmake: *** [all-recursive] Error 1
Any help is welcome...
Regards
José-Marcio
--