Re: Cant compile squid 3.2.3 with ssl-crtd (FEDORA 17 x64)

2012-11-27 Thread Henrik Nordström
tis 2012-11-27 klockan 04:44 +0200 skrev Eliezer Croitoru:
 I tried to build squid 3.2.3 on fedora 17 x64 and got an error.
 compiling options
 -g -O2 -c -o certificate_db.o certificate_db.cc
 certificate_db.cc: In member function גvoid Ssl::CertificateDb::load()ג:
 certificate_db.cc:460:76: error: גindex_serial_hash_LHASH_HASHג was not 
 declared in this scope
 certificate_db.cc:460:106: error: גindex_serial_cmp_LHASH_COMPג was not 
 [...]$
 
 
 So it's something with the crtd code but I am unable to understand the 
 meaning of it.

Fedora 15-17 have borked openssl headers lying about the OpenSSL
version, caused by a slightly misguided patch in OpenSSL which they
haven't been able to get rid of due to ABI breakage.

This causes problems for our crtd which tries do adapt to the detected
OpenSSL version but can't on Fedora.

Supposedly fixed in Fedora 18 but have not verified yet.

Regards
Henrik




Re: Cant compile squid 3.2.3 with ssl-crtd (FEDORA 17 x64)

2012-11-27 Thread Eliezer Croitoru

On 11/27/2012 06:44 AM, Eliezer Croitoru wrote:
 On 11/27/2012 8:25 AM, Alex Rousskov wrote:
 On 11/26/2012 07:44 PM, Eliezer Croitoru wrote:
 I tried to build squid 3.2.3 on fedora 17 x64 and got an error.
 SNIP

 So it's something with the crtd code but I am unable to understand the
 meaning of it.

 Without the ssl-crtd there is not a problem in compilation.
 Is it a dependency ? or a code problem?

 Maybe related to bug 3232:
 http://bugs.squid-cache.org/show_bug.cgi?id=3232

 What is your OpenSSL version?


 Alex.

 Thanks Alex,

 Yes indeed that is the problem with fedora.
 What solved the problem was updating openssl and the dependencies.
 I upgraded using the RPM's from fedora 19 which will be installed fine
 manually and not from 17 repository.
 The packages I needed to install openSSL 1.0.1c are:
 glibc-2.16.90-28.fc19.x86_64.rpm
 glibc-headers-2.16.90-28.fc19.x86_64.rpm
 openssl-libs-1.0.1c-8.fc19.x86_64.rpm
 glibc-common-2.16.90-28.fc19.x86_64.rpm
 openssl-1.0.1c-8.fc19.x86_64.rpm
 glibc-devel-2.16.90-28.fc19.x86_64.rpm
 openssl-devel-1.0.1c-8.fc19.x86_64.rpm


 Hope it will help someone

Not unless you respond to the mailing list

Alex.

To the mailing list it is :D (somehow slipped under my finger)




Cant compile squid 3.2.3 with ssl-crtd (FEDORA 17 x64)

2012-11-26 Thread Eliezer Croitoru

I tried to build squid 3.2.3 on fedora 17 x64 and got an error.
compiling options
./configure --disable-strict-error-checking \
   --exec_prefix=/usr \
   --libexecdir=/usr/lib/squid \
   --localstatedir=/var \
   --datadir=/usr/share/squid \
   --sysconfdir=/etc/squid \
   --with-logdir='/var/log/squid' \
   --with-pidfile='/var/run/squid.pid' \
   --disable-dependency-tracking \
   --enable-eui \
   --enable-follow-x-forwarded-for \
   --enable-auth \
   --enable-auth-basic=none \
   --enable-auth-ntlm=none \
   --enable-auth-digest=none \
   --enable-auth-negotiate=none \
   --enable-external-acl-helpers=none \
   --enable-cache-digests \
   --enable-cachemgr-hostname=localhost \
   --enable-delay-pools \
   --enable-epoll \
   --enable-icap-client \
   --enable-ident-lookups \
   --with-large-files \
   --enable-linux-netfilter \
   --enable-removal-policies=heap,lru \
   --enable-snmp \
   --enable-ssl \
   --enable-ssl-crtd \
   --enable-storeio=aufs,diskd,ufs \
   --enable-wccpv2 \
   --enable-esi \
   --with-aio \
   --with-default-user=squid \
   --with-filedescriptors=16384 \
   --with-dl \
   --with-openssl \
   --with-pthreads

