[Bug 296033] mail/rspamd: compilation of 4.0.0_1 failed when converters/simdutf installed

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 13 Jun 2026 12:45:25 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296033

            Bug ID: 296033
           Summary: mail/rspamd: compilation of 4.0.0_1 failed when
                    converters/simdutf installed
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: mishin@mh.net.ru
                CC: fuz@FreeBSD.org, vsevolod@FreeBSD.org
                CC: fuz@FreeBSD.org, vsevolod@FreeBSD.org

Created attachment 271754
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=271754&action=edit
mail/rspamd patch to build with converters/simdutf installed

Compilation failed with an error, accompanied by the following text:
---
/usr/ports/mail/rspamd/work/rspamd-4.0.0/contrib/simdutf/src/simdutf/haswell/bitmanipulation.h:20:1:
fatal error: unknown type name 'simdutf_inline'
   20 | simdutf_inline int trailing_zeroes(uint64_t input_num) {
      | ^
5 warnings and 1 error generated.
ninja: build stopped: subcommand failed.
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
---

It looks like there is a conflict with the header files for 'simdutf'.

My thanks to [OpenBSD Mail
Box](https://openbsdmailbox.blogspot.com/2025/10/re-netrspamd-fix-build-with.html)
for helping me to make the attached patch.

-- 
You are receiving this mail because:
You are the assignee for the bug.