Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-808

CMake mysql_version check using mysql_version.h flakey

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.4.3
    • Fix Version/s: N/A
    • Component/s: Packaging
    • Labels:
      None
    • Environment:
      ubuntu-16.04 amd64/ ppc64le

      Description

      ~/build_maxscale$  cmake ../maxscale  -DBUILD_TESTS=Y -DWITH_SCRIPTS=N -DWITH_MAXSCALE_CNF=N
      -- CMake version: 3.5.1
      -- Looking for include file arpa/inet.h
      -- Looking for include file arpa/inet.h - found
      -- Looking for include file crypt.h
      -- Looking for include file crypt.h - found
      -- Looking for include file ctype.h
      ...
      ...
      -- Performing Test HAVE_RABBITMQ50
      -- Performing Test HAVE_RABBITMQ50 - Success
      -- Found RabbitMQ version 0.7.1: /usr/lib/powerpc64le-linux-gnu/librabbitmq.so
      -- Found RabbitMQ development headers at: /usr/include
      -- Found OpenSSL: /usr/lib/powerpc64le-linux-gnu/libssl.so;/usr/lib/powerpc64le-linux-gnu/libcrypto.so (found version "1.0.2g")
      -- Valgrind not found.
      -- Dynamic MySQL client library not found.
      -- Static MySQL client library not found.
      -- Looking for LIBMARIADB
      -- Looking for LIBMARIADB - found
      -- Found MariaDB Connector-C
      CMake Error at cmake/FindMySQL.cmake:12 (message):
        Cannot find the mysql_version.h header
      Call Stack (most recent call first):
        CMakeLists.txt:37 (find_package)
       
       
      -- Configuring incomplete, errors occurred!
      See also "/home/danielgb/build_maxscale/CMakeFiles/CMakeOutput.log".
      See also "/home/danielgb/build_maxscale/CMakeFiles/CMakeError.log".
      

      http://packages.ubuntu.com/xenial/amd64/libmariadbd-dev/filelist shows that mysql_version.h isn't installed by this package.

      http://packages.ubuntu.com/xenial/amd64/libmariadb-client-lgpl-dev/filelist does have a mariadb/mysql_version.h however a) this is the client version and b) this file defines MYSQL_SERVER_VERSION as "5.5.0" which doesn't meet the cmake test of not VERSION_LESS 5.5.41

      Switching to mariadb packages results in header files but no shared/static file
      MDEV-5725.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              markus makela markus makela
              Reporter:
              danblack Daniel Black
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: