3.5.27: Compilation failed CRYPTO_LOCK_X509 on Debian 9

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

3.5.27: Compilation failed CRYPTO_LOCK_X509 on Debian 9

David Touzeau-3

Hi all

 

Did anyone have encountered and fixed this issue :

 

Make failed with the following error :

 

/bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H   -I../.. -I../../include -I../../lib -I../../src -I../../include  -isystem /usr/include/mit-krb5  -I/usr/include/libxml2  -I/usr/include/libxml2 -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Woverloaded-virtual -Werror -pipe -D_REENTRANT -m64  -I/usr/include/p11-kit-1 -g -O2 -c -o PortCfg.lo PortCfg.cc

libtool: compile:  g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib -I../../src -I../../include -isystem /usr/include/mit-krb5 -I/usr/include/libxml2 -I/usr/include/libxml2 -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Woverloaded-virtual -Werror -pipe -D_REENTRANT -m64 -I/usr/include/p11-kit-1 -g -O2 -c PortCfg.cc  -fPIC -DPIC -o .libs/PortCfg.o

In file included from ../../src/anyp/PortCfg.h:18:0,

                 from PortCfg.cc:10:

../../src/ssl/gadgets.h:83:45: error: ‘CRYPTO_LOCK_X509’ was not declared in this scope

typedef LockingPointer<X509, X509_free_cpp, CRYPTO_LOCK_X509> X509_Pointer;

                                             ^~~~~~~~~~~~~~~~

../../src/ssl/gadgets.h:83:61: error: template argument 3 is invalid

typedef LockingPointer<X509, X509_free_cpp, CRYPTO_LOCK_X509> X509_Pointer;

                                                             ^

../../src/ssl/gadgets.h:89:53: error: ‘CRYPTO_LOCK_EVP_PKEY’ was not declared in this scope

typedef LockingPointer<EVP_PKEY, EVP_PKEY_free_cpp, CRYPTO_LOCK_EVP_PKEY> EVP_PKEY_Pointer;

                                                     ^~~~~~~~~~~~~~~~~~~~

../../src/ssl/gadgets.h:89:73: error: template argument 3 is invalid

typedef LockingPointer<EVP_PKEY, EVP_PKEY_free_cpp, CRYPTO_LOCK_EVP_PKEY> EVP_PKEY_Pointer;

                                                                         ^

../../src/ssl/gadgets.h:116:43: error: ‘CRYPTO_LOCK_SSL’ was not declared in this scope

typedef LockingPointer<SSL, SSL_free_cpp, CRYPTO_LOCK_SSL> SSL_Pointer;

                                           ^~~~~~~~~~~~~~~

../../src/ssl/gadgets.h:116:58: error: template argument 3 is invalid

typedef LockingPointer<SSL, SSL_free_cpp, CRYPTO_LOCK_SSL> SSL_Pointer;

 

 

Configure options :

./configure --prefix=/usr --build=x86_64-linux-gnu --includedir=${prefix}/include --mandir=${prefix}/share/man --infodir=${prefix}/share/info --localstatedir=/var --libexecdir=${prefix}/lib/squid3 --disable-maintainer-mode --disable-dependency-tracking --srcdir=. --datadir=/usr/share/squid3 --sysconfdir=/etc/squid3 --enable-gnuregex --enable-removal-policy=heap --enable-follow-x-forwarded-for --disable-cache-digests --enable-http-violations --enable-removal-policies=lru,heap --enable-arp-acl --enable-truncate --with-large-files --with-pthreads --enable-esi --enable-storeio=aufs,diskd,ufs,rock --enable-x-accelerator-vary --with-dl --enable-linux-netfilter --with-netfilter-conntrack --enable-wccpv2 --enable-eui --enable-auth --enable-auth-basic --enable-snmp --enable-icmp --enable-auth-digest --enable-log-daemon-helpers --enable-url-rewrite-helpers --enable-auth-ntlm --with-default-user=squid --enable-icap-client --disable-cache-digests --enable-poll --enable-epoll --enable-async-io=128 --enable-zph-qos --enable-delay-pools --enable-http-violations --enable-url-maps --enable-ecap --enable-ssl --with-openssl --enable-ssl-crtd --enable-xmalloc-statistics --enable-ident-lookups --with-filedescriptors=65536 --with-aufs-threads=128 --disable-arch-native

                                                          ^


_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: 3.5.27: Compilation failed CRYPTO_LOCK_X509 on Debian 9

Amos Jeffries
Administrator
Squid-3 on Debian 9+ requires the libssl1.0-dev package instead of the
normal libssl-dev package.

FYI: It is much better to be using the Squid-4 package currently in
Debian experimental (due to policy reasons only) if you are building for
SSL-Bump behaviours. That package also supports TLS to cache_peer or
origin servers natively with GnuTLS.

Amos
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: 3.5.27: Compilation failed CRYPTO_LOCK_X509 on Debian 9

David Touzeau-3


-----Message d'origine-----
De : squid-users [mailto:[hidden email]] De la
part de Amos Jeffries
Envoyé : mercredi 24 janvier 2018 01:21
À : [hidden email]
Objet : Re: [squid-users] 3.5.27: Compilation failed CRYPTO_LOCK_X509 on
Debian 9

Squid-3 on Debian 9+ requires the libssl1.0-dev package instead of the
normal libssl-dev package.

FYI: It is much better to be using the Squid-4 package currently in Debian
experimental (due to policy reasons only) if you are building for SSL-Bump
behaviours. That package also supports TLS to cache_peer or origin servers
natively with GnuTLS.

Amos



Thanks Amos

That's why i have be done before but squid4 is seems unstable when using
transparent method.

We are facing on an issue on ports freeze  see topic " v4.0.22
error:transaction-end-before-headers using transparent SSL method"



_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users