On Sun, 1 Feb 2026 15:28:39 +0300 Washington Odhiambo <[email protected]> wrote:
> On Sun, Feb 1, 2026 at 2:44 PM Joel Mawhorter via dovecot < > [email protected]> wrote: > > > On Sun, 1 Feb 2026 11:45:54 +0300 > > Washington Odhiambo <[email protected]> wrote: > > > > > On Sun, Feb 1, 2026 at 3:44 AM Joel Mawhorter via dovecot < > > > [email protected]> wrote: > > > > > > > On Wed, 28 Jan 2026 13:05:20 +0100 > > > > Matthias Fechner <[email protected]> wrote: > > > > > > > > > Am 28.01.2026 um 12:58 schrieb Joel Mawhorter via dovecot: > > > > > > ./autogen.sh > > > > > > ./configure --enable-maintainer-mode > > > > > > make > > > > > on BSD you must use gmake if you want to use GNU make and not BSD > > make. > > > > > > > > Thanks. That was my problem. It now seems to work with the latest from > > > > Github on OpenBSD 7.8. Thanks to everyone for your help. > > > > > > > > One more quick question. I'm planning to try to install 2.4 in parallel > > > > with 2.3 on OpenBSD until I can get everything moved over and wonder if > > > > there is any easy way with the current Makefiles to install under > > somewhere > > > > else other than /usr/local/? > > > > > > > > > > You can always run ./configure --prefix=/SOME/OTHER/PATH, > > > e.g. --prefix=/opt/ > > > Why don't you run the other one in a VM? > > > > > > > > > > > > Oddly, when I compile the latest Github HEAD branch after ¨./configure" > > without any options, everything builds fine. If I compile after > > "./configure --prefix=/opt/dovecot", I get the following build error: > > > > gmake[3]: Entering directory '/home/joel/dovecot/src/lib-charset' > > CC charset-iconv.lo > > charset-iconv.c:7:10: fatal error: 'iconv.h' file not found > > 7 | #include <iconv.h> > > | ^~~~~~~~~ > > 1 error generated. > > gmake[3]: *** [Makefile:810: charset-iconv.lo] Error 1 > > gmake[3]: Leaving directory '/home/joel/dovecot/src/lib-charset' > > gmake[2]: *** [Makefile:607: all-recursive] Error 1 > > gmake[2]: Leaving directory '/home/joel/dovecot/src' > > gmake[1]: *** [Makefile:744: all-recursive] Error 1 > > gmake[1]: Leaving directory '/home/joel/dovecot' > > gmake: *** [Makefile:586: all] Error 2 > > > > That's expected. Autoconf switches to prefix-relative include/library > probing and stops checking the base system paths correctly for some feature > tests (including iconv). > As a result: > > HAVE_ICONV is misdetected > lib-charset is still built > > but iconv.h is no longer in the compiler’s active include set during > sub-builds > That’s why the failure only appears with --prefix=/opt/dovecot. > > I was able to reproduce that failure, and resolved it by: > export CPPFLAGS="-I/usr/include" > export LDFLAGS="-L/usr/lib" > > ./configure \ > --prefix=/opt/dovecot \ > --enable-maintainer-mode \ > --with-sql=yes \ > --with-mysql \ > --with-pgsql \ > --enable-experimental-mail-utf8 \ > --with-pcre2 \ > --disable-static > > > Thanks for looking into this. Your solution makes sense to me. However, I was not able to reproduce your fix using the same exported variables and configure parameters. It still failed not able to find iconv.h. For me, iconv.h is in /usr/local/include so I added that to the CPPFLAGS and /usr/local/lib to LDFLAGS and got past the previous problem and now I have this build problem: gmake[3]: Entering directory '/home/joel/dovecot/src/lib-var-expand-crypt' CC test_var_expand_crypt-test-var-expand-crypt.o CC var-expand-crypt.lo CCLD var_expand_crypt.la 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 cc: error: linker command failed with exit code 1 (use -v to see invocation) gmake[3]: *** [Makefile:829: test-var-expand-crypt] Error 1 gmake[3]: Leaving directory '/home/joel/dovecot/src/lib-var-expand-crypt' gmake[2]: *** [Makefile:607: all-recursive] Error 1 gmake[2]: Leaving directory '/home/joel/dovecot/src' gmake[1]: *** [Makefile:744: all-recursive] Error 1 gmake[1]: Leaving directory '/home/joel/dovecot' gmake: *** [Makefile:586: all] Error 2 It seems this is the same error that Stuart got earlier that I think was fixed by the patch Aki did so I'm not sure what to do about that. Joel _______________________________________________ dovecot mailing list -- [email protected] To unsubscribe send an email to [email protected]
