Since the latest update the mysql support seems to be broken. When I try to isntall postfix, I get the message: dict_mysql.c:661:26: error: use of undeclared identifier 'MYSQL_OPT_SSL_MODE' mysql_options(host->db, MYSQL_OPT_SSL_MODE, and the installation stops.
Solved. Upgraded mariadb100-client to mariadb102-client
Created attachment 191089 [details] patch incompatible mysql API
Thanks for the report! It seems mariadb100 does not define MARIADB_VERSION_ID. Would you mind to do a test with mariadb100 client and a drop in replacement for postfix/files/patch-src_global_dict__mysql.c ? Just use the attached patch or download https://people.freebsd.org/~ohauer/postfix.dict__mysql/patch-src_global_dict__mysql.c_v2.diff and replace postfix/files/patch-src_global_dict__mysql.c with this version. My test build with the new patch against mariadb100 client was OK
A commit references this bug: Author: ohauer Date: Wed Feb 28 21:49:47 UTC 2018 New revision: 463264 URL: https://svnweb.freebsd.org/changeset/ports/463264 Log: - fix build agains maraidb100 [1] Firt definition of MARIADB_VERSION_ID can be found in mariadb102 therefore we have to use MARIADB_BASE_VERSION which is defined in mariadb55 and mariadb10x PR: 226266 [1], 220224 Reported by: Zilon [1] Changes: head/mail/postfix/files/patch-src_global_dict__mysql.c
A commit references this bug: Author: ohauer Date: Wed Feb 28 21:50:21 UTC 2018 New revision: 463265 URL: https://svnweb.freebsd.org/changeset/ports/463265 Log: - fix build agains maraidb100 [1] Firt definition of MARIADB_VERSION_ID can be found in mariadb102 therefore we have to use MARIADB_BASE_VERSION which is defined in mariadb55 and mariadb10x PR: 226266 [1], 220224 Reported by: Zilon [1] Changes: head/mail/postfix-current/files/patch-src_global_dict__mysql.c
I've done some test builds, and committed the patch already. Thanks for your report!