[squid-users] Squid 3.5.20 fails to compile with openssl

James Lay jlay at slave-tothe-box.net
Mon Sep 19 22:01:26 UTC 2016


So I know I posted this a while ago...thought I'd give it a shot today, 
but still no luck:

make[3]: Entering directory `/home/nobackup/build/squid-3.5.20/src/anyp'
depbase=`echo PortCfg.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
         /bin/bash ../../libtool  --tag=CXX   --mode=compile g++ 
-DHAVE_CONFIG_H   -I../.. -I../../include -I../../lib -I../../src 
-I../../include    -I/opt/openssl/include  -Wall -Wpointer-arith 
-Wwrite-strings -Wcomments -Wshadow -Woverloaded-virtual -Werror -pipe 
-D_REENTRANT -m64   -g -O2 -march=native -std=c++11 -MT PortCfg.lo -MD 
-MP -MF $depbase.Tpo -c -o PortCfg.lo PortCfg.cc &&\
         mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  g++ -DHAVE_CONFIG_H -I../.. -I../../include 
-I../../lib -I../../src -I../../include -I/opt/openssl/include -Wall 
-Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Woverloaded-virtual 
-Werror -pipe -D_REENTRANT -m64 -g -O2 -march=native -std=c++11 -MT 
PortCfg.lo -MD -MP -MF .deps/PortCfg.Tpo -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:83:75: error: invalid type in declaration before 
‘;’ token
  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:89:91: error: invalid type in declaration before 
‘;’ token
  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;
                                                           ^
../../src/ssl/gadgets.h:116:71: error: invalid type in declaration 
before ‘;’ token
  typedef LockingPointer<SSL, SSL_free_cpp, CRYPTO_LOCK_SSL> SSL_Pointer;
                                                                        ^
make[3]: *** [PortCfg.lo] Error 1
make[3]: Leaving directory `/home/nobackup/build/squid-3.5.20/src/anyp'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/nobackup/build/squid-3.5.20/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/nobackup/build/squid-3.5.20/src'
make: *** [all-recursive] Error 1

Openssl git latest commit version commit 
e2562bbbe1e1c68ec5a3e02c1f151fd6149ee2ae.  thank you.

James


More information about the squid-users mailing list