rspamd version 3.0 fails to build with implicit type checking error

Steven Smith steve.t.smith at gmail.com
Thu Sep 16 14:00:00 UTC 2021


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 <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 <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:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20210916/f6be9d5e/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.log.gz
Type: application/x-gzip
Size: 27249 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20210916/f6be9d5e/attachment-0002.bin>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20210916/f6be9d5e/attachment-0003.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3898 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20210916/f6be9d5e/attachment-0003.bin>


More information about the macports-dev mailing list