I'm trying to update MacPorts rspamd from version 2.7 to 3.0.

Version 3.0 fails to build on macOS, using the same build commands as a successfully built 2.7.  I’ve opened upstream issue https://github.com/rspamd/rspamd/issues/3893, and the developer says that he has no problem building on macOS with clang version 11; I’m using clang version 12. https://github.com/rspamd/rspamd/issues/3893#issuecomment-920916941

I suspect this is caused by some nanny compiler flag set somewhere by Apple or MacPorts code. I’d greatly appreciate help figuring out which flags to set to avoid this build error:

:info:build /opt/local/var/macports/build/_opt_local_ports_mail_rspamd/rspamd/work/rspamd-3.0/src/libserver/css/css_selector.hxx:116:4: error: 'auto' in return type deduced as 'unsigned long' here but deduced as 'unsigned long long' in earlier return statement
:info:build                         return rspamd_cryptobox_fast_hash(sv.data(), sv.size(), 0xdeadbabe);
:info:build                         ^
:info:build In file included from /opt/local/var/macports/build/_opt_local_ports_mail_rspamd/rspamd/work/rspamd-3.0/src/libserver/html/html.cxx:24:
:info:build In file included from /opt/local/var/macports/build/_opt_local_ports_mail_rspamd/rspamd/work/rspamd-3.0/src/libserver/css/css.hxx:25:
:info:build /opt/local/var/macports/build/_opt_local_ports_mail_rspamd/rspamd/work/rspamd-3.0/src/libserver/css/css_selector.hxx:116:4: error: 'auto' in return type deduced as 'unsigned long' here but deduced as 'unsigned long long' in earlier return statement
:info:build                         return rspamd_cryptobox_fast_hash(sv.data(), sv.size(), 0xdeadbabe);
:info:build                         ^
…
:info:build /opt/local/var/macports/build/_opt_local_ports_mail_rspamd/rspamd/work/rspamd-3.0/src/libserver/css/css_selector.hxx:116:4: error: 'auto' in return type deduced as 'unsigned long' here but deduced as 'unsigned long long' in earlier return statement
:info:build                         return rspamd_cryptobox_fast_hash(sv.data(), sv.size(), 0xdeadbabe);
:info:build                         ^
…

Build log:

Attachment: main.log.gz
Description: GNU Zip compressed data

Attachment: smime.p7s
Description: S/MIME cryptographic signature



Reply via email to