On 27/09/21 16:41, Rui Santos wrote:
>
> On 24/09/21 20:33, Gert Doering wrote:
>> Hi,
>>
>> On Fri, Sep 24, 2021 at 03:55:22PM +0100, Rui Santos wrote:
>>
> Thank you very much for your reply!
>> ./configure --help
>>
>> ...
>> Some influential environment variables:
>> ...
>>   OPENSSL_CFLAGS
>>               C compiler flags for OpenSSL
>>   OPENSSL_LIBS
>>               linker flags for OpenSSL
>>
>>
>> so call this as
>>
>> ./configure OPENSSL_CFLAGS=-I/some/path/1.1.1/include \
>>             OPENSSL_LIBS="-l/some/path/1.1.1/lib -lssl -lcrypto"
>>
>> (one command)
>>
>> and you should be good to go.
> It was enough to get me past the non-detection of OpenSSL. Thank you for
> that :)
>
> However, I got locked on the next check:
> checking additionally if OpenSSL is available and version >= 1.0.2... ok
> checking for SSL_CTX_new... no
> configure: error: openssl check failed
>
> This was the command used: ./configure
> OPENSSL_CFLAGS=-I/usr/include/openssl11
> OPENSSL_LIBS="-l/usr/lib64/libcrypto.so.1.1.1g
> -l/usr/lib64/libssl.so.1.1.1g -lssl -lcrypto" --enable-iproute2
> --with-crypto-library=openssl --disable-pkcs11 --enable-selinux
> --enable-systemd --enable-x509-alt-username --enable-async-push
> IPROUTE=/sbin/ip

OpenVPN now compiles with the following change:
OPENSSL_LIBS="/usr/lib64/libcrypto.so.1.1.1g /usr/lib64/libssl.so.1.1.1g"

ldd seem to corroborate the correct linking

It seems ok now. Thank you very much for your pointing to the correct
path Gert!

Cheers,
Rui

>
> On the config.log, this appears:
> configure:16678: gcc -o conftest -g -O2 -std=c99
> -I/usr/include/openssl11   conftest.c  -l/usr/lib64/libcrypto.so.1.1.1g
> -l/usr/lib64/libssl.so.1.1.1g -lssl -lcrypto >&5
> /usr/bin/ld: cannot find -l/usr/lib64/libcrypto.so.1.1.1g
> /usr/bin/ld: cannot find -l/usr/lib64/libssl.so.1.1.1g
> /usr/bin/ld: cannot find -lssl
> /usr/bin/ld: cannot find -lcrypto
> collect2: error: ld returned 1 exit status
>
> Any hint on what might be happening here?
>
> Thank you again!
>
> Rui
>




_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to