the error output from make is:
libtool: compile:  g++ -DHAVE_CONFIG_H -I../.. -I../../include 
-I../../lib -I../../src -I../../include -I/usr/include/libxml2 
-I/usr/include/libxml2 -Wall -Wpointer-arith -Wwrite-strings -Wcomments 
-pipe -D_REENTRANT -m64 -g -O2 -c crtd_message.cc  -fPIC -DPIC -o 
.libs/crtd_message.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I../.. -I../../include 
-I../../lib -I../../src -I../../include -I/usr/include/libxml2 
-I/usr/include/libxml2 -Wall -Wpointer-arith -Wwrite-strings -Wcomments 
-pipe -D_REENTRANT -m64 -g -O2 -c crtd_message.cc -o crtd_message.o 
/dev/null 21
/bin/sh ../../libtool --tag=CXX   --mode=link g++ -I/usr/include/libxml2 
-Wall -Wpointer-arith -Wwrite-strings -Wcomments -pipe -D_REENTRANT -m64 
-g -O2  -m64 -g -o libsslutil.la  gadgets.lo crtd_message.lo
libtool: link: /usr/bin/ar cru .libs/libsslutil.a .libs/gadgets.o 
.libs/crtd_message.o

libtool: link: ranlib .libs/libsslutil.a
libtool: link: ( cd .libs  rm -f libsslutil.la  ln -s 
../libsslutil.la libsslutil.la )
g++ -DHAVE_CONFIG_H  -I../.. -I../../include -I../../lib -I../../src 
-I../../include -I/usr/include/libxml2-I/usr/include/libxml2 
-Wall -Wpointer-arith -Wwrite-strings -Wcomments -pipe -D_REENTRANT -m64 
-g -O2 -c -o ssl_crtd.o ssl_crtd.cc
g++ -DHAVE_CONFIG_H  -I../.. -I../../include -I../../lib -I../../src 
-I../../include -I/usr/include/libxml2-I/usr/include/libxml2 
-Wall -Wpointer-arith -Wwrite-strings -Wcomments -pipe -D_REENTRANT -m64 
-g -O2 -c -o certificate_db.o certificate_db.cc

certificate_db.cc: In member function גvoid Ssl::CertificateDb::load()ג:
certificate_db.cc:460:76: error: גindex_serial_hash_LHASH_HASHג was not 
declared in this scope
certificate_db.cc:460:106: error: גindex_serial_cmp_LHASH_COMPג was not 
declared in this scope
certificate_db.cc:463:74: error: גindex_name_hash_LHASH_HASHג was not 
declared in this scope
certificate_db.cc:463:102: error: גindex_name_cmp_LHASH_COMPג was not 
declared in this scope
certificate_db.cc: In member function גvoid 
Ssl::CertificateDb::deleteRow(const char**, int)ג:
certificate_db.cc:495:39: error: cannot convert 
גstack_st_OPENSSL_PSTRING*ג to ג_STACK* {aka stack_st*}ג for argument 
ג1ג to גvoid* sk_delete(_STACK*, int)ג

