[squid-users] Compile problem on Solaris - Squid 3.19-20120306-r10434 - Ssl::FileLocker and LOCK_EX

From: Marcin Jarzab <mj_at_agh.edu.pl>
Date: Wed, 14 Mar 2012 12:21:35 +0100

Hello,

Following problem occured. If it is required I can provide OVA VM
template with the runtime specified bellow:

Platform: SunOS solaris11 5.11 snv_151a i86pc i386 i86pc Solaris

configure params:
./configure \
--prefix=/usr \
--program-suffix=custom \
--includedir=${prefix}/include \
--mandir=${prefix}/share/man \
--infodir=${prefix}/share/info \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=${prefix}/lib/squid3-custom \
--srcdir=. \
--disable-maintainer-mode \
--disable-dependency-tracking \
--disable-silent-rules \
--datadir=/usr/share/squid3-custom \
--sysconfdir=/etc/squid3-custom \
--mandir=/usr/share/man \
--with-cppunit-basedir=/usr/local \
--enable-inline \
--enable-async-io=8 \
--enable-storeio=ufs,aufs,diskd \
--enable-removal-policies=lru,heap \
--enable-delay-pools \
--enable-cache-digests \
--enable-underscores \
--enable-icap-client \
--enable-follow-x-forwarded-for \
--enable-auth=basic,digest,ntlm,negotiate \
--enable-basic-auth-helpers=LDAP,MSNT,NCSA,PAM,SASL,SMB,YP,DB,POP3,getpwnam,squid_radius_auth,multi-domain-NTLM
\
--enable-ntlm-auth-helpers=smb_lm \
--enable-digest-auth-helpers=ldap,password \
--enable-negotiate-auth-helpers=squid_kerb_auth \
--enable-external-acl-helpers=ip_user,ldap_group,session,unix_group,wbinfo_group
\
--enable-arp-acl \
--enable-esi \
--enable-zph-qos \
--disable-translation \
--with-logdir=/var/log/squid3-custom \
--with-pidfile=/var/run/squid3-custom.pid \
--with-filedescriptors=65536 \
--with-large-files \
--with-default-user=proxy \
--enable-linux-netfilter \
--enable-ssl \
--enable-ssl-crtd \
--with-openssl=/usr/include/openssl
-----------------------------------------------------------------------
Make error:
libtool: link: ( cd ".libs" && rm -f "libsslutil.la" && ln -s
"../libsslutil.la" "libsslutil.la" )
g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../src -I../../include
-I/usr/local/include -I../../libltdl -I/usr/include/openssl/include
-I/usr/include/libxml2 -I/usr/include/libxml2 -Wall -Wpointer-arith
-Wwrite-strings -Wcomments -Werror -D_REENTRANT -pthreads -m64 -g -O2
-c -o ssl_crtd.o ssl_crtd.cc
g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../src -I../../include
-I/usr/local/include -I../../libltdl -I/usr/include/openssl/include
-I/usr/include/libxml2 -I/usr/include/libxml2 -Wall -Wpointer-arith
-Wwrite-strings -Wcomments -Werror -D_REENTRANT -pthreads -m64 -g -O2
-c -o certificate_db.o certificate_db.cc
certificate_db.cc: In constructor `Ssl::FileLocker::FileLocker(const
std::string&)':
certificate_db.cc:34: error: `LOCK_EX' undeclared (first use this function)
certificate_db.cc:34: error: (Each undeclared identifier is reported
only once for each function it appears in.)
certificate_db.cc: In destructor `Ssl::FileLocker::~FileLocker()':
certificate_db.cc:47: error: `LOCK_UN' undeclared (first use this function)
make[3]: *** [certificate_db.o] Error 1
make[3]: Leaving directory
`/var/installs/squid-3.1.19-20120306-r10434/src/ssl'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/installs/squid-3.1.19-20120306-r10434/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/installs/squid-3.1.19-20120306-r10434/src'
make: *** [all-recursive] Error 1
root_at_solaris11:/var/installs/squid-3.1.19-20120306-r10434
----------------------------------------------------------------------------------------------------------------------------------------

-- 
Ph.D. Eng. Marcin Jarzab
mj_at_agh.edu.pl
http://www.ics.agh.edu.pl/people/mj
Department of Computer Science
AGH University of Science and Technology
Al. Mickiewicza 30, 30-059  Krakow, POLAND
phone: +48 (12) 6173491 (36)
==========================================================================
Received on Wed Mar 14 2012 - 11:21:39 MDT

This archive was generated by hypermail 2.2.0 : Thu Mar 15 2012 - 12:00:02 MDT