[squid-users] Squid 3.5.5 fails to build for Solaris

Yuri Voinov yvoinov at gmail.com
Wed Jun 17 07:59:56 UTC 2015


I use this configuration parameters to build 64 bit 3.5.x Squid on Solaris:

'--prefix=/usr/local/squid' '--enable-translation' 
'--enable-external-acl-helpers=none' '--enable-ecap' 
'--enable-ipf-transparent' '--enable-storeio=diskd' 
'--enable-removal-policies=lru,heap' '--disable-wccp' 
'--enable-http-violations' '--enable-follow-x-forwarded-for' 
'--enable-arp-acl' '--enable-htcp' '--enable-cache-digests' '--with-dl' 
'--enable-auth-negotiate=none' '--disable-auth-digest' 
'--disable-auth-ntlm' '--disable-url-rewrite-helpers' 
'--enable-storeid-rewrite-helpers=file' 
'--enable-log-daemon-helpers=file' '--enable-ssl-crtd' 
'--with-openssl=/opt/csw' '--enable-zph-qos' '--disable-snmp' 
'--with-build-environment=POSIX_V6_LP64_OFF64' 'CFLAGS=-O3 -m64 
-mtune=core2 -pipe -Wno-write-strings' 'CXXFLAGS=-O3 -m64 -mtune=core2 
-pipe -Wno-write-strings' 'LIBOPENSSL_CFLAGS=-I/opt/csw/include/openssl' 
'CPPFLAGS=-I/opt/csw/include' 'PKG_CONFIG_PATH=/usr/local/lib/pkgconfig' 
--enable-build-info="Intercept/WCCPv2/OpenSSL/CRTD/DISKD/ECAP/64/GCC 
Production"

This is good enough to build well 64 bit executables.

Note: I've use dual 32/54 bit libraries from OpenCSW repository and 
specified crle libraries path:

root @ cthulhu / # crle

Configuration file [version 4]: /var/ld/ld.config
   Platform:     32-bit LSB 80386
   Default Library Path (ELF): 
/lib:/usr/lib:/usr/local/lib:/opt/csw/lib:/usr/sfw/lib
   Trusted Directories (ELF):    /lib/secure:/usr/lib/secure  (system 
default)

Command line:
   crle -c /var/ld/ld.config -l 
/lib:/usr/lib:/usr/local/lib:/opt/csw/lib:/usr/sfw/lib

root @ cthulhu / # crle -64

Configuration file [version 4]: /var/ld/64/ld.config
   Platform:     64-bit LSB AMD64
   Default Library Path (ELF): 
/lib/64:/usr/lib/64:/opt/csw/lib/64:/usr/sfw/lib/64
   Trusted Directories (ELF):    /lib/secure/64:/usr/lib/secure/64 
(system default)

Command line:
   crle -64 -c /var/ld/64/ld.config -l 
/lib/64:/usr/lib/64:/opt/csw/lib/64:/usr/sfw/lib/64

Hope this helps.

17.06.15 4:47, Stacy Yeh пишет:
> Hi All,
>
> I am attempting to update from Squid 3.1.23 to the latest version 
> 3.5.5 for Solaris and am running into the following build error. From 
> my understanding (correct me if I'm wrong), the issue is that the link 
> is trying to link against the 32-bit version of libtool, although a 
> 64-bit version also exists.
>
> [snip]
> libtool: link: /usr/gcc/4.8/bin/g++ -m64 -Wall -Wpointer-arith 
> -Wwrite-strings -Wcomments -Wshadow -Werror -pipe -D_REENTRANT 
> -pthreads -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 
> -march=native -std=c++11 -m64 -o basic_ncsa_auth basic_ncsa_auth.o 
> crypt_md5.o -m64  ../../../lib/.libs/libmisccontainers.a 
> ../../../lib/.libs/libmiscencoding.a 
> ../../../compat/.libs/libcompat-squid.a -lcrypt -lmd5 -lm -lresolv 
> -pthreads
> ld: warning: file ../../../lib/.libs/libmiscencoding.a(md5.o): wrong 
> ELF class: ELFCLASS32
> Undefined                       first referenced
>  symbol                             in file
> rfc1738_unescape                    basic_ncsa_auth.o
> SquidMD5Update                      crypt_md5.o
> SquidMD5Init                        crypt_md5.o
> SquidMD5Final                       crypt_md5.o
> ld: fatal: symbol referencing errors
> collect2: error: ld returned 1 exit status
> make[4]: *** [basic_ncsa_auth] Error 1
> make[4]: Leaving directory 
> `/builds/skyeh/squid-19581055-s12/components/squid/build/amd64/helpers/basic_auth/NCSA'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory 
> `/builds/skyeh/squid-19581055-s12/components/squid/build/amd64/helpers/basic_auth'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory 
> `/builds/skyeh/squid-19581055-s12/components/squid/build/amd64/helpers'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory 
> `/builds/skyeh/squid-19581055-s12/components/squid/build/amd64'
> gmake: *** 
> [/builds/skyeh/squid-19581055-s12/components/squid/build/amd64/.built] 
> Error 2
>
>
> Any suggestions on how to fix this? For what it's worth, here are the 
> configure options I am using:
>
> CONFIGURE_OPTIONS += --enable-arp-acl
> CONFIGURE_OPTIONS += 
> --enable-auth-basic='DB,NCSA,LDAP,PAM,getpwnam,MSNT-multi-domain,POP3,SMB,SASL'
> CONFIGURE_OPTIONS += --enable-cache-digests
> CONFIGURE_OPTIONS += --enable-carp
> CONFIGURE_OPTIONS += --enable-coss-aio-ops
> CONFIGURE_OPTIONS += --enable-delay-pools
> CONFIGURE_OPTIONS += --enable-auth-digest='LDAP'
> CONFIGURE_OPTIONS += 
> --enable-external-acl-helpers='file_userip,unix_group,LDAP_group,wbinfo_group'
> CONFIGURE_OPTIONS += --enable-follow-x-forwarded-for
> CONFIGURE_OPTIONS += --enable-forward-log
> CONFIGURE_OPTIONS += --enable-forw-via-db
> CONFIGURE_OPTIONS += --enable-htcp
> CONFIGURE_OPTIONS += --enable-icmp
> CONFIGURE_OPTIONS += --enable-large-cache-files
> CONFIGURE_OPTIONS += --enable-multicast-miss
> CONFIGURE_OPTIONS += --enable-auth-negotiate='kerberos'
> CONFIGURE_OPTIONS += --enable-auth-ntlm='smb_lm,fake'
> CONFIGURE_OPTIONS += --enable-ntlm-fail-open
> CONFIGURE_OPTIONS += --enable-removal-policies='heap,lru'
> CONFIGURE_OPTIONS += --enable-snmp
> CONFIGURE_OPTIONS += --enable-ssl
> CONFIGURE_OPTIONS += --enable-storeio='aufs,diskd,ufs'
> CONFIGURE_OPTIONS += --enable-x-accelerator-vary
> CONFIGURE_OPTIONS += --with-aio
> CONFIGURE_OPTIONS += --with-aufs-threads=8
> CONFIGURE_OPTIONS += --with-large-files
> CONFIGURE_OPTIONS += --with-build-environment=POSIX_V6_ILP32_OFFBIG
> CONFIGURE_OPTIONS += --with-pthreads
>
>
> Best,
> Stacy Yeh
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users



More information about the squid-users mailing list