certificate_db.cc:504:13: error: גLHASHג was not declared in this scope
certificate_db.cc:504:20: error: גfieldIndexג was not declared in this scope
certificate_db.cc: In member function גbool 
Ssl::CertificateDb::deleteInvalidCertificate()ג:
certificate_db.cc:525:46: error: cannot convert 
גstack_st_OPENSSL_PSTRING*ג to גconst _STACK* {aka const stack_st*}ג for 
argument ג1ג to גint sk_num(const _STACK*)ג
certificate_db.cc:526:79: error: cannot convert 
גstack_st_OPENSSL_PSTRING*ג to גconst _STACK* {aka const stack_st*}ג for 
argument ג1ג to גvoid* sk_value(const _STACK*, int)ג
certificate_db.cc: In member function גbool 
Ssl::CertificateDb::deleteOldestCertificate()ג:
certificate_db.cc:549:30: error: cannot convert 
גstack_st_OPENSSL_PSTRING*ג to גconst _STACK* {aka const stack_st*}ג for 
argument ג1ג to גint sk_num(const _STACK*)ג
certificate_db.cc:556:65: error: cannot convert 
גstack_st_OPENSSL_PSTRING*ג to גconst _STACK* {aka const stack_st*}ג for 
argument ג1ג to גvoid* sk_value(const _STACK*, int)ג
certificate_db.cc: In member function גbool 
Ssl::CertificateDb::deleteByHostname(const string)ג:
certificate_db.cc:573:46: error: cannot convert 
גstack_st_OPENSSL_PSTRING*ג to גconst _STACK* {aka const stack_st*}ג for 
argument ג1ג to גint sk_num(const _STACK*)ג
certificate_db.cc:574:79: error: cannot convert 
גstack_st_OPENSSL_PSTRING*ג to גconst _STACK* {aka const stack_st*}ג for 
argument ג1ג to גvoid* sk_value(const _STACK*, int)ג

