Page 1 of 1

SSL_CTX_new not found when trying to compile openVPN 2.5.3

Posted: Thu Sep 16, 2021 1:43 pm
by jrrold
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:

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
I'm using a script to compile openVPN, as seen below:

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

Sorry if this isn't the right place for this post!

Any thoughts?

Re: SSL_CTX_new not found when trying to compile openVPN 2.5.3

Posted: Thu Sep 16, 2021 2:10 pm
by TinCanTech

Re: SSL_CTX_new not found when trying to compile openVPN 2.5.3

Posted: Thu Sep 16, 2021 2:15 pm
by jrrold
TinCanTech wrote:
Thu Sep 16, 2021 2:10 pm
May be this can help:
https://community.openvpn.net/openvpn/w ... uildsystem
That didn't help much...

Re: SSL_CTX_new not found when trying to compile openVPN 2.5.3

Posted: Thu Sep 16, 2021 3:34 pm
by jrrold
I was using obsolete flags!

Re: SSL_CTX_new not found when trying to compile openVPN 2.5.3

Posted: Thu Sep 16, 2021 11:35 pm
by TinCanTech
Semaphore or Pirate ?