Thanks for looking at this Viktor, I’ll catch up with your suggestions 
tomorrow, and will also look into 3.4 if it’s available yet. 
I realise I’m on a non- standard system but as Apple are steadily discontinuing 
3rd party packages, and have already abandoned their own server, I’m happy I’m 
having a head start on all this.
I’ve got to get this build going clean because I want to install on my server 
to replace my 3.1

Robert


-----
Robert Chalmers
https://robert-chalmers.uk
aut...@robert-chalmers.uk
@R_A_Chalmers


> On 27 Nov 2018, at 7:25 pm, Wietse Venema <wie...@porcupine.org> wrote:
> 
> rachalmers:
>> I'm now trying 3.3.2 and running into a mess of compile errors again.
>> 
>> Firstly -
>> Had to add this patch; referenced elsewhere, but known about.
>>     src/global/dict_mysql.c (postfix 3.2.0-5, 3.3.0 and current) to allow
>> build against MySQL 8.x
>> 
>> Then had to add this define to dict_mysql.c
>> 
>> #define MYSQL_OPT_SSL_VERIFY_SERVER_CERT 0
>> 
>> Because the compiler was complaining that it wasn't declared. Compiles fine
> 
> This is what we have in Postfix 3.4 development release:
> 
> /* MySQL 8.x API change */
> 
> #if defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID >= 50023
> #define DICT_MYSQL_SSL_VERIFY_SERVER_CERT MYSQL_OPT_SSL_VERIFY_SERVER_CERT
> #elif MYSQL_VERSION_ID >= 80000
> #define DICT_MYSQL_SSL_VERIFY_SERVER_CERT MYSQL_OPT_SSL_MODE
> #endif
> 
>    Wietse

Reply via email to