Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-734

cmake option WITH_SSL=OFF implies failure at compile time

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • 3.4.1
    • N/A
    • TLS/SSL
    • None
    • Ubuntu Linux 22.04 + RHEL 9

    Description

      Build #1: with SSL support

      1. configured the mariadb connector C without SSL support using the option -DWITH_SSL=ON => success
      2. 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

      1. configured the mariadb connector C without SSL support using the option -DWITH_SSL=OFF => success
      2. 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

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

      Attachments

        Activity

          People

            georg Georg Richter
            fmauger François Mauger
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.