Project

General

Profile

Bug #778

Build kannel MariaDB

Added by Danilo Baio over 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
05/14/2018
Due date:
% Done:

0%

Estimated time:
Affected version:

Description

Kannel is now working with MariaDB 10.0, but fails with 10.1 and 10.2.

When using MariaDB 10.1>=, it's needed to include mariadb_version.h instead of mysql_version.h.
Then it will have access to:

#define MARIADB_CLIENT_VERSION_STR "10.2.14"

This patch includes only mysql.h and remove mysql_version.h (MYSQL_SERVER_VERSION).

Regards.

Configure log with MariaDB 10.2 (FreeBSD):

Configuring DB support ...
checking whether to compile with MySQL support... searching
checking for mysql_config... /usr/local/bin/mysql_config
checking mysql version... 10.2.14
-L/usr/local/lib/mysql/ -lmariadb -lz -lm -liconv -lssl -lcrypto -liconv -L/usr/local/lib
checking mysql reentrant libs... -L/usr/local/lib/mysql/ -lmariadb -lz -lm -liconv -lssl -lcrypto -liconv -L/usr/local/lib
checking for mysql_init in -lmysqlclient_r... yes
checking mysql includes... -I/usr/local/include/mysql -I/usr/local/include/mysql/mysql -I/usr/local/include
-I/usr/local/include/mysql -I/usr/local/include/mysql/mysql -I/usr/local/include
checking mysql/mysql.h usability... yes
checking mysql/mysql.h presence... yes
checking for mysql/mysql.h... yes
checking for mysql_stmt_init in -lmysqlclient_r... yes
checking whether to compile with MySQL support... yes
checking whether to compile with LibSDB support... disabled
checking whether to compile with SQLite2 support... disabled
checking whether to compile with SQLite3 support... disabled
checking whether to compile with Oracle support... disabled
checking whether to compile with PostgresSQL support... disabled
checking whether to compile with Redis support... disabled
checking whether to compile with FreeTDS Ct-Lib support... disabled

kannel-mariadb.patch (2.34 KB) kannel-mariadb.patch Danilo Baio, 05/14/2018 12:15 AM

Also available in: Atom PDF