### Description db_mysql.so fails to build using MariaDB 10.2 libs. Using kamailio 5.0.4 and MariaDB 10.2 on CentOS7 run `make all` and the build process crashes on `db_mysql.so` with the following errors:
``` [root@proxy:/usr/local/src/kamailio-5.0.4$]make all make -C src/ all make[1]: Entering directory `/usr/local/src/kamailio-5.0.4/src' CC (gcc) [M db_mysql.so] km_my_con.o In file included from km_my_con.c:31:0: /usr/include/mysql/mysql_version.h:3:2: warning: #warning This file should not be included by clients, include only <mysql.h> [-Wcpp] #warning This file should not be included by clients, include only <mysql.h> ^ km_my_con.c: In function ‘db_mysql_new_connection’: km_my_con.c:132:11: error: ‘MYSQL’ has no member named ‘reconnect’ ptr->con->reconnect = 1; ^ km_my_con.c:134:11: error: ‘MYSQL’ has no member named ‘reconnect’ ptr->con->reconnect = 0; ^ make[2]: *** [km_my_con.o] Error 1 make[1]: *** [modules] Error 1 make[1]: Leaving directory `/usr/local/src/kamailio-5.0.4/src' make: *** [all] Error 2 ```
Using offical mariadb 10.2 stable repo from mariadb.org: ``` MariaDB-client.x86_64 10.2.10-1.el7.centos @mariadb MariaDB-common.x86_64 10.2.10-1.el7.centos @mariadb MariaDB-compat.x86_64 10.2.10-1.el7.centos @mariadb MariaDB-devel.x86_64 10.2.10-1.el7.centos @mariadb MariaDB-server.x86_64 10.2.10-1.el7.centos @mariadb ```
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
``` version: kamailio 5.0.4 (x86_64/linux) flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB poll method support: poll, epoll_lt, epoll_et, sigio_rt, select. id: unknown compiled on 16:49:14 Nov 1 2017 with gcc 4.8.5 ```
* **Operating System**:
<!-- Details about the operating system, the type: Linux (e.g.,: Debian 8.4, Ubuntu 16.04, CentOS 7.1, ...), MacOS, xBSD, Solaris, ...; Kernel details (output of `uname -a`) -->
``` Linux proxy.vm 3.10.0-693.5.2.el7.x86_64 #1 SMP Fri Oct 20 20:32:50 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux ```
Thanks! Pushed a patch for it in master and 5.0 branches. Reopen if still a problem.
Closed #1296.