Hi,
I'm trying to build dovecot-2.4.4 on FreeBSD 14.4 and I get a strange error message.
What I did is download and extract dovecot-2.4.4.tar.gz and then run ./configure without any arguments. After typing make the build started without any problems until this point:
....
Making all in auth
CC test_auth_cache-auth-cache.o
CC test_auth_cache-test-auth-cache.o
CC auth-main.o
CC auth-auth.o
CC auth-auth-cache.o
CC auth-auth-client-connection.o
CC auth-auth-master-connection.o
CC auth-auth-policy.o
CC auth-auth-penalty.o
CC auth-auth-request.o
CC auth-auth-request-fields.o
CC auth-auth-request-handler.o
CC auth-auth-request-var-expand.o
CC auth-auth-sasl-mech-apop.o
CC auth-auth-sasl-mech-dovecot-token.o
CC auth-auth-sasl-mech-oauth2.o
CC auth-auth-sasl.o
CC auth-auth-settings.o
CC auth-auth-fields.o
CC auth-auth-token.o
CC auth-auth-worker-connection.o
CC auth-auth-worker-server.o
CC auth-db-oauth2.o
CC auth-db-sql.o
CC auth-db-passwd-file.o
CC auth-passdb.o
CC auth-passdb-blocking.o
CC auth-passdb-bsdauth.o
CC auth-passdb-cache.o
CC auth-passdb-oauth2.o
CC auth-passdb-passwd.o
CC auth-passdb-passwd-file.o
CC auth-passdb-pam.o
CC auth-passdb-sql.o
CC auth-passdb-static.o
CC auth-userdb.o
CC auth-userdb-blocking.o
CC auth-userdb-passwd.o
CC auth-userdb-passwd-file.o
CC auth-userdb-prefetch.o
CC auth-userdb-static.o
CC auth-userdb-sql.o
CC auth-db-ldap.o
CC auth-db-ldap-sasl.o
CC auth-db-ldap-settings.o
CC auth-passdb-ldap.o
CC auth-userdb-ldap.o
CC auth-db-lua.o
CC auth-passdb-lua.o
CC auth-userdb-lua.o
make[3]: don't know how to make -L/usr/local/lib. Stop
make[3]: stopped making "all" in /home/volf/dovecot-2.4.4/src/auth
*** Error code 1
So, apparently make is confused and thinks that the compiler/linker commandline option is an item to build. I'm at loss how to solve this.
I would appreciate it, if somebody could give me a hint how to solve this.
Kind regards,
Frank
Hi,
I'm trying to build dovecot-2.4.4 on FreeBSD 14.4 and I get a strange error message.
What I did is download and extract dovecot-2.4.4.tar.gz and then run ./configure without any arguments. After typing make the build started without any problems until this point:
....
Making all in auth
CC test_auth_cache-auth-cache.o
CC test_auth_cache-test-auth-cache.o
CC auth-main.o
CC auth-auth.o
CC auth-auth-cache.o
CC auth-auth-client-connection.o
CC auth-auth-master-connection.o
CC auth-auth-policy.o
CC auth-auth-penalty.o
CC auth-auth-request.o
CC auth-auth-request-fields.o
CC auth-auth-request-handler.o
CC auth-auth-request-var-expand.o
CC auth-auth-sasl-mech-apop.o
CC auth-auth-sasl-mech-dovecot-token.o
CC auth-auth-sasl-mech-oauth2.o
CC auth-auth-sasl.o
CC auth-auth-settings.o
CC auth-auth-fields.o
CC auth-auth-token.o
CC auth-auth-worker-connection.o
CC auth-auth-worker-server.o
CC auth-db-oauth2.o
CC auth-db-sql.o
CC auth-db-passwd-file.o
CC auth-passdb.o
CC auth-passdb-blocking.o
CC auth-passdb-bsdauth.o
CC auth-passdb-cache.o
CC auth-passdb-oauth2.o
CC auth-passdb-passwd.o
CC auth-passdb-passwd-file.o
CC auth-passdb-pam.o
CC auth-passdb-sql.o
CC auth-passdb-static.o
CC auth-userdb.o
CC auth-userdb-blocking.o
CC auth-userdb-passwd.o
CC auth-userdb-passwd-file.o
CC auth-userdb-prefetch.o
CC auth-userdb-static.o
CC auth-userdb-sql.o
CC auth-db-ldap.o
CC auth-db-ldap-sasl.o
CC auth-db-ldap-settings.o
CC auth-passdb-ldap.o
CC auth-userdb-ldap.o
CC auth-db-lua.o
CC auth-passdb-lua.o
CC auth-userdb-lua.o
make[3]: don't know how to make -L/usr/local/lib. Stop
make[3]: stopped making "all" in /home/volf/dovecot-2.4.4/src/auth
*** Error code 1
So, apparently make is confused and thinks that the compiler/linker commandline option is an item to build. I'm at loss how to solve this.
I would appreciate it, if somebody could give me a hint how to solve this.
Kind regards,
Frank
Evening, I ran into the same issue on FreeBSD-14.4. I fixed it by manually removing the offending “-L/usr/local/lib” from the various “*_LIBS = “ definitions in src/auth/Makefile. I had claude take a look and here’s what it reported: ⏺ Here's the summary of the problem and the fix: Root cause: In 2.4.4, am__append_8 was changed to include both $(LIBDOVECOT_LUA) (a .la file dep) and $(LUA_LIBS) (raw linker flags: -L/usr/local/lib -llua-5.4 -lm). This append goes into auth_libs, which is used verbatim in auth_DEPENDENCIES. GNU make treats everything in a target's prerequisite list as files to build — it handles -l<name> specially, but -L<path> is taken literally, causing "no rule to make target '-L/usr/local/lib'". Fix: 1. Strip $(LUA_LIBS) from am__append_8 — leave only $(LIBDOVECOT_LUA) (the actual file dep) 2. Add am__append_10 = $(LUA_LIBS), scoped to plugin mode only (AUTH_LUA_PLUGIN_TRUE && HAVE_LUA_TRUE) — in non-plugin mode, $(LUA_LIBS) is already covered by AUTH_LUA_LDADD 3. Append $(am__append_10) to the five LDADD variables that need it To apply: patch src/auth/Makefile.in /path/to/patch-src-auth-Makefile.in Here’s the patch I used that resulted in a clean build: *** src/auth/Makefile.in.orig --- src/auth/Makefile.in *************** *** 107,111 **** @HAVE_LDAP_TRUE@@LDAP_PLUGIN_TRUE@am__append_6 = libauthdb_ldap.la @HAVE_LDAP_TRUE@@LDAP_PLUGIN_FALSE@am__append_7 = $(LIBDOVECOT_LDAP) - @HAVE_LUA_TRUE@am__append_8 = $(LIBDOVECOT_LUA) $(LUA_LIBS) @AUTH_LUA_PLUGIN_TRUE@am__append_9 = libauthdb_lua.la subdir = src/auth --- 107,112 ---- @HAVE_LDAP_TRUE@@LDAP_PLUGIN_TRUE@am__append_6 = libauthdb_ldap.la @HAVE_LDAP_TRUE@@LDAP_PLUGIN_FALSE@am__append_7 = $(LIBDOVECOT_LDAP) + @HAVE_LUA_TRUE@am__append_8 = $(LIBDOVECOT_LUA) + @AUTH_LUA_PLUGIN_TRUE@@HAVE_LUA_TRUE@am__append_10 = $(LUA_LIBS) @AUTH_LUA_PLUGIN_TRUE@am__append_9 = libauthdb_lua.la subdir = src/auth *************** *** 1119,1123 **** $(am__append_8) auth_CPPFLAGS = $(AM_CPPFLAGS) $(BINARY_CFLAGS) ! auth_LDADD = $(auth_libs) $(LIBDOVECOT) $(AUTH_LIBS) $(BINARY_LDFLAGS) $(AUTH_LUA_LDADD) auth_DEPENDENCIES = $(auth_libs) $(LIBDOVECOT_DEPS) auth_SOURCES = main.c $(auth_common_sources) --- 1120,1124 ---- $(am__append_8) auth_CPPFLAGS = $(AM_CPPFLAGS) $(BINARY_CFLAGS) ! auth_LDADD = $(auth_libs) $(LIBDOVECOT) $(AUTH_LIBS) $(BINARY_LDFLAGS) $(AUTH_LUA_LDADD) $(am__append_10) auth_DEPENDENCIES = $(auth_libs) $(LIBDOVECOT_DEPS) auth_SOURCES = main.c $(auth_common_sources) *************** *** 1230,1234 **** test-main.c ! test_auth_LDADD = $(test_auth_ldadd_plugins) $(LIBDOVECOT) $(auth_libs) $(AUTH_LIBS) test_auth_DEPENDENCIES = $(test_auth_ldadd_plugins) $(pkglibexec_PROGRAMS) $(LIBDOVECOT_DEPS) test_mech_SOURCES = \ --- 1231,1235 ---- test-main.c ! test_auth_LDADD = $(test_auth_ldadd_plugins) $(LIBDOVECOT) $(auth_libs) $(AUTH_LIBS) $(am__append_10) test_auth_DEPENDENCIES = $(test_auth_ldadd_plugins) $(pkglibexec_PROGRAMS) $(LIBDOVECOT_DEPS) test_mech_SOURCES = \ *************** *** 1238,1242 **** test-mech.c ! test_mech_LDADD = $(LIBDOVECOT) $(auth_libs) $(AUTH_LIBS) test_mech_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(LIBDOVECOT_DEPS) test_auth_client_SOURCES = \ --- 1239,1243 ---- test-mech.c ! test_mech_LDADD = $(LIBDOVECOT) $(auth_libs) $(AUTH_LIBS) $(am__append_10) test_mech_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(LIBDOVECOT_DEPS) test_auth_client_SOURCES = \ *************** *** 1246,1250 **** test-auth-client.c ! test_auth_client_LDADD = $(LIBDOVECOT) $(auth_libs) $(AUTH_LIBS) test_auth_client_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(LIBDOVECOT_DEPS) test_auth_master_SOURCES = \ --- 1247,1251 ---- test-auth-client.c ! test_auth_client_LDADD = $(LIBDOVECOT) $(auth_libs) $(AUTH_LIBS) $(am__append_10) test_auth_client_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(LIBDOVECOT_DEPS) test_auth_master_SOURCES = \ *************** *** 1255,1259 **** test-auth-master-server.c ! test_auth_master_LDADD = $(LIBDOVECOT) $(auth_libs) $(AUTH_LIBS) test_auth_master_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(LIBDOVECOT_DEPS) all: all-am --- 1256,1260 ---- test-auth-master-server.c ! test_auth_master_LDADD = $(LIBDOVECOT) $(auth_libs) $(AUTH_LIBS) $(am__append_10) test_auth_master_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(LIBDOVECOT_DEPS) all: all-am I haven’t tested the binary yet, but at least it did successfully complete the build. The right fix is to update src/auth/Makefile.am, but perhaps someone more familiar with this can take a look and confirm. —Jeff
On May 17, 2026, at 19:59, Frank Volf via dovecot <dovecot@dovecot.org> wrote:
Hi,
I'm trying to build dovecot-2.4.4 on FreeBSD 14.4 and I get a strange error message.
What I did is download and extract dovecot-2.4.4.tar.gz and then run ./configure without any arguments. After typing make the build started without any problems until this point:
.... Making all in auth CC test_auth_cache-auth-cache.o CC test_auth_cache-test-auth-cache.o CC auth-main.o CC auth-auth.o CC auth-auth-cache.o CC auth-auth-client-connection.o CC auth-auth-master-connection.o CC auth-auth-policy.o CC auth-auth-penalty.o CC auth-auth-request.o CC auth-auth-request-fields.o CC auth-auth-request-handler.o CC auth-auth-request-var-expand.o CC auth-auth-sasl-mech-apop.o CC auth-auth-sasl-mech-dovecot-token.o CC auth-auth-sasl-mech-oauth2.o CC auth-auth-sasl.o CC auth-auth-settings.o CC auth-auth-fields.o CC auth-auth-token.o CC auth-auth-worker-connection.o CC auth-auth-worker-server.o CC auth-db-oauth2.o CC auth-db-sql.o CC auth-db-passwd-file.o CC auth-passdb.o CC auth-passdb-blocking.o CC auth-passdb-bsdauth.o CC auth-passdb-cache.o CC auth-passdb-oauth2.o CC auth-passdb-passwd.o CC auth-passdb-passwd-file.o CC auth-passdb-pam.o CC auth-passdb-sql.o CC auth-passdb-static.o CC auth-userdb.o CC auth-userdb-blocking.o CC auth-userdb-passwd.o CC auth-userdb-passwd-file.o CC auth-userdb-prefetch.o CC auth-userdb-static.o CC auth-userdb-sql.o CC auth-db-ldap.o CC auth-db-ldap-sasl.o CC auth-db-ldap-settings.o CC auth-passdb-ldap.o CC auth-userdb-ldap.o CC auth-db-lua.o CC auth-passdb-lua.o CC auth-userdb-lua.o make[3]: don't know how to make -L/usr/local/lib. Stop
make[3]: stopped making "all" in /home/volf/dovecot-2.4.4/src/auth *** Error code 1
So, apparently make is confused and thinks that the compiler/linker commandline option is an item to build. I'm at loss how to solve this.
I would appreciate it, if somebody could give me a hint how to solve this.
Kind regards,
Frank _______________________________________________ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
Evening, I ran into the same issue on FreeBSD-14.4. I fixed it by manually removing the offending "-L/usr/local/lib" from the various "*_LIBS = " definitions in src/auth/Makefile. I had claude take a look and here's what it reported: ** Here's the summary of the problem and the fix: Root cause: In 2.4.4, am__append_8 was changed to include both $(LIBDOVECOT_LUA) (a .la file dep) and $(LUA_LIBS) (raw linker flags: -L/usr/local/lib -llua-5.4 -lm). This append goes into auth_libs, which is used verbatim in auth_DEPENDENCIES. GNU make treats everything in a target's prerequisite list as files to build -- it handles -l<name> specially, but -L<path> is taken literally, causing "no rule to make target '-L/usr/local/lib'". Fix: 1. Strip $(LUA_LIBS) from am__append_8 -- leave only $(LIBDOVECOT_LUA) (the actual file dep) 2. Add am__append_10 = $(LUA_LIBS), scoped to plugin mode only (AUTH_LUA_PLUGIN_TRUE && HAVE_LUA_TRUE) -- in non-plugin mode, $(LUA_LIBS) is already covered by AUTH_LUA_LDADD 3. Append $(am__append_10) to the five LDADD variables that need it To apply: patch src/auth/Makefile.in /path/to/patch-src-auth-Makefile.in Here's the patch I used that resulted in a clean build: *** src/auth/Makefile.in.orig --- src/auth/Makefile.in *************** *** 107,111 **** @HAVE_LDAP_TRUE@@LDAP_PLUGIN_TRUE@am__append_6 = libauthdb_ldap.la @HAVE_LDAP_TRUE@@LDAP_PLUGIN_FALSE@am__append_7 = $(LIBDOVECOT_LDAP) - @HAVE_LUA_TRUE@am__append_8 = $(LIBDOVECOT_LUA) $(LUA_LIBS) @AUTH_LUA_PLUGIN_TRUE@am__append_9 = libauthdb_lua.la subdir = src/auth --- 107,112 ---- @HAVE_LDAP_TRUE@@LDAP_PLUGIN_TRUE@am__append_6 = libauthdb_ldap.la @HAVE_LDAP_TRUE@@LDAP_PLUGIN_FALSE@am__append_7 = $(LIBDOVECOT_LDAP) + @HAVE_LUA_TRUE@am__append_8 = $(LIBDOVECOT_LUA) + @AUTH_LUA_PLUGIN_TRUE@@HAVE_LUA_TRUE@am__append_10 = $(LUA_LIBS) @AUTH_LUA_PLUGIN_TRUE@am__append_9 = libauthdb_lua.la subdir = src/auth *************** *** 1119,1123 **** $(am__append_8) auth_CPPFLAGS = $(AM_CPPFLAGS) $(BINARY_CFLAGS) ! auth_LDADD = $(auth_libs) $(LIBDOVECOT) $(AUTH_LIBS) $(BINARY_LDFLAGS) $(AUTH_LUA_LDADD) auth_DEPENDENCIES = $(auth_libs) $(LIBDOVECOT_DEPS) auth_SOURCES = main.c $(auth_common_sources) --- 1120,1124 ---- $(am__append_8) auth_CPPFLAGS = $(AM_CPPFLAGS) $(BINARY_CFLAGS) ! auth_LDADD = $(auth_libs) $(LIBDOVECOT) $(AUTH_LIBS) $(BINARY_LDFLAGS) $(AUTH_LUA_LDADD) $(am__append_10) auth_DEPENDENCIES = $(auth_libs) $(LIBDOVECOT_DEPS) auth_SOURCES = main.c $(auth_common_sources) *************** *** 1230,1234 **** test-main.c ! test_auth_LDADD = $(test_auth_ldadd_plugins) $(LIBDOVECOT) $(auth_libs) $(AUTH_LIBS) test_auth_DEPENDENCIES = $(test_auth_ldadd_plugins) $(pkglibexec_PROGRAMS) $(LIBDOVECOT_DEPS) test_mech_SOURCES = \ --- 1231,1235 ---- test-main.c ! test_auth_LDADD = $(test_auth_ldadd_plugins) $(LIBDOVECOT) $(auth_libs) $(AUTH_LIBS) $(am__append_10) test_auth_DEPENDENCIES = $(test_auth_ldadd_plugins) $(pkglibexec_PROGRAMS) $(LIBDOVECOT_DEPS) test_mech_SOURCES = \ *************** *** 1238,1242 **** test-mech.c ! test_mech_LDADD = $(LIBDOVECOT) $(auth_libs) $(AUTH_LIBS) test_mech_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(LIBDOVECOT_DEPS) test_auth_client_SOURCES = \ --- 1239,1243 ---- test-mech.c ! test_mech_LDADD = $(LIBDOVECOT) $(auth_libs) $(AUTH_LIBS) $(am__append_10) test_mech_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(LIBDOVECOT_DEPS) test_auth_client_SOURCES = \ *************** *** 1246,1250 **** test-auth-client.c ! test_auth_client_LDADD = $(LIBDOVECOT) $(auth_libs) $(AUTH_LIBS) test_auth_client_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(LIBDOVECOT_DEPS) test_auth_master_SOURCES = \ --- 1247,1251 ---- test-auth-client.c ! test_auth_client_LDADD = $(LIBDOVECOT) $(auth_libs) $(AUTH_LIBS) $(am__append_10) test_auth_client_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(LIBDOVECOT_DEPS) test_auth_master_SOURCES = \ *************** *** 1255,1259 **** test-auth-master-server.c ! test_auth_master_LDADD = $(LIBDOVECOT) $(auth_libs) $(AUTH_LIBS) test_auth_master_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(LIBDOVECOT_DEPS) all: all-am --- 1256,1260 ---- test-auth-master-server.c ! test_auth_master_LDADD = $(LIBDOVECOT) $(auth_libs) $(AUTH_LIBS) $(am__append_10) test_auth_master_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(LIBDOVECOT_DEPS) all: all-am I haven't tested the binary yet, but at least it did successfully complete the build. The right fix is to update src/auth/Makefile.am, but perhaps someone more familiar with this can take a look and confirm. --Jeff On May 17, 2026, at 19:59, Frank Volf via dovecot <dovecot@dovecot.org> wrote: Hi, I'm trying to build dovecot-2.4.4 on FreeBSD 14.4 and I get a strange error message. What I did is download and extract dovecot-2.4.4.tar.gz and then run ./configure without any arguments. After typing make the build started without any problems until this point: .... Making all in auth CC test_auth_cache-auth-cache.o CC test_auth_cache-test-auth-cache.o CC auth-main.o CC auth-auth.o CC auth-auth-cache.o CC auth-auth-client-connection.o CC auth-auth-master-connection.o CC auth-auth-policy.o CC auth-auth-penalty.o CC auth-auth-request.o CC auth-auth-request-fields.o CC auth-auth-request-handler.o CC auth-auth-request-var-expand.o CC auth-auth-sasl-mech-apop.o CC auth-auth-sasl-mech-dovecot-token.o CC auth-auth-sasl-mech-oauth2.o CC auth-auth-sasl.o CC auth-auth-settings.o CC auth-auth-fields.o CC auth-auth-token.o CC auth-auth-worker-connection.o CC auth-auth-worker-server.o CC auth-db-oauth2.o CC auth-db-sql.o CC auth-db-passwd-file.o CC auth-passdb.o CC auth-passdb-blocking.o CC auth-passdb-bsdauth.o CC auth-passdb-cache.o CC auth-passdb-oauth2.o CC auth-passdb-passwd.o CC auth-passdb-passwd-file.o CC auth-passdb-pam.o CC auth-passdb-sql.o CC auth-passdb-static.o CC auth-userdb.o CC auth-userdb-blocking.o CC auth-userdb-passwd.o CC auth-userdb-passwd-file.o CC auth-userdb-prefetch.o CC auth-userdb-static.o CC auth-userdb-sql.o CC auth-db-ldap.o CC auth-db-ldap-sasl.o CC auth-db-ldap-settings.o CC auth-passdb-ldap.o CC auth-userdb-ldap.o CC auth-db-lua.o CC auth-passdb-lua.o CC auth-userdb-lua.o make[3]: don't know how to make -L/usr/local/lib. Stop make[3]: stopped making "all" in /home/volf/dovecot-2.4.4/src/auth *** Error code 1 So, apparently make is confused and thinks that the compiler/linker commandline option is an item to build. I'm at loss how to solve this. I would appreciate it, if somebody could give me a hint how to solve this. Kind regards, Frank _______________________________________________ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
Hi! This is now fixed with https://github.com/dovecot/core/commit/5a393f6ef54b80df0c3d46a1ca7f3a75cd9a2... Aki
On 18/05/2026 05:22 EEST Jeff Aitken via dovecot <dovecot@dovecot.org> wrote:
Evening,
I ran into the same issue on FreeBSD-14.4. I fixed it by manually removing the offending “-L/usr/local/lib” from the various “*_LIBS = “ definitions in src/auth/Makefile. I had claude take a look and here’s what it reported:
⏺ Here's the summary of the problem and the fix:
Root cause: In 2.4.4, am__append_8 was changed to include both $(LIBDOVECOT_LUA) (a .la file dep) and $(LUA_LIBS) (raw linker flags: -L/usr/local/lib -llua-5.4 -lm). This append goes into auth_libs, which is used verbatim in auth_DEPENDENCIES. GNU make treats everything in a target's prerequisite list as files to build — it handles -l<name> specially, but -L<path> is taken literally, causing "no rule to make target '-L/usr/local/lib'".
Fix: 1. Strip $(LUA_LIBS) from am__append_8 — leave only $(LIBDOVECOT_LUA) (the actual file dep) 2. Add am__append_10 = $(LUA_LIBS), scoped to plugin mode only (AUTH_LUA_PLUGIN_TRUE && HAVE_LUA_TRUE) — in non-plugin mode, $(LUA_LIBS) is already covered by AUTH_LUA_LDADD 3. Append $(am__append_10) to the five LDADD variables that need it
To apply: patch src/auth/Makefile.in /path/to/patch-src-auth-Makefile.in
Here’s the patch I used that resulted in a clean build:
*** src/auth/Makefile.in.orig --- src/auth/Makefile.in *************** *** 107,111 **** @HAVE_LDAP_TRUE@@LDAP_PLUGIN_TRUE@am__append_6 = libauthdb_ldap.la @HAVE_LDAP_TRUE@@LDAP_PLUGIN_FALSE@am__append_7 = $(LIBDOVECOT_LDAP) - @HAVE_LUA_TRUE@am__append_8 = $(LIBDOVECOT_LUA) $(LUA_LIBS) @AUTH_LUA_PLUGIN_TRUE@am__append_9 = libauthdb_lua.la subdir = src/auth --- 107,112 ---- @HAVE_LDAP_TRUE@@LDAP_PLUGIN_TRUE@am__append_6 = libauthdb_ldap.la @HAVE_LDAP_TRUE@@LDAP_PLUGIN_FALSE@am__append_7 = $(LIBDOVECOT_LDAP) + @HAVE_LUA_TRUE@am__append_8 = $(LIBDOVECOT_LUA) + @AUTH_LUA_PLUGIN_TRUE@@HAVE_LUA_TRUE@am__append_10 = $(LUA_LIBS) @AUTH_LUA_PLUGIN_TRUE@am__append_9 = libauthdb_lua.la subdir = src/auth *************** *** 1119,1123 **** $(am__append_8) auth_CPPFLAGS = $(AM_CPPFLAGS) $(BINARY_CFLAGS) ! auth_LDADD = $(auth_libs) $(LIBDOVECOT) $(AUTH_LIBS) $(BINARY_LDFLAGS) $(AUTH_LUA_LDADD) auth_DEPENDENCIES = $(auth_libs) $(LIBDOVECOT_DEPS) auth_SOURCES = main.c $(auth_common_sources) --- 1120,1124 ---- $(am__append_8) auth_CPPFLAGS = $(AM_CPPFLAGS) $(BINARY_CFLAGS) ! auth_LDADD = $(auth_libs) $(LIBDOVECOT) $(AUTH_LIBS) $(BINARY_LDFLAGS) $(AUTH_LUA_LDADD) $(am__append_10) auth_DEPENDENCIES = $(auth_libs) $(LIBDOVECOT_DEPS) auth_SOURCES = main.c $(auth_common_sources) *************** *** 1230,1234 **** test-main.c
! test_auth_LDADD = $(test_auth_ldadd_plugins) $(LIBDOVECOT) $(auth_libs) $(AUTH_LIBS) test_auth_DEPENDENCIES = $(test_auth_ldadd_plugins) $(pkglibexec_PROGRAMS) $(LIBDOVECOT_DEPS) test_mech_SOURCES = \ --- 1231,1235 ---- test-main.c
! test_auth_LDADD = $(test_auth_ldadd_plugins) $(LIBDOVECOT) $(auth_libs) $(AUTH_LIBS) $(am__append_10) test_auth_DEPENDENCIES = $(test_auth_ldadd_plugins) $(pkglibexec_PROGRAMS) $(LIBDOVECOT_DEPS) test_mech_SOURCES = \ *************** *** 1238,1242 **** test-mech.c
! test_mech_LDADD = $(LIBDOVECOT) $(auth_libs) $(AUTH_LIBS) test_mech_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(LIBDOVECOT_DEPS) test_auth_client_SOURCES = \ --- 1239,1243 ---- test-mech.c
! test_mech_LDADD = $(LIBDOVECOT) $(auth_libs) $(AUTH_LIBS) $(am__append_10) test_mech_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(LIBDOVECOT_DEPS) test_auth_client_SOURCES = \ *************** *** 1246,1250 **** test-auth-client.c
! test_auth_client_LDADD = $(LIBDOVECOT) $(auth_libs) $(AUTH_LIBS) test_auth_client_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(LIBDOVECOT_DEPS) test_auth_master_SOURCES = \ --- 1247,1251 ---- test-auth-client.c
! test_auth_client_LDADD = $(LIBDOVECOT) $(auth_libs) $(AUTH_LIBS) $(am__append_10) test_auth_client_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(LIBDOVECOT_DEPS) test_auth_master_SOURCES = \ *************** *** 1255,1259 **** test-auth-master-server.c
! test_auth_master_LDADD = $(LIBDOVECOT) $(auth_libs) $(AUTH_LIBS) test_auth_master_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(LIBDOVECOT_DEPS) all: all-am --- 1256,1260 ---- test-auth-master-server.c
! test_auth_master_LDADD = $(LIBDOVECOT) $(auth_libs) $(AUTH_LIBS) $(am__append_10) test_auth_master_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(LIBDOVECOT_DEPS) all: all-am
I haven’t tested the binary yet, but at least it did successfully complete the build.
The right fix is to update src/auth/Makefile.am, but perhaps someone more familiar with this can take a look and confirm.
—Jeff
On May 17, 2026, at 19:59, Frank Volf via dovecot <dovecot@dovecot.org> wrote:
Hi,
I'm trying to build dovecot-2.4.4 on FreeBSD 14.4 and I get a strange error message.
What I did is download and extract dovecot-2.4.4.tar.gz and then run ./configure without any arguments. After typing make the build started without any problems until this point:
.... Making all in auth CC test_auth_cache-auth-cache.o CC test_auth_cache-test-auth-cache.o CC auth-main.o CC auth-auth.o CC auth-auth-cache.o CC auth-auth-client-connection.o CC auth-auth-master-connection.o CC auth-auth-policy.o CC auth-auth-penalty.o CC auth-auth-request.o CC auth-auth-request-fields.o CC auth-auth-request-handler.o CC auth-auth-request-var-expand.o CC auth-auth-sasl-mech-apop.o CC auth-auth-sasl-mech-dovecot-token.o CC auth-auth-sasl-mech-oauth2.o CC auth-auth-sasl.o CC auth-auth-settings.o CC auth-auth-fields.o CC auth-auth-token.o CC auth-auth-worker-connection.o CC auth-auth-worker-server.o CC auth-db-oauth2.o CC auth-db-sql.o CC auth-db-passwd-file.o CC auth-passdb.o CC auth-passdb-blocking.o CC auth-passdb-bsdauth.o CC auth-passdb-cache.o CC auth-passdb-oauth2.o CC auth-passdb-passwd.o CC auth-passdb-passwd-file.o CC auth-passdb-pam.o CC auth-passdb-sql.o CC auth-passdb-static.o CC auth-userdb.o CC auth-userdb-blocking.o CC auth-userdb-passwd.o CC auth-userdb-passwd-file.o CC auth-userdb-prefetch.o CC auth-userdb-static.o CC auth-userdb-sql.o CC auth-db-ldap.o CC auth-db-ldap-sasl.o CC auth-db-ldap-settings.o CC auth-passdb-ldap.o CC auth-userdb-ldap.o CC auth-db-lua.o CC auth-passdb-lua.o CC auth-userdb-lua.o make[3]: don't know how to make -L/usr/local/lib. Stop
make[3]: stopped making "all" in /home/volf/dovecot-2.4.4/src/auth *** Error code 1
So, apparently make is confused and thinks that the compiler/linker commandline option is an item to build. I'm at loss how to solve this.
I would appreciate it, if somebody could give me a hint how to solve this.
Kind regards,
Frank _______________________________________________ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
Evening, I ran into the same issue on FreeBSD-14.4. I fixed it by manually removing the offending "-L/usr/local/lib" from the various "*_LIBS = " definitions in src/auth/Makefile. I had claude take a look and here's what it reported:
** Here's the summary of the problem and the fix:
Root cause: In 2.4.4, am__append_8 was changed to include both $(LIBDOVECOT_LUA) (a .la file dep) and $(LUA_LIBS) (raw linker flags:
-L/usr/local/lib -llua-5.4 -lm). This append goes into auth_libs, which is used verbatim in auth_DEPENDENCIES. GNU make treats
everything in a target's prerequisite list as files to build -- it handles -l<name> specially, but -L<path> is taken literally,
causing "no rule to make target '-L/usr/local/lib'".
Fix:
1. Strip $(LUA_LIBS) from am__append_8 -- leave only $(LIBDOVECOT_LUA) (the actual file dep)
2. Add am__append_10 = $(LUA_LIBS), scoped to plugin mode only (AUTH_LUA_PLUGIN_TRUE && HAVE_LUA_TRUE) -- in non-plugin mode,
$(LUA_LIBS) is already covered by AUTH_LUA_LDADD
3. Append $(am__append_10) to the five LDADD variables that need it
To apply: patch src/auth/Makefile.in /path/to/patch-src-auth-Makefile.in
Here's the patch I used that resulted in a clean build:
*** src/auth/Makefile.in.orig
--- src/auth/Makefile.in
***************
*** 107,111 ****
@HAVE_LDAP_TRUE@@LDAP_PLUGIN_TRUE@am__append_6 = libauthdb_ldap.la
@HAVE_LDAP_TRUE@@LDAP_PLUGIN_FALSE@am__append_7 = $(LIBDOVECOT_LDAP)
- @HAVE_LUA_TRUE@am__append_8 = $(LIBDOVECOT_LUA) $(LUA_LIBS)
@AUTH_LUA_PLUGIN_TRUE@am__append_9 = libauthdb_lua.la
subdir = src/auth
--- 107,112 ----
@HAVE_LDAP_TRUE@@LDAP_PLUGIN_TRUE@am__append_6 = libauthdb_ldap.la
@HAVE_LDAP_TRUE@@LDAP_PLUGIN_FALSE@am__append_7 = $(LIBDOVECOT_LDAP)
+ @HAVE_LUA_TRUE@am__append_8 = $(LIBDOVECOT_LUA)
+ @AUTH_LUA_PLUGIN_TRUE@@HAVE_LUA_TRUE@am__append_10 = $(LUA_LIBS)
@AUTH_LUA_PLUGIN_TRUE@am__append_9 = libauthdb_lua.la
subdir = src/auth
***************
*** 1119,1123 ****
$(am__append_8)
auth_CPPFLAGS = $(AM_CPPFLAGS) $(BINARY_CFLAGS)
! auth_LDADD = $(auth_libs) $(LIBDOVECOT) $(AUTH_LIBS) $(BINARY_LDFLAGS) $(AUTH_LUA_LDADD)
auth_DEPENDENCIES = $(auth_libs) $(LIBDOVECOT_DEPS)
auth_SOURCES = main.c $(auth_common_sources)
--- 1120,1124 ----
$(am__append_8)
auth_CPPFLAGS = $(AM_CPPFLAGS) $(BINARY_CFLAGS)
! auth_LDADD = $(auth_libs) $(LIBDOVECOT) $(AUTH_LIBS) $(BINARY_LDFLAGS) $(AUTH_LUA_LDADD) $(am__append_10)
auth_DEPENDENCIES = $(auth_libs) $(LIBDOVECOT_DEPS)
auth_SOURCES = main.c $(auth_common_sources)
***************
*** 1230,1234 ****
test-main.c
! test_auth_LDADD = $(test_auth_ldadd_plugins) $(LIBDOVECOT) $(auth_libs) $(AUTH_LIBS)
test_auth_DEPENDENCIES = $(test_auth_ldadd_plugins) $(pkglibexec_PROGRAMS) $(LIBDOVECOT_DEPS)
test_mech_SOURCES = \
--- 1231,1235 ----
test-main.c
! test_auth_LDADD = $(test_auth_ldadd_plugins) $(LIBDOVECOT) $(auth_libs) $(AUTH_LIBS) $(am__append_10)
test_auth_DEPENDENCIES = $(test_auth_ldadd_plugins) $(pkglibexec_PROGRAMS) $(LIBDOVECOT_DEPS)
test_mech_SOURCES = \
***************
*** 1238,1242 ****
test-mech.c
! test_mech_LDADD = $(LIBDOVECOT) $(auth_libs) $(AUTH_LIBS)
test_mech_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(LIBDOVECOT_DEPS)
test_auth_client_SOURCES = \
--- 1239,1243 ----
test-mech.c
! test_mech_LDADD = $(LIBDOVECOT) $(auth_libs) $(AUTH_LIBS) $(am__append_10)
test_mech_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(LIBDOVECOT_DEPS)
test_auth_client_SOURCES = \
***************
*** 1246,1250 ****
test-auth-client.c
! test_auth_client_LDADD = $(LIBDOVECOT) $(auth_libs) $(AUTH_LIBS)
test_auth_client_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(LIBDOVECOT_DEPS)
test_auth_master_SOURCES = \
--- 1247,1251 ----
test-auth-client.c
! test_auth_client_LDADD = $(LIBDOVECOT) $(auth_libs) $(AUTH_LIBS) $(am__append_10)
test_auth_client_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(LIBDOVECOT_DEPS)
test_auth_master_SOURCES = \
***************
*** 1255,1259 ****
test-auth-master-server.c
! test_auth_master_LDADD = $(LIBDOVECOT) $(auth_libs) $(AUTH_LIBS)
test_auth_master_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(LIBDOVECOT_DEPS)
all: all-am
--- 1256,1260 ----
test-auth-master-server.c
! test_auth_master_LDADD = $(LIBDOVECOT) $(auth_libs) $(AUTH_LIBS) $(am__append_10)
test_auth_master_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(LIBDOVECOT_DEPS)
all: all-am
I haven't tested the binary yet, but at least it did successfully complete the build. The right fix is to update src/auth/Makefile.am, but perhaps someone more familiar with this can take a look and confirm. --Jeff
On May 17, 2026, at 19:59, Frank Volf via dovecot <dovecot@dovecot.org> wrote: Hi,
I'm trying to build dovecot-2.4.4 on FreeBSD 14.4 and I get a strange error message.
What I did is download and extract dovecot-2.4.4.tar.gz and then run ./configure without any arguments. After typing make the build started without any problems until this point:
.... Making all in auth CC test_auth_cache-auth-cache.o CC test_auth_cache-test-auth-cache.o CC auth-main.o CC auth-auth.o CC auth-auth-cache.o CC auth-auth-client-connection.o CC auth-auth-master-connection.o CC auth-auth-policy.o CC auth-auth-penalty.o CC auth-auth-request.o CC auth-auth-request-fields.o CC auth-auth-request-handler.o CC auth-auth-request-var-expand.o CC auth-auth-sasl-mech-apop.o CC auth-auth-sasl-mech-dovecot-token.o CC auth-auth-sasl-mech-oauth2.o CC auth-auth-sasl.o CC auth-auth-settings.o CC auth-auth-fields.o CC auth-auth-token.o CC auth-auth-worker-connection.o CC auth-auth-worker-server.o CC auth-db-oauth2.o CC auth-db-sql.o CC auth-db-passwd-file.o CC auth-passdb.o CC auth-passdb-blocking.o CC auth-passdb-bsdauth.o CC auth-passdb-cache.o CC auth-passdb-oauth2.o CC auth-passdb-passwd.o CC auth-passdb-passwd-file.o CC auth-passdb-pam.o CC auth-passdb-sql.o CC auth-passdb-static.o CC auth-userdb.o CC auth-userdb-blocking.o CC auth-userdb-passwd.o CC auth-userdb-passwd-file.o CC auth-userdb-prefetch.o CC auth-userdb-static.o CC auth-userdb-sql.o CC auth-db-ldap.o CC auth-db-ldap-sasl.o CC auth-db-ldap-settings.o CC auth-passdb-ldap.o CC auth-userdb-ldap.o CC auth-db-lua.o CC auth-passdb-lua.o CC auth-userdb-lua.o make[3]: don't know how to make -L/usr/local/lib. Stop
make[3]: stopped making "all" in /home/volf/dovecot-2.4.4/src/auth *** Error code 1
So, apparently make is confused and thinks that the compiler/linker commandline option is an item to build. I'm at loss how to solve this.
I would appreciate it, if somebody could give me a hint how to solve this.
Kind regards,
Frank _______________________________________________ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org _______________________________________________ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
On 18/05/2026 02:59 EEST Frank Volf via dovecot <dovecot@dovecot.org> wrote:
Hi,
I'm trying to build dovecot-2.4.4 on FreeBSD 14.4 and I get a strange error message.
What I did is download and extract dovecot-2.4.4.tar.gz and then run ./configure without any arguments. After typing make the build started without any problems until this point:
.... Making all in auth CC test_auth_cache-auth-cache.o CC test_auth_cache-test-auth-cache.o CC auth-main.o CC auth-auth.o CC auth-auth-cache.o CC auth-auth-client-connection.o CC auth-auth-master-connection.o CC auth-auth-policy.o CC auth-auth-penalty.o CC auth-auth-request.o CC auth-auth-request-fields.o CC auth-auth-request-handler.o CC auth-auth-request-var-expand.o CC auth-auth-sasl-mech-apop.o CC auth-auth-sasl-mech-dovecot-token.o CC auth-auth-sasl-mech-oauth2.o CC auth-auth-sasl.o CC auth-auth-settings.o CC auth-auth-fields.o CC auth-auth-token.o CC auth-auth-worker-connection.o CC auth-auth-worker-server.o CC auth-db-oauth2.o CC auth-db-sql.o CC auth-db-passwd-file.o CC auth-passdb.o CC auth-passdb-blocking.o CC auth-passdb-bsdauth.o CC auth-passdb-cache.o CC auth-passdb-oauth2.o CC auth-passdb-passwd.o CC auth-passdb-passwd-file.o CC auth-passdb-pam.o CC auth-passdb-sql.o CC auth-passdb-static.o CC auth-userdb.o CC auth-userdb-blocking.o CC auth-userdb-passwd.o CC auth-userdb-passwd-file.o CC auth-userdb-prefetch.o CC auth-userdb-static.o CC auth-userdb-sql.o CC auth-db-ldap.o CC auth-db-ldap-sasl.o CC auth-db-ldap-settings.o CC auth-passdb-ldap.o CC auth-userdb-ldap.o CC auth-db-lua.o CC auth-passdb-lua.o CC auth-userdb-lua.o make[3]: don't know how to make -L/usr/local/lib. Stop make[3]: stopped making "all" in /home/volf/dovecot-2.4.4/src/auth *** Error code 1So, apparently make is confused and thinks that the compiler/linker commandline option is an item to build. I'm at loss how to solve this.
I would appreciate it, if somebody could give me a hint how to solve this.
Kind regards,
Frank
Hi,
I'm trying to build dovecot-2.4.4 on FreeBSD 14.4 and I get a strange error message.
What I did is download and extract dovecot-2.4.4.tar.gz and then run ./configure without any arguments. After typing make the build started without any problems until this point:
.... Making all in auth CC test_auth_cache-auth-cache.o CC test_auth_cache-test-auth-cache.o CC auth-main.o CC auth-auth.o CC auth-auth-cache.o CC auth-auth-client-connection.o CC auth-auth-master-connection.o CC auth-auth-policy.o CC auth-auth-penalty.o CC auth-auth-request.o CC auth-auth-request-fields.o CC auth-auth-request-handler.o CC auth-auth-request-var-expand.o CC auth-auth-sasl-mech-apop.o CC auth-auth-sasl-mech-dovecot-token.o CC auth-auth-sasl-mech-oauth2.o CC auth-auth-sasl.o CC auth-auth-settings.o CC auth-auth-fields.o CC auth-auth-token.o CC auth-auth-worker-connection.o CC auth-auth-worker-server.o CC auth-db-oauth2.o CC auth-db-sql.o CC auth-db-passwd-file.o CC auth-passdb.o CC auth-passdb-blocking.o CC auth-passdb-bsdauth.o CC auth-passdb-cache.o CC auth-passdb-oauth2.o CC auth-passdb-passwd.o CC auth-passdb-passwd-file.o CC auth-passdb-pam.o CC auth-passdb-sql.o CC auth-passdb-static.o CC auth-userdb.o CC auth-userdb-blocking.o CC auth-userdb-passwd.o CC auth-userdb-passwd-file.o CC auth-userdb-prefetch.o CC auth-userdb-static.o CC auth-userdb-sql.o CC auth-db-ldap.o CC auth-db-ldap-sasl.o CC auth-db-ldap-settings.o CC auth-passdb-ldap.o CC auth-userdb-ldap.o CC auth-db-lua.o CC auth-passdb-lua.o CC auth-userdb-lua.o make[3]: don't know how to make -L/usr/local/lib. Stop make[3]: stopped making "all" in /home/volf/dovecot-2.4.4/src/auth *** Error code 1So, apparently make is confused and thinks that the compiler/linker commandline option is an item to build. I'm at loss how to solve this.
I would appreciate it, if somebody could give me a hint how to solve this.
Kind regards,
Frank
Can you run make V=1 please? Shows what's going on.
Aki
On 2026-05-18, Aki Tuomi via dovecot <dovecot@dovecot.org> wrote:
On 18/05/2026 02:59 EEST Frank Volf via dovecot <dovecot@dovecot.org> wrote:
Hi,
I'm trying to build dovecot-2.4.4 on FreeBSD 14.4 and I get a strange error message.
What I did is download and extract dovecot-2.4.4.tar.gz and then run ./configure without any arguments. After typing make the build started without any problems until this point:
.... Making all in auth CC test_auth_cache-auth-cache.o CC test_auth_cache-test-auth-cache.o CC auth-main.o CC auth-auth.o CC auth-auth-cache.o CC auth-auth-client-connection.o CC auth-auth-master-connection.o CC auth-auth-policy.o CC auth-auth-penalty.o CC auth-auth-request.o CC auth-auth-request-fields.o CC auth-auth-request-handler.o CC auth-auth-request-var-expand.o CC auth-auth-sasl-mech-apop.o CC auth-auth-sasl-mech-dovecot-token.o CC auth-auth-sasl-mech-oauth2.o CC auth-auth-sasl.o CC auth-auth-settings.o CC auth-auth-fields.o CC auth-auth-token.o CC auth-auth-worker-connection.o CC auth-auth-worker-server.o CC auth-db-oauth2.o CC auth-db-sql.o CC auth-db-passwd-file.o CC auth-passdb.o CC auth-passdb-blocking.o CC auth-passdb-bsdauth.o CC auth-passdb-cache.o CC auth-passdb-oauth2.o CC auth-passdb-passwd.o CC auth-passdb-passwd-file.o CC auth-passdb-pam.o CC auth-passdb-sql.o CC auth-passdb-static.o CC auth-userdb.o CC auth-userdb-blocking.o CC auth-userdb-passwd.o CC auth-userdb-passwd-file.o CC auth-userdb-prefetch.o CC auth-userdb-static.o CC auth-userdb-sql.o CC auth-db-ldap.o CC auth-db-ldap-sasl.o CC auth-db-ldap-settings.o CC auth-passdb-ldap.o CC auth-userdb-ldap.o CC auth-db-lua.o CC auth-passdb-lua.o CC auth-userdb-lua.o make[3]: don't know how to make -L/usr/local/lib. Stop
make[3]: stopped making "all" in /home/volf/dovecot-2.4.4/src/auth *** Error code 1
So, apparently make is confused and thinks that the compiler/linker commandline option is an item to build. I'm at loss how to solve this.
I would appreciate it, if somebody could give me a hint how to solve this.
Kind regards,
Frank
Hi,
I'm trying to build dovecot-2.4.4 on FreeBSD 14.4 and I get a strange error message.
What I did is download and extract dovecot-2.4.4.tar.gz and then run ./configure without any arguments. After typing make the build started without any problems until this point:
.... Making all in auth CC test_auth_cache-auth-cache.o CC test_auth_cache-test-auth-cache.o CC auth-main.o CC auth-auth.o CC auth-auth-cache.o CC auth-auth-client-connection.o CC auth-auth-master-connection.o CC auth-auth-policy.o CC auth-auth-penalty.o CC auth-auth-request.o CC auth-auth-request-fields.o CC auth-auth-request-handler.o CC auth-auth-request-var-expand.o CC auth-auth-sasl-mech-apop.o CC auth-auth-sasl-mech-dovecot-token.o CC auth-auth-sasl-mech-oauth2.o CC auth-auth-sasl.o CC auth-auth-settings.o CC auth-auth-fields.o CC auth-auth-token.o CC auth-auth-worker-connection.o CC auth-auth-worker-server.o CC auth-db-oauth2.o CC auth-db-sql.o CC auth-db-passwd-file.o CC auth-passdb.o CC auth-passdb-blocking.o CC auth-passdb-bsdauth.o CC auth-passdb-cache.o CC auth-passdb-oauth2.o CC auth-passdb-passwd.o CC auth-passdb-passwd-file.o CC auth-passdb-pam.o CC auth-passdb-sql.o CC auth-passdb-static.o CC auth-userdb.o CC auth-userdb-blocking.o CC auth-userdb-passwd.o CC auth-userdb-passwd-file.o CC auth-userdb-prefetch.o CC auth-userdb-static.o CC auth-userdb-sql.o CC auth-db-ldap.o CC auth-db-ldap-sasl.o CC auth-db-ldap-settings.o CC auth-passdb-ldap.o CC auth-userdb-ldap.o CC auth-db-lua.o CC auth-passdb-lua.o CC auth-userdb-lua.o make[3]: don't know how to make -L/usr/local/lib. Stop
make[3]: stopped making "all" in /home/volf/dovecot-2.4.4/src/auth *** Error code 1
So, apparently make is confused and thinks that the compiler/linker commandline option is an item to build. I'm at loss how to solve this.
I would appreciate it, if somebody could give me a hint how to solve this.
Kind regards,
Frank
Can you run `make V=1` please? Shows what's going on.
it doesn't really help, because this is make trying to build "-L/usr/local/lib" rather than an error coming from a program started by make. With make --debug=basic: Making all in auth GNU Make 4.4.1 Built for x86_64-unknown-openbsd7.9 Copyright (C) 1988-2023 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Reading makefiles... Updating makefiles.... Updating goal targets.... File 'all' does not exist. File 'all-am' does not exist. File 'test-auth-cache' does not exist. File 'auth' does not exist. File '-L/usr/local/lib' does not exist. Must remake target '-L/usr/local/lib'. gmake[3]: Entering directory '/usr/obj/ports/dovecot-2.4.4/build-amd64/src/auth' gmake[3]: *** No rule to make target '-L/usr/local/lib', needed by 'auth'. Stop. gmake[3]: Leaving directory '/usr/obj/ports/dovecot-2.4.4/build-amd64/src/auth' gmake[2]: *** [Makefile:610: all-recursive] Error 1 gmake[2]: Leaving directory '/usr/obj/ports/dovecot-2.4.4/build-amd64/src' gmake[1]: *** [Makefile:740: all-recursive] Error 1 gmake[1]: Leaving directory '/usr/obj/ports/dovecot-2.4.4/build-amd64' gmake: *** [Makefile:582: all] Error 2 This is because, in this: auth_libs = ../lib-auth/libauth-crypt.la $(AUTH_LUA_LIBS) \ $(LIBDOVECOT_SQL) $(am__append_4) $(am__append_7) \ $(am__append_8) am__append_8 includes -L/usr/local/lib as well as library names. It does build if I do this (and libexec/dovecot/auth is still linked to the libraries needed for lua).. Index: src/auth/Makefile.am --- src/auth/Makefile.am.orig +++ src/auth/Makefile.am @@ -200,7 +200,7 @@ endif endif if HAVE_LUA -auth_libs += $(LIBDOVECOT_LUA) $(LUA_LIBS) +auth_libs += $(LIBDOVECOT_LUA) endif if AUTH_LUA_PLUGIN
Hi Stuart, Thanks for the reply, unfortunately it did not work for me, but you provided an excellent hint. If I apply the same change to Makefile.in in src/auth and reconfigure then it works for me: --- Makefile.in.orig 2026-05-12 12:49:15.000000000 +0200 +++ Makefile.in 2026-05-18 15:52:04.839865000 +0200 @@ -106,7 +106,7 @@ @HAVE_LDAP_TRUE@@LDAP_PLUGIN_TRUE@am__append_6 = libauthdb_ldap.la @HAVE_LDAP_TRUE@@LDAP_PLUGIN_FALSE@am__append_7 = $(LIBDOVECOT_LDAP) -@HAVE_LUA_TRUE@am__append_8 = $(LIBDOVECOT_LUA) $(LUA_LIBS) +@HAVE_LUA_TRUE@am__append_8 = $(LIBDOVECOT_LUA) @AUTH_LUA_PLUGIN_TRUE@am__append_9 = libauthdb_lua.la subdir = src/auth ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 The next problem that I'm having that I see many warnings like this: libtool: warning: Linking the shared library libdcrypt_openssl_static.la against the loadable module libtool: warning: libssl_iostream_openssl.so is not portable! or libtool: warning: Linking the shared library lib11_imap_quota_plugin.la against the loadable module libtool: warning: lib10_quota_plugin.so is not portable! and I have no clue, if this is a problem or a concern for me, or that they can be safely ignored. Kind regards, Frank Op 18-5-2026 om 12:48 schreef Stuart Henderson via dovecot:
On 2026-05-18, Aki Tuomi via dovecot<dovecot@dovecot.org> wrote:
On 18/05/2026 02:59 EEST Frank Volf via dovecot<dovecot@dovecot.org> wrote:
Hi,
I'm trying to build dovecot-2.4.4 on FreeBSD 14.4 and I get a strange error message.
What I did is download and extract dovecot-2.4.4.tar.gz and then run ./configure without any arguments. After typing make the build started without any problems until this point:
.... Making all in auth CC test_auth_cache-auth-cache.o CC test_auth_cache-test-auth-cache.o CC auth-main.o CC auth-auth.o CC auth-auth-cache.o CC auth-auth-client-connection.o CC auth-auth-master-connection.o CC auth-auth-policy.o CC auth-auth-penalty.o CC auth-auth-request.o CC auth-auth-request-fields.o CC auth-auth-request-handler.o CC auth-auth-request-var-expand.o CC auth-auth-sasl-mech-apop.o CC auth-auth-sasl-mech-dovecot-token.o CC auth-auth-sasl-mech-oauth2.o CC auth-auth-sasl.o CC auth-auth-settings.o CC auth-auth-fields.o CC auth-auth-token.o CC auth-auth-worker-connection.o CC auth-auth-worker-server.o CC auth-db-oauth2.o CC auth-db-sql.o CC auth-db-passwd-file.o CC auth-passdb.o CC auth-passdb-blocking.o CC auth-passdb-bsdauth.o CC auth-passdb-cache.o CC auth-passdb-oauth2.o CC auth-passdb-passwd.o CC auth-passdb-passwd-file.o CC auth-passdb-pam.o CC auth-passdb-sql.o CC auth-passdb-static.o CC auth-userdb.o CC auth-userdb-blocking.o CC auth-userdb-passwd.o CC auth-userdb-passwd-file.o CC auth-userdb-prefetch.o CC auth-userdb-static.o CC auth-userdb-sql.o CC auth-db-ldap.o CC auth-db-ldap-sasl.o CC auth-db-ldap-settings.o CC auth-passdb-ldap.o CC auth-userdb-ldap.o CC auth-db-lua.o CC auth-passdb-lua.o CC auth-userdb-lua.o make[3]: don't know how to make -L/usr/local/lib. Stop
make[3]: stopped making "all" in /home/volf/dovecot-2.4.4/src/auth *** Error code 1
So, apparently make is confused and thinks that the compiler/linker commandline option is an item to build. I'm at loss how to solve this.
I would appreciate it, if somebody could give me a hint how to solve this.
Kind regards,
Frank
Hi,
I'm trying to build dovecot-2.4.4 on FreeBSD 14.4 and I get a strange error message.
What I did is download and extract dovecot-2.4.4.tar.gz and then run ./configure without any arguments. After typing make the build started without any problems until this point:
.... Making all in auth CC test_auth_cache-auth-cache.o CC test_auth_cache-test-auth-cache.o CC auth-main.o CC auth-auth.o CC auth-auth-cache.o CC auth-auth-client-connection.o CC auth-auth-master-connection.o CC auth-auth-policy.o CC auth-auth-penalty.o CC auth-auth-request.o CC auth-auth-request-fields.o CC auth-auth-request-handler.o CC auth-auth-request-var-expand.o CC auth-auth-sasl-mech-apop.o CC auth-auth-sasl-mech-dovecot-token.o CC auth-auth-sasl-mech-oauth2.o CC auth-auth-sasl.o CC auth-auth-settings.o CC auth-auth-fields.o CC auth-auth-token.o CC auth-auth-worker-connection.o CC auth-auth-worker-server.o CC auth-db-oauth2.o CC auth-db-sql.o CC auth-db-passwd-file.o CC auth-passdb.o CC auth-passdb-blocking.o CC auth-passdb-bsdauth.o CC auth-passdb-cache.o CC auth-passdb-oauth2.o CC auth-passdb-passwd.o CC auth-passdb-passwd-file.o CC auth-passdb-pam.o CC auth-passdb-sql.o CC auth-passdb-static.o CC auth-userdb.o CC auth-userdb-blocking.o CC auth-userdb-passwd.o CC auth-userdb-passwd-file.o CC auth-userdb-prefetch.o CC auth-userdb-static.o CC auth-userdb-sql.o CC auth-db-ldap.o CC auth-db-ldap-sasl.o CC auth-db-ldap-settings.o CC auth-passdb-ldap.o CC auth-userdb-ldap.o CC auth-db-lua.o CC auth-passdb-lua.o CC auth-userdb-lua.o make[3]: don't know how to make -L/usr/local/lib. Stop
make[3]: stopped making "all" in /home/volf/dovecot-2.4.4/src/auth *** Error code 1
So, apparently make is confused and thinks that the compiler/linker commandline option is an item to build. I'm at loss how to solve this.
I would appreciate it, if somebody could give me a hint how to solve this.
Kind regards,
Frank Can you run `make V=1` please? Shows what's going on. it doesn't really help, because this is make trying to build "-L/usr/local/lib" rather than an error coming from a program started by make.
With make --debug=basic:
Making all in auth GNU Make 4.4.1 Built for x86_64-unknown-openbsd7.9 Copyright (C) 1988-2023 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later<https://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Reading makefiles... Updating makefiles.... Updating goal targets.... File 'all' does not exist. File 'all-am' does not exist. File 'test-auth-cache' does not exist. File 'auth' does not exist. File '-L/usr/local/lib' does not exist. Must remake target '-L/usr/local/lib'. gmake[3]: Entering directory '/usr/obj/ports/dovecot-2.4.4/build-amd64/src/auth' gmake[3]: *** No rule to make target '-L/usr/local/lib', needed by 'auth'. Stop. gmake[3]: Leaving directory '/usr/obj/ports/dovecot-2.4.4/build-amd64/src/auth' gmake[2]: *** [Makefile:610: all-recursive] Error 1 gmake[2]: Leaving directory '/usr/obj/ports/dovecot-2.4.4/build-amd64/src' gmake[1]: *** [Makefile:740: all-recursive] Error 1 gmake[1]: Leaving directory '/usr/obj/ports/dovecot-2.4.4/build-amd64' gmake: *** [Makefile:582: all] Error 2
This is because, in this:
auth_libs = ../lib-auth/libauth-crypt.la $(AUTH_LUA_LIBS) \ $(LIBDOVECOT_SQL) $(am__append_4) $(am__append_7) \ $(am__append_8)
am__append_8 includes -L/usr/local/lib as well as library names.
It does build if I do this (and libexec/dovecot/auth is still linked to the libraries needed for lua)..
Index: src/auth/Makefile.am --- src/auth/Makefile.am.orig +++ src/auth/Makefile.am @@ -200,7 +200,7 @@ endif endif
if HAVE_LUA -auth_libs += $(LIBDOVECOT_LUA) $(LUA_LIBS) +auth_libs += $(LIBDOVECOT_LUA) endif
if AUTH_LUA_PLUGIN
_______________________________________________ dovecot mailing list --dovecot@dovecot.org To unsubscribe send an email todovecot-leave@dovecot.org
Hi Stuart, Thanks for the reply, unfortunately it did not work for me, but you provided an excellent hint. If I apply the same change to Makefile.in in src/auth and reconfigure then it works for me: --- Makefile.in.orig 2026-05-12 12:49:15.000000000 +0200 +++ Makefile.in 2026-05-18 15:52:04.839865000 +0200 @@ -106,7 +106,7 @@ @HAVE_LDAP_TRUE@@LDAP_PLUGIN_TRUE@am__append_6 = libauthdb_ldap.la @HAVE_LDAP_TRUE@@LDAP_PLUGIN_FALSE@am__append_7 = $(LIBDOVECOT_LDAP) -@HAVE_LUA_TRUE@am__append_8 = $(LIBDOVECOT_LUA) $(LUA_LIBS) +@HAVE_LUA_TRUE@am__append_8 = $(LIBDOVECOT_LUA) @AUTH_LUA_PLUGIN_TRUE@am__append_9 = libauthdb_lua.la subdir = src/auth ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 The next problem that I'm having that I see many warnings like this: libtool: warning: Linking the shared library libdcrypt_openssl_static.la against the loadable module libtool: warning: libssl_iostream_openssl.so is not portable! or libtool: warning: Linking the shared library lib11_imap_quota_plugin.la against the loadable module libtool: warning: lib10_quota_plugin.so is not portable! and I have no clue, if this is a problem or a concern for me, or that they can be safely ignored. Kind regards, Frank Op 18-5-2026 om 12:48 schreef Stuart Henderson via dovecot: On 2026-05-18, Aki Tuomi via dovecot [1]<dovecot@dovecot.org> wrote: On 18/05/2026 02:59 EEST Frank Volf via dovecot [2]<dovecot@dovecot.org> wrote: Hi, I'm trying to build dovecot-2.4.4 on FreeBSD 14.4 and I get a strange error message. What I did is download and extract dovecot-2.4.4.tar.gz and then run ./configure without any arguments. After typing make the build started without any problems until this point: .... Making all in auth CC test_auth_cache-auth-cache.o CC test_auth_cache-test-auth-cache.o CC auth-main.o CC auth-auth.o CC auth-auth-cache.o CC auth-auth-client-connection.o CC auth-auth-master-connection.o CC auth-auth-policy.o CC auth-auth-penalty.o CC auth-auth-request.o CC auth-auth-request-fields.o CC auth-auth-request-handler.o CC auth-auth-request-var-expand.o CC auth-auth-sasl-mech-apop.o CC auth-auth-sasl-mech-dovecot-token.o CC auth-auth-sasl-mech-oauth2.o CC auth-auth-sasl.o CC auth-auth-settings.o CC auth-auth-fields.o CC auth-auth-token.o CC auth-auth-worker-connection.o CC auth-auth-worker-server.o CC auth-db-oauth2.o CC auth-db-sql.o CC auth-db-passwd-file.o CC auth-passdb.o CC auth-passdb-blocking.o CC auth-passdb-bsdauth.o CC auth-passdb-cache.o CC auth-passdb-oauth2.o CC auth-passdb-passwd.o CC auth-passdb-passwd-file.o CC auth-passdb-pam.o CC auth-passdb-sql.o CC auth-passdb-static.o CC auth-userdb.o CC auth-userdb-blocking.o CC auth-userdb-passwd.o CC auth-userdb-passwd-file.o CC auth-userdb-prefetch.o CC auth-userdb-static.o CC auth-userdb-sql.o CC auth-db-ldap.o CC auth-db-ldap-sasl.o CC auth-db-ldap-settings.o CC auth-passdb-ldap.o CC auth-userdb-ldap.o CC auth-db-lua.o CC auth-passdb-lua.o CC auth-userdb-lua.o make[3]: don't know how to make -L/usr/local/lib. Stop make[3]: stopped making "all" in /home/volf/dovecot-2.4.4/src/auth *** Error code 1 So, apparently make is confused and thinks that the compiler/linker commandline option is an item to build. I'm at loss how to solve this. I would appreciate it, if somebody could give me a hint how to solve this. Kind regards, Frank Hi, I'm trying to build dovecot-2.4.4 on FreeBSD 14.4 and I get a strange error message. What I did is download and extract dovecot-2.4.4.tar.gz and then run ./configure without any arguments. After typing make the build started without any problems until this point: .... Making all in auth CC test_auth_cache-auth-cache.o CC test_auth_cache-test-auth-cache.o CC auth-main.o CC auth-auth.o CC auth-auth-cache.o CC auth-auth-client-connection.o CC auth-auth-master-connection.o CC auth-auth-policy.o CC auth-auth-penalty.o CC auth-auth-request.o CC auth-auth-request-fields.o CC auth-auth-request-handler.o CC auth-auth-request-var-expand.o CC auth-auth-sasl-mech-apop.o CC auth-auth-sasl-mech-dovecot-token.o CC auth-auth-sasl-mech-oauth2.o CC auth-auth-sasl.o CC auth-auth-settings.o CC auth-auth-fields.o CC auth-auth-token.o CC auth-auth-worker-connection.o CC auth-auth-worker-server.o CC auth-db-oauth2.o CC auth-db-sql.o CC auth-db-passwd-file.o CC auth-passdb.o CC auth-passdb-blocking.o CC auth-passdb-bsdauth.o CC auth-passdb-cache.o CC auth-passdb-oauth2.o CC auth-passdb-passwd.o CC auth-passdb-passwd-file.o CC auth-passdb-pam.o CC auth-passdb-sql.o CC auth-passdb-static.o CC auth-userdb.o CC auth-userdb-blocking.o CC auth-userdb-passwd.o CC auth-userdb-passwd-file.o CC auth-userdb-prefetch.o CC auth-userdb-static.o CC auth-userdb-sql.o CC auth-db-ldap.o CC auth-db-ldap-sasl.o CC auth-db-ldap-settings.o CC auth-passdb-ldap.o CC auth-userdb-ldap.o CC auth-db-lua.o CC auth-passdb-lua.o CC auth-userdb-lua.o make[3]: don't know how to make -L/usr/local/lib. Stop make[3]: stopped making "all" in /home/volf/dovecot-2.4.4/src/auth *** Error code 1 So, apparently make is confused and thinks that the compiler/linker commandline option is an item to build. I'm at loss how to solve this. I would appreciate it, if somebody could give me a hint how to solve this. Kind regards, Frank Can you run `make V=1` please? Shows what's going on. it doesn't really help, because this is make trying to build "-L/usr/local/lib" rather than an error coming from a program started by make. With make --debug=basic: Making all in auth GNU Make 4.4.1 Built for x86_64-unknown-openbsd7.9 Copyright (C) 1988-2023 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later [3]<https://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Reading makefiles... Updating makefiles.... Updating goal targets.... File 'all' does not exist. File 'all-am' does not exist. File 'test-auth-cache' does not exist. File 'auth' does not exist. File '-L/usr/local/lib' does not exist. Must remake target '-L/usr/local/lib'. gmake[3]: Entering directory '/usr/obj/ports/dovecot-2.4.4/build-amd64/src/auth' gmake[3]: *** No rule to make target '-L/usr/local/lib', needed by 'auth'. Stop. gmake[3]: Leaving directory '/usr/obj/ports/dovecot-2.4.4/build-amd64/src/auth' gmake[2]: *** [Makefile:610: all-recursive] Error 1 gmake[2]: Leaving directory '/usr/obj/ports/dovecot-2.4.4/build-amd64/src' gmake[1]: *** [Makefile:740: all-recursive] Error 1 gmake[1]: Leaving directory '/usr/obj/ports/dovecot-2.4.4/build-amd64' gmake: *** [Makefile:582: all] Error 2 This is because, in this: auth_libs = ../lib-auth/libauth-crypt.la $(AUTH_LUA_LIBS) \ $(LIBDOVECOT_SQL) $(am__append_4) $(am__append_7) \ $(am__append_8) am__append_8 includes -L/usr/local/lib as well as library names. It does build if I do this (and libexec/dovecot/auth is still linked to the libraries needed for lua).. Index: src/auth/Makefile.am --- src/auth/Makefile.am.orig +++ src/auth/Makefile.am @@ -200,7 +200,7 @@ endif endif if HAVE_LUA -auth_libs += $(LIBDOVECOT_LUA) $(LUA_LIBS) +auth_libs += $(LIBDOVECOT_LUA) endif if AUTH_LUA_PLUGIN _______________________________________________ dovecot mailing list -- [4]dovecot@dovecot.org To unsubscribe send an email to [5]dovecot-leave@dovecot.org References Visible links 1. mailto:dovecot@dovecot.org 2. mailto:dovecot@dovecot.org 3. https://gnu.org/licenses/gpl.html 4. mailto:dovecot@dovecot.org 5. mailto:dovecot-leave@dovecot.org
Frank Volf via dovecot <dovecot@dovecot.org> wrote:
The next problem that I'm having that I see many warnings like this:
libtool: warning: Linking the shared library libdcrypt_openssl_static.la against the loadable module libtool: warning: libssl_iostream_openssl.so is not portable!or
libtool: warning: Linking the shared library lib11_imap_quota_plugin.la against the loadable module libtool: warning: lib10_quota_plugin.so is not portable!and I have no clue, if this is a problem or a concern for me, or that they can be safely ignored.
Just in case that you are unaware of: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286695
I don't know how seriously a mail/dovecot24 port will become persued. Good luck.
Regards, Michael
P.S. I have made the decision to turn my back on Dovecot, though.
On 2026-05-18 9:01, Michael Grimm via dovecot wrote:> Just in case that you are unaware of: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286695> > I don't know how seriously a mail/dovecot24 port will become persued. Good luck.> > Regards,> Michael> > P.S. I have made the decision to turn my back on Dovecot, though. JOOC, what are you switching to from Dovecot?
On 2026-05-18 16:00, Mel P via dovecot wrote:
On 2026-05-18 9:01, Michael Grimm via dovecot wrote:> Just in case that you are unaware of: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286695> > I don't know how seriously a mail/dovecot24 port will become persued. Good luck.> > Regards,> Michael> > P.S. I have made the decision to turn my back on Dovecot, though. JOOC, what are you switching to from Dovecot?
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
Wow that got mangled. Thanks Thunderbird!
Michael, you mentioned turning your back on Dovecot. I'm curious what you're switching to from Dovecot?
Mel P via dovecot <dovecot@dovecot.org> wrote:
Michael, you mentioned turning your back on Dovecot. I'm curious what you're switching to from Dovecot?
First I need to mention, that I ran Dovecot in replication mode for many years in a setup for a handful of users, only. Thus the volume of mails are at the very lower bottom for an IMAP server.
Now, I do run dbmail [1] and thus keep my mails stored in a MariaDB Galera cluster [2]. Between the MUA and dbmail I do run HAProxy as a "surrogate" for Dovecot's now gone director. As my traffic is at the lower end I can afford to direct all IMAP communications to one Galera node, only [3]. During failover situations HAProxy directs traffic to one of the remaining cluster nodes.
This is up running for some month now, and I am very happy with it.
But I know, others "milages may vary", though ;-)
Regards, Michael
[1] https://dbmail.org/en/ [2] 3 nodes, primary-primary replication. This is my "surrogate" for Dovecot's replication. One may replace a third MariaDB node and run garbd for achieving a quorum. [3] This prevents split brain situations
On 2026-05-17 16:59, Frank Volf via dovecot wrote:
Hi, I'm trying to build dovecot-2.4.4 on FreeBSD 14.4 and I get a strange error message.
[...]
make[3]: don't know how to make -L/usr/local/lib. Stop make[3]: stopped making "all" in /home/volf/dovecot-2.4.4/src/auth *** Error code 1
The Dovecot ports use gmake, so you probably need to install and use the GNU bintools (gmake, m4, autoconf, etc.) to build it manually.
Also, the PR Michael Grimm posted contains a skeleton for a Dovecot 2.4 port. You might try that instead.
You definitely want gmake on FreeBSD. Also, I’m not sure if the post I sent made it through or not, but the patch I posted (for src/auth/Makefile.in) allowed me to compile cleanly (other than the "libtool: warning: Linking the shared library […]” warnings).
—Jeff
On May 18, 2026, at 18:59, Mel P via dovecot <dovecot@dovecot.org> wrote:
On 2026-05-17 16:59, Frank Volf via dovecot wrote:
Hi, I'm trying to build dovecot-2.4.4 on FreeBSD 14.4 and I get a strange error message. [...] make[3]: don't know how to make -L/usr/local/lib. Stop make[3]: stopped making "all" in /home/volf/dovecot-2.4.4/src/auth *** Error code 1
The Dovecot ports use gmake, so you probably need to install and use the GNU bintools (gmake, m4, autoconf, etc.) to build it manually.
Also, the PR Michael Grimm posted contains a skeleton for a Dovecot 2.4 port. You might try that instead.
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
Looks like my previous message may still be waiting on moderator approval. After manually hacking at src/auth/Makefile, I had claude take a look:
Here's the summary of the problem and the fix:
Root cause: In 2.4.4, am__append_8 was changed to include both $(LIBDOVECOT_LUA) (a .la file dep) and $(LUA_LIBS) (raw linker flags: -L/usr/local/lib -llua-5.4 -lm). This append goes into auth_libs, which is used verbatim in auth_DEPENDENCIES. GNU make treats everything in a target's prerequisite list as files to build — it handles -l<name> specially, but -L<path> is taken literally, causing "no rule to make target '-L/usr/local/lib'".
Fix:
- Strip $(LUA_LIBS) from am__append_8 — leave only $(LIBDOVECOT_LUA) (the actual file dep)
- Add am__append_10 = $(LUA_LIBS), scoped to plugin mode only (AUTH_LUA_PLUGIN_TRUE && HAVE_LUA_TRUE) — in non-plugin mode, $(LUA_LIBS) is already covered by AUTH_LUA_LDADD
- Append $(am__append_10) to the five LDADD variables that need it
To apply: patch src/auth/Makefile.in /path/to/patch-src-auth-Makefile.in
—Jeff
On May 18, 2026, at 19:46, Jeff Aitken via dovecot <dovecot@dovecot.org> wrote:
You definitely want gmake on FreeBSD. Also, I’m not sure if the post I sent made it through or not, but the patch I posted (for src/auth/Makefile.in) allowed me to compile cleanly (other than the "libtool: warning: Linking the shared library […]” warnings).
—Jeff
On May 18, 2026, at 18:59, Mel P via dovecot <dovecot@dovecot.org> wrote:
On 2026-05-17 16:59, Frank Volf via dovecot wrote:
Hi, I'm trying to build dovecot-2.4.4 on FreeBSD 14.4 and I get a strange error message. [...] make[3]: don't know how to make -L/usr/local/lib. Stop make[3]: stopped making "all" in /home/volf/dovecot-2.4.4/src/auth *** Error code 1
The Dovecot ports use gmake, so you probably need to install and use the GNU bintools (gmake, m4, autoconf, etc.) to build it manually.
Also, the PR Michael Grimm posted contains a skeleton for a Dovecot 2.4 port. You might try that instead.
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
Looks like my previous message may still be waiting on moderator approval. After manually hacking at src/auth/Makefile, I had claude take a look:
Here's the summary of the problem and the fix:
Root cause: In 2.4.4, am__append_8 was changed to include both
$(LIBDOVECOT_LUA) (a .la file dep) and $(LUA_LIBS) (raw linker flags:
-L/usr/local/lib -llua-5.4 -lm). This append goes into auth_libs, which
is used verbatim in auth_DEPENDENCIES. GNU make treats everything in a
target's prerequisite list as files to build -- it handles -l<name>
specially, but -L<path> is taken literally, causing "no rule to make
target '-L/usr/local/lib'".
Fix:
1. Strip $(LUA_LIBS) from am__append_8 -- leave only $(LIBDOVECOT_LUA)
(the actual file dep)
2. Add am__append_10 = $(LUA_LIBS), scoped to plugin mode only
(AUTH_LUA_PLUGIN_TRUE && HAVE_LUA_TRUE) -- in non-plugin mode,
$(LUA_LIBS) is already covered by AUTH_LUA_LDADD
3. Append $(am__append_10) to the five LDADD variables that need it
To apply: patch src/auth/Makefile.in
/path/to/patch-src-auth-Makefile.in
--Jeff
On May 18, 2026, at 19:46, Jeff Aitken via dovecot <dovecot@dovecot.org>
wrote:
You definitely want gmake on FreeBSD. Also, I'm not sure if the post I
sent made it through or not, but the patch I posted (for
src/auth/Makefile.in) allowed me to compile cleanly (other than the
"libtool: warning: Linking the shared library [...]" warnings).
--Jeff
On May 18, 2026, at 18:59, Mel P via dovecot <dovecot@dovecot.org>
wrote:
On 2026-05-17 16:59, Frank Volf via dovecot wrote:
Hi,
I'm trying to build dovecot-2.4.4 on FreeBSD 14.4 and I get a
strange
error message.
[...]
make[3]: don't know how to make -L/usr/local/lib. Stop
make[3]: stopped making "all" in
/home/volf/dovecot-2.4.4/src/auth
*** Error code 1
The Dovecot ports use gmake, so you probably need to install and use
the GNU bintools (gmake, m4, autoconf, etc.) to build it manually.
Also, the PR Michael Grimm posted contains a skeleton for a Dovecot
2.4 port. You might try that instead.
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-leave@dovecot.org
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-leave@dovecot.org
Doh! Forgot to include the patch. See attached. I haven’t tested the binary yet, but at least it did successfully complete the build.
—Jeff
On 2026-05-19, Jeff Aitken via dovecot <dovecot@dovecot.org> wrote:
Looks like my previous message may still be waiting on moderator = approval. After manually hacking at src/auth/Makefile, I had claude = take a look:
Here's the summary of the problem and the fix:
those things need so much babysitting to get results that aren't just nonsense.
Root cause: In 2.4.4, am__append_8 was changed to include both = $(LIBDOVECOT_LUA) (a .la file dep) and $(LUA_LIBS) (raw linker flags: =
clearly not the *root* cause, because Makefile.in is a generated file. Any actual fix (rather than a quick hack to make it build on one system) needs to be done in Makefile.am (then the automake/autoconf files regenerated).
the Makefile.am diff I sent does that, but the tricky bit is identifying whether it breaks something else in the meantime.
participants (6)
-
Aki Tuomi
-
Frank Volf
-
Jeff Aitken
-
Mel P
-
Michael Grimm
-
Stuart Henderson