After adding /opt/homebrew/opt/openldap/{include,lib} to CFLAGS and LDFLAGS in 
my configure invocation, the build finally succeeded. :-)

For posterity, here are the final build invocations that worked for me on MacOS 
14.6.1 with Xcode 16.0:

$ ./autogen.sh
$ CFLAGS="-I/opt/homebrew/include -I/opt/homebrew/opt/openldap/include" 
LDFLAGS="-L/opt/homebrew/lib -L/opt/homebrew/opt/openldap/lib" ./configure 
--prefix=/opt/homebrew --with-bzlib --with-ldap --with-mysql --with-pam 
--with-sqlite --without-icu
$ PATH="/opt/homebrew/opt/bison/bin:$PATH" make
$

along with the following diffs:

$ git diff src
diff --git a/src/lib-http/http-server.h b/src/lib-http/http-server.h
index 91412b570b..c27170777a 100644
--- a/src/lib-http/http-server.h
+++ b/src/lib-http/http-server.h
@@ -49,8 +49,8 @@ struct http_server_settings {
        /* The kernel send/receive buffer sizes used for the connection sockets.
           Configuring this is mainly useful for the test suite. The kernel
           defaults are used when these settings are 0. */
-       size_t socket_send_buffer_size;
-       size_t socket_recv_buffer_size;
+       uoff_t socket_send_buffer_size;
+       uoff_t socket_recv_buffer_size;
 };
 
 
diff --git a/src/lib-var-expand-crypt/Makefile.am 
b/src/lib-var-expand-crypt/Makefile.am
index 8f829bcc02..ff5b83f22c 100644
--- a/src/lib-var-expand-crypt/Makefile.am
+++ b/src/lib-var-expand-crypt/Makefile.am
@@ -9,6 +9,8 @@ AM_CPPFLAGS = \
 var_expand_crypt_la_SOURCES = \
        var-expand-crypt.c
 
+# Add in missing link-time library dependency references.
+var_expand_crypt_la_LIBADD = ../lib/liblib.la ../lib-dcrypt/libdcrypt.la 
../lib-var-expand/libvar_expand.la ../lib-json/libjson.la
 var_expand_crypt_la_LDFLAGS = $(MODULE_LIBS) -avoid-version -module
 
 pkginc_libdir=$(pkgincludedir)
$

Note that there were *three* library dependencies missing from 
src/lib-var-expand-crypt (see the above diff):
 - dcrypt
 - var-expand
 - json
_______________________________________________
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to