On Wed, Jan 28, 2026 at 5:20PM Stuart Henderson <[1][email protected]>
   wrote:

     On 2026/01/28 16:58, Washington Odhiambo wrote:
     > #!/usr/bin/env bash
     >
     > export AUTOCONF_VERSION=2.72
     > export AUTOMAKE_VERSION=1.18
     > export LIBTOOL=glibtool
     > export PATH="/usr/local/bin:$PATH"
     >
     >
     > ./autogen.sh &&
     > ./configure \
     >   --enable-maintainer-mode \
     >   --with-sql=yes \
     >   --with-mysql \
     >   --with-pgsql \
     >   --enable-experimental-mail-utf8 \
     >   --with-pcre2
     >
     > gmake -j$(sysctl -n hw.ncpu)
     > doas gmake install

     Bad idea to run the install as root unconditionally. If the build
     failed,
     you'll re-run part of the build again as root as a dependency of "make
     install".

     There are various ways to avoid this; "set -e" at the top of the script
     is probably simplest.

     > And here is where it fails:
     >
     > <cut>
     > gmake[2]: Leaving directory
     '/home/wash/Dovecot/dovecot/src/lib-doveadm'
     > Making install in lib-var-expand-crypt
     > gmake[2]: Entering directory
     '/home/wash/Dovecot/dovecot/src/lib-var-expand-crypt'
     >   CCLD     test-var-expand-crypt
     >
     > *** Warning: Linking the executable test-var-expand-crypt against the
     loadable module
     > *** var_expand_crypt.so is not portable!
     > ld: error: unable to find library -lvar_expand_crypt

     You'll at least need either the patchset that Aki mentioned, or git head
     
[2]https://github.com/dovecot/core/compare/f8dcc0ddbf877%5E...1c6b67195d279836d94e.patch
     and then you may also hit the problems I ran into with xapian/pcre2.

   1. How do I get the 'git head'? I just cloned the repo a few hours ago?
   2. How did you deal with the xapian/pcre2 issue?
   I suppose that's why the OP abandoned his quest for running dovecot on
   OpenBSD, right?
   Because it's not as straightforward as on Debian-based Linux.

   --
   Best regards,
   Odhiambo WASHINGTON,
   Nairobi,KE
   +254 7 3200 0004/+254 7 2274 3223
    In an Internet failure case, the #1 suspect is a constant: DNS.
   "Oh, the cruft.", egrep -v '^$|^.*#' -\_(Tu)_/- :-)
   [How to ask smart
   questions: [3]http://www.catb.org/~esr/faqs/smart-questions.html]

References

   Visible links
   1. mailto:[email protected]
   2. 
https://github.com/dovecot/core/compare/f8dcc0ddbf877%5E...1c6b67195d279836d94e.patch
   3. http://www.catb.org/~esr/faqs/smart-questions.html
_______________________________________________
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to