Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 633378 - mail-mta/exim-4.89-r1[mysql] fails to compile against dev-db/mariadb-10.2.*
Summary: mail-mta/exim-4.89-r1[mysql] fails to compile against dev-db/mariadb-10.2.*
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Fabian Groffen
URL:
Whiteboard:
Keywords:
: 634256 (view as bug list)
Depends on:
Blocks: 630404
  Show dependency tree
 
Reported: 2017-10-03 13:17 UTC by Jaco Kroon
Modified: 2018-06-20 09:17 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaco Kroon 2017-10-03 13:17:04 UTC
mysql.c: In function 'mysql_version_report':
mysql.c:437:9: error: 'MYSQL_SERVER_VERSION' undeclared (first use in this function)
         MYSQL_SERVER_VERSION, MYSQL_COMPILATION_COMMENT,
         ^
mysql.c:437:9: note: each undeclared identifier is reported only once for each function it appears in
mysql.c:437:31: error: 'MYSQL_COMPILATION_COMMENT' undeclared (first use in this function)
         MYSQL_SERVER_VERSION, MYSQL_COMPILATION_COMMENT,
                               ^

Not sure if this is MariaDB specific, or what the right fix is, I've used the below:

orig src/lookups/mysql.c
--- src/lookups/mysql.c.orig    2017-10-03 14:12:44.759308749 +0200
+++ src/lookups/mysql.c 2017-10-03 14:31:03.450160256 +0200
@@ -429,6 +429,13 @@
 
 #include "../version.h"
 
+#ifndef MYSQL_SERVER_VERSION
+#define MYSQL_SERVER_VERSION MARIADB_CLIENT_VERSION
+#endif
+#ifndef MYSQL_COMPILATION_COMMENT
+#define MYSQL_COMPILATION_COMMENT "Unknown"
+#endif
+
 void
 mysql_version_report(FILE *f)
 {

Please advise what I can do to assist.
Comment 1 Dragan Kašler 2017-10-14 18:40:35 UTC
*** Bug 634256 has been marked as a duplicate of this bug. ***
Comment 2 Fabian Groffen gentoo-dev 2017-11-30 10:38:58 UTC
Can you try this with 4.89.1?  It includes a commit on this topic.
Comment 3 Jaco Kroon 2018-02-13 11:19:08 UTC
greyscale ~ # equery list mariadb
 * Searching for mariadb ...
[IP-] [  ] dev-db/mariadb-10.2.11:0/18
greyscale ~ # emerge -1av =mail-mta/exim-4.89.1  
...
[ebuild     UD ] mail-mta/exim-4.89.1::gentoo [4.90::gentoo] USE="X dkim dnsdb ipv6 mysql pam prdr ssl -dane -dcc -dlfunc -dmarc -doc -dovecot-sasl -dsn -exiscan-acl -gnutls -ldap -libressl -lmtp -maildir -mbx -nis -perl -pkcs11 -postgres -proxy -radius -redis -sasl (-selinux) -spf -sqlite -srs -syslog -tcpd -tpda*" 0 KiB
...
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) mail-mta/exim-4.89.1::gentoo
>>> Installing (1 of 1) mail-mta/exim-4.89.1::gentoo
>>> Jobs: 1 of 1 complete                           Load avg: 2.54, 1.33, 0.87

So yes, that sorts it out.  As far as I'm concerned this can be closed, but perhaps you do want to add a blocker on the unfixed version against the non-working mariadb ... your call.