[exim-dev] [Bug 2165] Compile error against MariaDB 10.2.8+

Page principale
Supprimer ce message
Répondre à ce message
Auteur: admin
Date:  
À: exim-dev
Sujet: [exim-dev] [Bug 2165] Compile error against MariaDB 10.2.8+
https://bugs.exim.org/show_bug.cgi?id=2165

--- Comment #5 from Kris Karas <bugs-a17@???> ---
(In reply to Heiko Schlittermann from comment #2)
> On both systems the current master compiles with LOOKUP_MYSQL enabled.


Here's a compile on current master with mariadb-10.2.8:
    gcc dsearch.c
    gcc lsearch.c
    gcc mysql.c
    mysql.c:16:10: fatal error: mysql_version.h: No such file or directory
     #include <mysql_version.h>
              ^~~~~~~~~~~~~~~~~
    compilation terminated.


You need to #include <server/mysql_version.h> as that is where the header is
now located. Unfortunately, the server/ directory is part of the re-factoring,
and does not contain our needed header in earlier versions of mariadb.

> So I'd consider this #2165 a duplicate of of that what was fixed as PP/07
> and if nobody complains, I'd close this bug as solved with commit 4f9f4be46
> about 3 weeks ago.


You need the conditional include that I have in my patch. The one from the
earlier commit won't work for later versions of mariadb, (and might not work
for mariadb < 10.2 either, though I haven't checked).

--
You are receiving this mail because:
You are on the CC list for the bug.