Linker error building SW with OpenSSL 1.1.1W on RHEL8

Jan Just Keijser jan.just.keijser at gmail.com
Sat Dec 30 14:51:50 UTC 2023


Hi,

On 29/12/2023 22:56, Fox, Shawn D (US) via openssl-users wrote:
>
> I have built openssl v1.1.1w from source on the RHEL8 OS using the 
> GCC12 toolset.  The command to configure looks like this and then 
> gmake install used to build and install.
>
> ./config --prefix=/data/${USER}/repos/tp/openssl-1.1.1w-install/release
>
> /data/${USER}/repos/tp/openssl-1.1.1w is the directory containing the 
> extracted source and configuration files.
>
> So that worked fine and binaries were produced. However, when I try to 
> build my own applications specifying 
> /data/${USER}/repos/tp/openssl-1.1.1w-install/release/lib as the 
> location of the libraries then I am seeing linker errors such as:
>
> /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/x86_64-redhat-linux/12/ld: 
> /lib64/libk5crypto.so.3: undefined reference to 
> `EVP_KDF_CTX_free at OPENSSL_1_1_1b'
>

the library /lib64/libk5crypto.so.3 is part of `krb5-libs` ; most likely 
you ended up with a Kerberos-enabled build which links to the system 
krb5 libs which in turn link to the system (openssl 1.1.1b) libraries).
Try rebuilding openssl 1.1.1w without support for Kerberos - or , if you 
really need that, rebuild krb5-libs as well and link against your 
version of OpenSSL 1.1.1w.

HTH,

JJK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20231230/a2e8e26a/attachment.htm>


More information about the openssl-users mailing list