make[3]: *** [certificate_db.o] Error 1
make[3]: Leaving directory 
`/home/makerpm/rpmbuild/tests/squid-3.2.3/src/ssl'


Re: Cant compile squid 3.2.3 with ssl-crtd (FEDORA 17 x64)

2012-11-26 Thread Alex Rousskov
On 11/26/2012 07:44 PM, Eliezer Croitoru wrote:
 I tried to build squid 3.2.3 on fedora 17 x64 and got an error.
 compiling options
 ./configure --disable-strict-error-checking \
--exec_prefix=/usr \
--libexecdir=/usr/lib/squid \
--localstatedir=/var \
--datadir=/usr/share/squid \
--sysconfdir=/etc/squid \
--with-logdir='/var/log/squid' \
--with-pidfile='/var/run/squid.pid' \
--disable-dependency-tracking \
--enable-eui \
--enable-follow-x-forwarded-for \
--enable-auth \
--enable-auth-basic=none \
--enable-auth-ntlm=none \
--enable-auth-digest=none \
--enable-auth-negotiate=none \
--enable-external-acl-helpers=none \
--enable-cache-digests \
--enable-cachemgr-hostname=localhost \
--enable-delay-pools \
--enable-epoll \
--enable-icap-client \
--enable-ident-lookups \
--with-large-files \
--enable-linux-netfilter \
--enable-removal-policies=heap,lru \
--enable-snmp \
--enable-ssl \
--enable-ssl-crtd \
--enable-storeio=aufs,diskd,ufs \
--enable-wccpv2 \
--enable-esi \
--with-aio \
--with-default-user=squid \
--with-filedescriptors=16384 \
--with-dl \
--with-openssl \
--with-pthreads
 
 the error output from make is:
 libtool: compile:  g++ -DHAVE_CONFIG_H -I../.. -I../../include
 -I../../lib -I../../src -I../../include -I/usr/include/libxml2
 -I/usr/include/libxml2 -Wall -Wpointer-arith -Wwrite-strings -Wcomments
 -pipe -D_REENTRANT -m64 -g -O2 -c crtd_message.cc  -fPIC -DPIC -o
 .libs/crtd_message.o
 libtool: compile:  g++ -DHAVE_CONFIG_H -I../.. -I../../include
 -I../../lib -I../../src -I../../include -I/usr/include/libxml2
 -I/usr/include/libxml2 -Wall -Wpointer-arith -Wwrite-strings -Wcomments
 -pipe -D_REENTRANT -m64 -g -O2 -c crtd_message.cc -o crtd_message.o
/dev/null 21
 /bin/sh ../../libtool --tag=CXX   --mode=link g++ -I/usr/include/libxml2
 -Wall -Wpointer-arith -Wwrite-strings -Wcomments -pipe -D_REENTRANT -m64
 -g -O2  -m64 -g -o libsslutil.la  gadgets.lo crtd_message.lo
 libtool: link: /usr/bin/ar cru .libs/libsslutil.a .libs/gadgets.o
 .libs/crtd_message.o
 libtool: link: ranlib .libs/libsslutil.a
 libtool: link: ( cd .libs  rm -f libsslutil.la  ln -s
 ../libsslutil.la libsslutil.la )
 g++ -DHAVE_CONFIG_H  -I../.. -I../../include -I../../lib -I../../src
 -I../../include -I/usr/include/libxml2-I/usr/include/libxml2
 -Wall -Wpointer-arith -Wwrite-strings -Wcomments -pipe -D_REENTRANT -m64
 -g -O2 -c -o ssl_crtd.o ssl_crtd.cc
 g++ -DHAVE_CONFIG_H  -I../.. -I../../include -I../../lib -I../../src
 -I../../include -I/usr/include/libxml2-I/usr/include/libxml2
 -Wall -Wpointer-arith -Wwrite-strings -Wcomments -pipe -D_REENTRANT -m64
 -g -O2 -c -o certificate_db.o certificate_db.cc
 certificate_db.cc: In member function גvoid Ssl::CertificateDb::load()ג:
 certificate_db.cc:460:76: error: גindex_serial_hash_LHASH_HASHג was not
 declared in this scope
 certificate_db.cc:460:106: error: גindex_serial_cmp_LHASH_COMPג was not
 declared in this scope
 certificate_db.cc:463:74: error: גindex_name_hash_LHASH_HASHג was not
 declared in this scope
 certificate_db.cc:463:102: error: גindex_name_cmp_LHASH_COMPג was not
 declared in this scope
 certificate_db.cc: In member function גvoid
 Ssl::CertificateDb::deleteRow(const char**, int)ג:
 certificate_db.cc:495:39: error: cannot convert
 גstack_st_OPENSSL_PSTRING*ג to ג_STACK* {aka stack_st*}ג for argument
 ג1ג to גvoid* sk_delete(_STACK*, int)ג
 certificate_db.cc:504:13: error: גLHASHג was not declared in this scope
 certificate_db.cc:504:20: error: גfieldIndexג was not declared in this
 scope
 certificate_db.cc: In member function גbool
 Ssl::CertificateDb::deleteInvalidCertificate()ג:
 certificate_db.cc:525:46: error: cannot convert
 גstack_st_OPENSSL_PSTRING*ג to גconst _STACK* {aka const stack_st*}ג for
 argument ג1ג to גint sk_num(const _STACK*)ג
 certificate_db.cc:526:79: error: cannot convert
 גstack_st_OPENSSL_PSTRING*ג to גconst _STACK* {aka const stack_st*}ג for
 argument ג1ג to גvoid* sk_value(const _STACK*, int)ג
 certificate_db.cc: In member function גbool
 Ssl::CertificateDb::deleteOldestCertificate()ג:
 certificate_db.cc:549:30: error: cannot convert
 גstack_st_OPENSSL_PSTRING*ג to גconst _STACK* {aka const stack_st*}ג for
 argument ג1ג to גint sk_num(const _STACK*)ג
 certificate_db.cc:556:65: error: cannot convert
 גstack_st_OPENSSL_PSTRING*ג to גconst _STACK* {aka const stack_st*}ג for
 argument ג1ג to גvoid* sk_value(const _STACK*, int)ג
 certificate_db.cc: In member function גbool
 Ssl::CertificateDb::deleteByHostname(const string)ג:
 certificate_db.cc:573:46: error: cannot convert
 גstack_st_OPENSSL_PSTRING*ג to גconst _STACK* {aka const stack_st*}ג for
 argument ג1ג to גint sk_num(const _STACK*)ג
 certificate_db.cc:574:79: error: cannot convert
 גstack_st_OPENSSL_PSTRING*ג to גconst _STACK* {aka const stack_st*}ג for
 argument ג1ג to גvoid* sk_value(const _STACK*, int)ג
 make[3]: