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

Incorrect output for mariadb_config

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Gentoo Linux

      Description

      mariadb_config is providing bad output.

      Expected results:

      grknight@tetsusaiga ~ $ /var/tmp/portage/dev-db/mariadb-native-client-2.0.0/image/usr/bin/mariadb_config 
      Copyright 2011 Monty Program AB
      Get compiler flags for using the MariaDB client library.
      Usage: /var/tmp/portage/dev-db/mariadb-native-client-2.0.0/image/usr/bin/mariadb_config [OPTIONS]
        --cflags        [-I/usr/include/mariadb -O2 -pipe -march=native  -Wunused -Wno-uninitialized]
        --include       [-I/usr/include/mariadb]
        --libs          [-L/usr/lib/mariadb -lmariadb -lpthread -lssl -ldl -lm -lz]
        --libs_r        [-L/usr/lib/mariadb -lmariadb -lpthread -lssl -ldl -lm -lz]
        --version       [5.5.0]
        --socket        [/var/run/mysqld/mysqld.sock]
        --port          [3306]

      Actual Results:

      grknight@tetsusaiga ~ $ /var/tmp/portage/dev-db/mariadb-native-client-2.0.0/image/usr/bin/mariadb_config 
      Copyright 2011 Monty Program AB
      Get compiler flags for using the MariaDB client library.
      Usage: /var/tmp/portage/dev-db/mariadb-native-client-2.0.0/image/usr/bin/mariadb_config [OPTIONS]
        --cflags        [-I/usr/include/mariadb-O2 -pipe -march=native  -Wunused -Wno-uninitialized]
        --include       [-I/usr/include/mariadb]
        --libs          [-L/usr/lib/mariadb -lmariadb -lpthread -lssl -ldl -lm -l-lz]
        --libs_r        [-L/usr/lib/mariadb -lmariadb -lpthread -lssl -ldl -lm -l-lz]
        --version       [5.5.0]
        --socket        [/var/run/mysqld/mysqld.sock]
        --port          [3306]

      The attached patch will solve the issue

        Attachments

          Activity

            People

            Assignee:
            georg Georg Richter
            Reporter:
            grknight Brian Evans
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: