Uploaded image for project: 'MariaDB Connector/ODBC'
  1. MariaDB Connector/ODBC
  2. ODBC-287

/home/ilan/minonda and cannot find mysql.h

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.1.7
    • 3.1.9
    • General
    • None
    • Ubuntu 16.04 LTS

    Description

      The build is not finding mysql.h, and (I think) claims to find it on a directory that is not on my machine.

      After unpacking the tarball to xxx, I create a build directory, and

      cd build && cmake .. \
      -DCMAKE_BUILD_TYPE=RelWithDebInfo \
      -DCONC_WITH_UNIT_TESTS=Off \
      -DCMAKE_INSTALL_PREFIX=/usr/local \
      -DWITH_SSL=OPENSSL
      Re-run cmake no build system arguments
      – Libraries installation dir: lib
      – Autentication Plugins installation dir: lib/mariadb/plugin
      ^^^ spelling error
      – Configuring to build with OpenSSL /usr/local/lib/libssl.so;/usr/local/lib/lib
      – There is no Connector/C sub-project folder, linking against libmariadb instal
      – Found odbc_config: /usr/local/bin/odbc_config
      – Found ODBC Driver Manager libraries: /home/ilan/minonda/envs/_build/lib
      ^^^ not found: no such directory
      – Checking if SQLColAttribute expects SQLPOINTER FALSE
      – Linking Connector/C library statically(mariadbclient)
      – Version script: /home/jklowden/projects/Symas/sql/maria-db/mariadb-connector-
      – Documetnation installed to ./share/doc/mariadb-connector-odbc/
      ^^^^ spelling error
      [...]

      The eventual compilation error is:

      {{In file included from [...]/maria-db/mariadb-connector-odbc-3.1.7-ga-src/odbc_3_api.c:21:0:
      [...]/maria-db/mariadb-connector-odbc-3.1.7-ga-src/ma_odbc.h:32:19: fatal error: mysql.h: No such file or directory
      }}

      Notes:

      • mariadb server is not installed on this machine; it's only a client.
      • The ODBC driver is the only mariadb component I am building from source.
      • I did install the ubuntu package` libmariadb-client-lgpl-dev`
      • I am building from source because Ubuntu does not include the ODBC driver in their repositories and, afaict, neither does mariadb for x86_64. (I found amd64.)
      • I tried adding `-DCMAKE_INCLUDE_PATH=/usr/include/mariadb` to the cmake command line, with no joy.
      • IMHO it would be kind of the ODBC driver folks to include mysql.h, if that's all they need, in case it's not found.

      The file I want to include is

      {{$ find /usr/include/ -name mysql.h
      /usr/include/mariadb/mysql.h}}

      Attachments

        Activity

          People

            Lawrin Lawrin Novitsky
            jklowden James Lowden
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.