1 more error.

This error persists across 3.3.1, 3.3.2, and now 3.4. Obviously I’m doing 
something wrong but cant find what it is about the Berkeley db thing.

dict_db.c:768:2: error: "Unsupported Berkeley DB version"
#error "Unsupported Berkeley DB version"
 ^
1 error generated.
make: *** [dict_db.o] Error 1
make: *** [update] Error 1
make: *** [update] Error 2

The only way I could get past it was with the CCARGS=‘-DNO_DB’ switch. Kind of 
defeats my needs, because I use hash tables.

If I point to /usr/local/opt/berkeley-db@18/ for example, it still breaks. 
That's the latest available Berkeley-db


This build script…
set -- '-DUSE_TLS -I/usr/local/Cellar/openssl@1.1/1.1.1/include'
set -- "$@" '-I/usr/local/opt/icu4c/include'
set -- "$@" '-DHAS_MYSQL -I/usr/local/include/mysql'
set -- "$@" '-DHAS_PCRE -I/usr/local/include'
set -- "$@" '-DUSE_SASL_AUTH -DUSE_CYRUS_SASL 
-DDEF_SERVER_SASL_TYPE=\"dovecot\" 
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sasl'
CCARGS="$@"

set -- '-lsasl2'
set -- "$@" '-L/usr/local/Cellar/openssl@1.1/1.1.1/lib -lssl -lcrypto'
set -- "$@" '-L/usr/local/lib -ldb'
set -- "$@" '-L/usr/lib -lsasl2'
set -- "$@" '-L/usr/local/opt/icu4c/lib -licuuc'
set -- "$@" '-L/usr/local/opt/berkeley-db@18/lib -ldb'
AUXLIBS="$@"


make -f Makefile.init shared=yes dynamicmaps=yes \
       config_directory=/usr/local/etc/postfix \
       command_directory=/usr/local/sbin \
       daemon_directory=/usr/local/libexec/postfix \
       queue_directory=/var/spool/postfix \
       data_directory=/var/lib/postfix \
       html_directory=/usr/share/doc/postfix/html \
       manpage_directory=/usr/local/man \
       readme_directory=/usr/share/doc/postfix \
       mailq_path=/usr/local/bin/mailq \
       newaliases_path=/usr/local/bin/newaliases \
       sendmail_path=/usr/local/sbin/sendmail \
       "CCARGS=${CCARGS}" \
       "AUXLIBS=${AUXLIBS}" \
       'AUXLIBS_MYSQL=-L/usr/local/lib -lmysqlclient -lz -lm' \
       'AUXLIBS_PCRE=-L/usr/local/lib -lpcre'

Any ideas where to turn...


> On 27 Nov 2018, at 19:25, 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

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

Reply via email to