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 2>&1
> /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'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/makerpm/rpmbuild/tests/squid-3.2.3/src'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/makerpm/rpmbuild/tests/squid-3.2.3/src'
> make: *** [all-recursive] Error 1
> $
>
>
> 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.
Received on Tue Nov 27 2012 - 06:25:29 MST
This archive was generated by hypermail 2.2.0 : Tue Nov 27 2012 - 12:00:08 MST