On 2026/01/21 13:31, Aki Tuomi wrote:
> I testbuilt dovecot on openbsd 7.7, and was able to fix some of the issues. I
> didn't run into the test-regex problem though. Please see
>
> https://github.com/dovecot/core/compare/f8dcc0ddbf8772f89d4bb3650a95aa98ab3b0907%5E...1c6b67195d279836d94e141215c626c20af93af6.patch
That does help.
You'll see the test-regex problem if you pkg_add pcre2 before building.
Same occurs whether autoconf auto-detects the library path or whether
you set it yourself via LDFLAGS when running configure.
There's also an issue if you pkg_add xapian-core and don't disable
flatcurve; xapian/error.h wants to pull in the C++ <version> header,
but presence of the "version" file in Dovecot's source tree (pulled
in via -I flags) shadows it, resulting in the error below. This is
not seen if you do an out-of-source-tree build.
In file included from fts-backend-flatcurve-xapian.cc:30:
In file included from /usr/local/include/xapian.h:56:
In file included from /usr/local/include/xapian/error.h:30:
In file included from /usr/include/c++/v1/string:589:
In file included from /usr/include/c++/v1/__algorithm/max.h:14:
In file included from /usr/include/c++/v1/__algorithm/max_element.h:15:
In file included from /usr/include/c++/v1/__iterator/iterator_traits.h:14:
In file included from /usr/include/c++/v1/__concepts/constructible.h:13:
In file included from /usr/include/c++/v1/__concepts/destructible.h:13:
In file included from
/usr/include/c++/v1/__type_traits/is_nothrow_destructible.h:14:
In file included from /usr/include/c++/v1/__type_traits/is_destructible.h:16:
In file included from /usr/include/c++/v1/__type_traits/remove_all_extents.h:13:
In file included from /usr/include/c++/v1/cstddef:40:
../../../version:1:1: error: expected unqualified-id
1 | 2.4.2
| ^
<...snip repeats...>
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
Error while executing c++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/lib
-I../../../src/lib-ssl-iostream -I../../../src/lib-http -I../../../src/lib-mail
-I../../../src/lib-imap -I../../../src/lib-index -I../../../src/lib-settings
-I../../../src/lib-storage -I../../../src/lib-doveadm
-I../../../src/lib-var-expand -I../../../src/doveadm -I../../../src/plugins/fts
-I/usr/local/include -I/usr/local/include -O2 -pipe -g -MT
fts-backend-flatcurve-xapian.lo -MD -MP -MF
.deps/fts-backend-flatcurve-xapian.Tpo -c fts-backend-flatcurve-xapian.cc -fPIC
-DPIC -o .libs/fts-backend-flatcurve-xapian.o
_______________________________________________
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]