Created attachment 1297022 [details] Proposed patch Description of problem: With new version of MariaDB 10.2 we see basically this two separate issues: dbdimp.c: In function 'mysql_dr_connect': dbdimp.c:2000:13: error: 'MYSQL {aka struct st_mysql}' has no member named 'reconnect' result->reconnect=0; ^~ dbdimp.c: In function 'mysql_st_prepare': dbdimp.c:2779:19: error: 'MYSQL_VERSION_ID' undeclared (first use in this function); did you mean 'MYSQL_VERSION_5_0'? MYSQL_VERSION_ID, statement); ^~~~~~~~~~~~~~~~ MYSQL_VERSION_5_0 dbdimp.c:2779:19: note: each undeclared identifier is reported only once for each function it appears in The attached patch should fix the FTBFS issue.
There seems to be a rather complex debate going on about a PR to fix the MariaDB compatibility (while not losing MySQL compatibility) upstream: https://github.com/perl5-dbi/DBD-mysql/pull/133 Any thoughts on that? They seem to have identified some further issues, but you might have a better handle on the versioning bits than they do...