Created attachment 1297702 [details] Proposed patch Description of problem: With new version of MariaDB 10.2 we see basically this build issue: my_con.c: In function 'db_mysql_connect': my_con.c:68:10: error: 'MYSQL {aka struct st_mysql}' has no member named 'reconnect' ptr->con->reconnect = 0; ^~ make[1]: *** [../../Makefile.rules:25: my_con.o] Error 1
Can you submit the patch upstream? https://github.com/OpenSIPS/opensips/pulls I'm trying to help out with the rebuilds, and I have provenpackager privileges so I can commit fixes, but I usually prefer patches that have been submitted upstream (so we can provide a nice reference to an upstream pull request in the spec, and it's easy to see when the patch can be removed).
Also, um, doesn't your patch do exactly the wrong thing? Per https://dev.mysql.com/doc/refman/5.7/en/auto-reconnect.html , you set MYSQL_OPT_RECONNECT to *0* in order to disable auto-reconnect (which is what the code wants to do, per the comment), not *1* (which is what your patch does).
Also https://mariadb.com/kb/en/mariadb/mysql_optionsv/ says "my_bool reconnect= 1; /* enable reconnect */"
opensips-2.2.3-3.fc27 is affected.
Created attachment 1301736 [details] Patch to allow compilation of opensips with MariaDB 10.2
Patch updated and submitted upstream: https://github.com/OpenSIPS/opensips/pull/1164
I've applied the patch and started a build: https://koji.fedoraproject.org/koji/taskinfo?taskID=20631719
Build done: https://koji.fedoraproject.org/koji/buildinfo?buildID=920762