As reported in debian bug #554306 [1] dovecot fails to build with GNU binutils-gold or setting LDFLAGS=-Wl,--no-add-needed

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=554306

The problem is that liblber isn't explicitly declared as a dependence when dovecot is compiled with ldap support.

The attached patch fixes this little error.

Regards,
Marco

--
---------------------------------------------------------------------
|    Marco Nenciarini    | Debian/GNU Linux Developer - Plug Member |
| [email protected] | http://www.prato.linux.it/~mnencia       |
---------------------------------------------------------------------
Key fingerprint = FED9 69C7 9E67 21F5 7D95  5270 6864 730D F095 E5E4

Index: dovecot-1.2.8/configure.in
===================================================================
--- dovecot-1.2.8.orig/configure.in	2009-11-27 13:38:40.508216120 +0100
+++ dovecot-1.2.8/configure.in	2009-11-27 13:55:23.623513021 +0100
@@ -1897,7 +1897,7 @@
 			AC_CHECK_LIB(ldap, ldap_start_tls_s, [
 				AC_DEFINE(LDAP_HAVE_START_TLS_S,, Define if you have ldap_start_tls_s)
 			])
-			LDAP_LIBS=-lldap
+			LDAP_LIBS="-lldap -llber"
 			AC_SUBST(LDAP_LIBS)
 			if test $want_ldap != plugin; then
 				AUTH_LIBS="$AUTH_LIBS $LDAP_LIBS"

Reply via email to