Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Duplicate
-
3.4.1
-
None
-
Ubuntu Linux 22.04 + RHEL 9
Description
Build #1: with SSL support
- configured the mariadb connector C without SSL support using the option -DWITH_SSL=ON => success
- built with make => success
This setup builds and installs on Ubuntu using OpenSSL 3.0.2 :
{{...
– SSL support: OPENSSL Libs: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so
...}}
Build #2: no SSL support
- configured the mariadb connector C without SSL support using the option -DWITH_SSL=OFF => success
- built with make => failure (log attached)
Despite no SSL feature is requested, it seems some parts of the source code still rely on some SSL/TLS-based authentication features and API. Naive attempts to fix the problem failed:
# force the declaration of MA_HASH_CTX struct in ma_crypt.h
- remove -Werror in the CMake file...
Finally it seems not possible to build the lib without SSL.
I have also noticed that the WITH_SSL CMake variable can be used both as a boolean and a string value (ON/OFF/GNUTLS...) which is confusing IMHO.