Red Hat Bugzilla – Bug 1470175
mariadb library upgrade to 10.2 causes mydns FTBFS
Last modified: 2017-07-21 16:33:48 EDT
Created attachment 1297014 [details]
Patch to allow compilation of mydns with MariaDB 10.2
Trying to build mydns with the new version of MariaDB 10.2 causes an error:
In file included from named.h:26:0,
main.c: In function 'cmdline':
../../lib/mydnsutil.h:180:36: error: expected ')' before 'MYSQL_SERVER_VERSION'
# define SQL_VERSION_STR "MySQL " MYSQL_SERVER_VERSION
In this new version of MariaDB they introduced a new mariadb_version.h header and mysql.h includes this header instead of mysql_version.h.
But the mysql_version.h is still present.
I'm attaching 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/mydns/
Wasn't able to submit the patch upstream as registration for their bug tracker doesn't seem to be working (claims to be sending you a confirmation mail, never actually did).
thank you, I will be happy to accept your patch.
Now managed to submit an issue upstream with a link to this bug and patch: http://bugs.mydns-ng.com/view.php?id=78