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

mariadb_config & mysql_config output differ

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • 10.2.8
    • 10.2.10
    • Server
    • None
    • Fedora - all
    • 10.2.10

    Description

      Hello,
      I'd like to get some sense out of mariadb_config & mysql_config.

      My goal is to build mariadb-server without C-library part and build CONC/C, which has all the same files.

      Because, mariadb_config is in both - server and CONC/C - I left it only in CONC/C package.
      Because most packages out there search specificaly for "mysql_config" I provide symlink "mysql_config --> mariadb_config", so other packages can be built.

      However, the "mysql_config" present in mariadb-server has different output than "mariadb_config".

      $ /usr/bin/mysql_config
      Usage: /usr/bin/mysql_config [OPTIONS]
      Options:
              --cflags         [-I/usr/include/mysql ]
              --include        [-I/usr/include/mysql]
              --libs           [-L/usr/lib64/mysql  -lmysqlclient -lpthread -lz -lm -ldl -lssl -lcrypto]
              --libs_r         [-L/usr/lib64/mysql  -lmysqlclient -lpthread -lz -lm -ldl -lssl -lcrypto]
              --plugindir      [/usr/lib64/mysql/plugin]
              --socket         [/var/lib/mysql/mysql.sock]
              --port           [0]
              --version        [10.1.26]
              --libmysqld-libs [-L/usr/lib64/mysql  -lmysqld -lpthread -lz -lm -ldl -lssl -lcrypto -lpcre -lcrypt -laio]
              --variable=VAR   VAR is one of:
                      pkgincludedir [/usr/include/mysql]
                      pkglibdir     [/usr/lib64/mysql]
                      plugindir     [/usr/lib64/mysql/plugin]
      

      $ /usr/bin/mysql_config 
      Copyright 2011-2015 MariaDB Corporation AB
      Get compiler flags for using the MariaDB Connector/C.
      Usage: /usr/bin/mysql_config [OPTIONS]
        --cflags        [-I/usr/include -I/usr/include/mysql]
        --include       [-I/usr/include -I/usr/include/mysql]
        --libs          [-L/usr/lib64/mariadb/ -lmariadb -lpthread -ldl -lm -lssl -lcrypto]
        --libs_r        [-L/usr/lib64/mariadb/ -lmariadb -lpthread -ldl -lm -lssl -lcrypto]
        --libs_sys      [-lpthread -ldl -lm -lssl -lcrypto]
        --version       [10.2.6]
        --socket        [/tmp/mysql.sock]
        --port          [3306]
        --plugindir     [/usr/lib64/mariadb/plugin]
        --tlsinfo       [OpenSSL 1.1.0f]
      

      —

      Now:

      • Even though I provide CONC/C at the build "-DMYSQL_UNIX_ADDR=/var/lib/mysql/mysql.sock", the socket points to "/tmp/mysql.sock".
      • On the other hand, the server does't get the Port number.
      • how do you point user to the server header files (newly moved to include/mysql/server) ?
      • how to point user to "--libmysqld-libs" from mariadb-config?

      I guess, you meant to use mariadb_config for client stuff and mysql_config for server stuff. But that doesn't work at all, because all project out there look directly for "mysql_config" and the patches are often non-trivial.
      I wonder, if some other distro encountered this issue.

      Attachments

        Activity

          People

            serg Sergei Golubchik
            mschorm Michal Schorm
            Votes:
            0 Vote for this issue
            Watchers:
            5 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.