Hi,

Building 

  MariaDB-11.7.0-GCC-13.3.0.eb

is failing a AlmaLinux 8.10 with

  undefined reference to `SSL_get1_peer_certificate'

This seem to be due to the wrong version of 

  ssl.h

being read.

In the build log it says

  ... -I/trinity/shared/easybuild/software/OpenSSL/3/include ... 
-DOPENSSL_API_COMPAT=0x10100000L

The version of 'ssl.h' from the EasyBuild package contains the missing
definition: 

  $ grep get1_peer_cert 
/trinity/shared/easybuild/software/OpenSSL/3/include/openssl/ssl*.h
  /trinity/shared/easybuild/software/OpenSSL/3/include/openssl/ssl.h:__owur 
X509 *SSL_get1_peer_certificate(const SSL *s);
  /trinity/shared/easybuild/software/OpenSSL/3/include/openssl/ssl.h:#   define 
SSL_get_peer_certificate SSL_get1_peer_certificate

but the OPENSSL_API_COMPAT macro seems to select the wrong version.

How can I force OpenSSL 3 to be used here?

Cheers,

Loris

-- 
Dr. Loris Bennett (Herr/Mr)
FUB-IT, Freie Universität Berlin

Reply via email to