<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">I'm trying to update MacPorts rspamd from version 2.7 to 3.0.</div><div class=""><br class=""></div><div class="">Version 3.0 fails to build on macOS, using the same build commands as a successfully built 2.7. I’ve opened upstream issue <a href="https://github.com/rspamd/rspamd/issues/3893" class="">https://github.com/rspamd/rspamd/issues/3893</a>, and the developer says that he has no problem building on macOS with clang version 11; I’m using clang version 12. <a href="https://github.com/rspamd/rspamd/issues/3893#issuecomment-920916941" class="">https://github.com/rspamd/rspamd/issues/3893#issuecomment-920916941</a></div><div class=""><br class=""></div><div class="">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:</div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><pre style="box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 11.899999618530273px; margin-top: 0px; margin-bottom: 16px; word-wrap: normal; padding: 16px; overflow: auto; line-height: 1.45; border-top-left-radius: 6px; border-top-right-radius: 6px; border-bottom-right-radius: 6px; border-bottom-left-radius: 6px; caret-color: rgb(36, 41, 47); color: rgb(36, 41, 47);" class=""><code style="box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; padding: 0px; margin: 0px; border-top-left-radius: 6px; border-top-right-radius: 6px; border-bottom-right-radius: 6px; border-bottom-left-radius: 6px; word-break: normal; border: 0px; display: inline; overflow: visible; line-height: inherit; word-wrap: normal;" class="">: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 ^
…</code></pre></blockquote></div><div class=""><br class=""></div><div class="">Build log:</div><div class=""></div></body></html>