Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-12938

Discrepancy between mysql_config and mariadb_config

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.2.6
    • 10.2.7
    • Scripts & Clients
    • None
    • macOS 10.12.5, Homebrew

    Description

      Hello!

      There is a discrepancy between the link options provided by mysql_config and mariadb_config. Please see the relevant outputs (options --libs and --libs_r) below.

      I would expect for mysql_config to also output the missing link libraries. Otherwise it is breaking out-of-the-box compatibility to MySQL as one is required to add the missing link dependencies by hand.

      $ mariadb_config 
      Copyright 2011-2015 MariaDB Corporation AB
      Get compiler flags for using the MariaDB Connector/C.
      Usage: mariadb_config [OPTIONS]
        --cflags        [-I/usr/local/Cellar/mariadb/10.2.6/include/mysql -I/usr/local/Cellar/mariadb/10.2.6/include/mysql/mysql]
        --include       [-I/usr/local/Cellar/mariadb/10.2.6/include/mysql -I/usr/local/Cellar/mariadb/10.2.6/include/mysql/mysql]
        --libs          [-L/usr/local/Cellar/mariadb/10.2.6/lib/ -lmariadb -lpthread -ldl -lm -l/usr/lib/libiconv.dylib -l/usr/local/opt/openssl/lib/libssl.dylib -l/usr/local/opt/openssl/lib/libcrypto.dylib /usr/lib/libiconv.dylib]
        --libs_r        [-L/usr/local/Cellar/mariadb/10.2.6/lib/ -lmariadb -lpthread -ldl -lm -l/usr/lib/libiconv.dylib -l/usr/local/opt/openssl/lib/libssl.dylib -l/usr/local/opt/openssl/lib/libcrypto.dylib /usr/lib/libiconv.dylib]
        --libs_sys      [-lpthread -ldl -lm -l/usr/lib/libiconv.dylib -l/usr/local/opt/openssl/lib/libssl.dylib -l/usr/local/opt/openssl/lib/libcrypto.dylib /usr/lib/libiconv.dylib]
        --version       [10.2.5]
        --socket        [/tmp/mysql.sock]
        --port          [3306]
        --plugindir     [/usr/local/Cellar/mariadb/10.2.6/lib/plugin]
        --tlsinfo       [OpenSSL 1.0.2k]
      

      $ mysql_config
      Usage: /usr/local/bin/mysql_config [OPTIONS]
      Options:
              --cflags         [-I/usr/local/Cellar/mariadb/10.2.6/include/mysql -I/usr/local/Cellar/mariadb/10.2.6/include/mysql/.. ]
              --include        [-I/usr/local/Cellar/mariadb/10.2.6/include/mysql -I/usr/local/Cellar/mariadb/10.2.6/include/mysql/..]
              --libs           [-L/usr/local/Cellar/mariadb/10.2.6/lib  -lmariadb]
              --libs_r         [-L/usr/local/Cellar/mariadb/10.2.6/lib  -lmariadb]
              --plugindir      [/usr/local/Cellar/mariadb/10.2.6/lib/plugin]
              --socket         [/tmp/mysql.sock]
              --port           [0]
              --version        [10.2.6]
              --libmysqld-libs [-L/usr/local/Cellar/mariadb/10.2.6/lib  -lmysqld]
              --variable=VAR   VAR is one of:
                      pkgincludedir [/usr/local/Cellar/mariadb/10.2.6/include/mysql]
                      pkglibdir     [/usr/local/Cellar/mariadb/10.2.6/lib]
                      plugindir     [/usr/local/Cellar/mariadb/10.2.6/lib/plugin]
      

      Thank you.

      Attachments

        Activity

          People

            serg Sergei Golubchik
            Dan Dan
            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.