[MXS-808] CMake mysql_version check using mysql_version.h flakey Created: 2016-07-20  Updated: 2016-10-17  Resolved: 2016-10-17

Status: Closed
Project: MariaDB MaxScale
Component/s: Packaging
Affects Version/s: 1.4.3
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Daniel Black Assignee: markus makela
Resolution: Won't Fix Votes: 0
Labels: None
Environment:

ubuntu-16.04 amd64/ ppc64le


Issue Links:
Relates
relates to MDEV-5725 libmysqld* is not packaged in debs Closed

 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.



 Comments   
Comment by markus makela [ 2016-10-17 ]

It seems the MariaDB.org binary tarball is the only one with the required files to build MaxScale. This is documented here.

Generated at Thu Feb 08 04:02:05 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.