SSL_CTX_new not found when trying to compile openVPN 2.5.3

Weekly dev snapshots are available for testing.
We talk about them here. Testing features in the dev snapshot helps the features make it to stable.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please report your experience with testing branch. Include what you were using and how
If there is a problem, the more info the better!
Post Reply
jrrold
OpenVpn Newbie
Posts: 3
Joined: Thu Sep 16, 2021 1:39 pm

SSL_CTX_new not found when trying to compile openVPN 2.5.3

Post by jrrold » 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:

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?

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: SSL_CTX_new not found when trying to compile openVPN 2.5.3

Post by TinCanTech » Thu Sep 16, 2021 2:10 pm


jrrold
OpenVpn Newbie
Posts: 3
Joined: Thu Sep 16, 2021 1:39 pm

Re: SSL_CTX_new not found when trying to compile openVPN 2.5.3

Post by jrrold » Thu Sep 16, 2021 2:15 pm

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...

jrrold
OpenVpn Newbie
Posts: 3
Joined: Thu Sep 16, 2021 1:39 pm

Re: SSL_CTX_new not found when trying to compile openVPN 2.5.3

Post by jrrold » Thu Sep 16, 2021 3:34 pm

I was using obsolete flags!

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: SSL_CTX_new not found when trying to compile openVPN 2.5.3

Post by TinCanTech » Thu Sep 16, 2021 11:35 pm

Semaphore or Pirate ?

Post Reply