SSL_CTX_new not found when trying to compile openVPN 2.5.3
Posted: Thu Sep 16, 2021 1:43 pm
I was using openVPN 2.3.18 with openSSL 1.0.2, and decided to update openSSL to a newer version, specifically, 1.1.1k. When I tried to compile openVPN, I had some issues and ended up reading that I would need to update openVPN to a newer version as well. I am trying to use openVPN 2.4.11, however I am having the following compilation problem:
I'm using a script to compile openVPN, as seen below:
Sorry if this isn't the right place for this post!
Any thoughts?
Code: Select all
...
checking for pam_start in -lpam... no
checking for PKCS11_HELPER... no
checking for OPENSSL... yes
checking for SSL_CTX_new... no
configure: error: openssl check failed
Code: Select all
# openvpn compilation
if ! [ -a "./openvpn-'$PKGVER'" ]; then
( tar -zxf openvpn-'$PKGVER'.tar.gz ) || error "uncompressing openvpn"
cd openvpn-'$PKGVER'
(./configure --host='$CROSS' --disable-server --disable-plugins --disable-management --enable-small OPENSSL_SSL_LIBS="-L'$BUILDDIR'/packages/openssl/openssl-build/ -lssl" OPENSSL_SSL_CFLAGS=-I'$BUILDDIR'/packages/openssl/openssl-build/include OPENSSL_CRYPTO_CFLAGS=-I'$BUILDDIR'/packages/openssl/openssl-build/include OPENSSL_CRYPTO_LIBS="-L'$BUILDDIR'/packages/openssl/openssl-build/ -lcrypto" LZO_LIBS="-L'$BUILDDIR'/packages/lzo/lzo-build/src/.libs/ -llzo2" LZO_CFLAGS=-I'$BUILDDIR'/packages/lzo/lzo-build/include ) || error "config openvpn"
( make --no-print-directory CC='$CROSS_COMPILE'gcc CROSS_COMPILE='$CROSS_COMPILE' ) || error "make openvpn"
else
echo " * Package already built..."
cd openvpn-'$PKGVER'
fi
Any thoughts?