Created attachment 1294296 [details] Patch to allow compilation of bacula with MariaDB 10.2 Trying to build bacula with the new version of MariaDB 10.2 causes a build error: mysql.c: In member function 'virtual bool BDB_MYSQL::bdb_open_database(JCR*)': mysql.c:256:20: error: 'MYSQL {aka struct st_mysql}' has no member named 'reconnect' mdb->m_instance.reconnect = 1; /* so connection does not timeout */ ^~~~~~~~~ In this new version of the library the reconnect field was moved to another struct. I think that the best approach is to set it through API. I attached a patch proposal to fix the problem. We are tracking all the possible problems regarding this MariaDB upgrade in the bug 1467297. Copr build: https://copr.fedorainfracloud.org/coprs/g/db-sig/mariadb-10.2/package/bacula/
Testing with freshly released Bacula 9.
The problem persist with the new Bacula 9... mysql.c: In member function 'virtual bool BDB_MYSQL::bdb_open_database(JCR*)': mysql.c:261:20: error: 'MYSQL {aka struct st_mysql}' has no member named 'reconnect' mdb->m_instance.reconnect = 1; /* so connection does not timeout */ ^~~~~~~~~ make[1]: *** [Makefile:183: mysql.lo] Error 1 My proposed patch can fix this problem.
Applied a rebased, patch, thanks. Also upstream has done it.