[Dovecot] Configure Dovecot with LDAP
Dear All
I encountered some problem while i tried to configure Dovecot with LDAP.
configuration directory: /usr/local/src/dovecot-1.0.beta8
configure command: ./configure CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib --with-ldap
/usr/local/include# ls -F lber.h lber_types.h ldap.h ldap_cdefs.h ldap_features.h ldap_schema.h ldap_utf8.h openssl/ slapi-plugin.h
/usr/local/lib# ls *.a libcrypto.a liblber.a libldap.a libldap_r.a libssl.a
My configure output: Install prefix ...................... : /usr/local File offsets ........................ : 64bit I/O loop method ..................... : poll File change notification method ..... : dnotify Building with SSL support ........... : no Building with IPv6 support .......... : yes Building with pop3 server ........... : yes Building with GSSAPI support ........ : no Building with user database modules . : static prefetch passwd passwd-file checkpassword (modules) Building with password lookup modules : passwd passwd-file shadow pam checkpassword (modules) Building with SQL drivers ............:
It does not seem to have LDAP configured.
Did i miss out something on the configure options? or is there any PATH that i need to specify?
Hope to hear from you soon!
Thanking in advance.
Joshua
On Jun 26, 2006, at 11:42 AM, hpmysql wrote:
configure command: ./configure CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib
--with-ldap
I don't think that works? The way I always do it is:
CPPFLAGS=... LDFLAGS=... ./configure --with-ldap
If that doesn't help check config.log for the exact error messages.
Thanks all for the prompt response!
I guess the sequence should not matter.
anyway, i removed the CPPFLAGS and LDFLAGS, using only
./configure --with-ldap
The configure output:
Install prefix ...................... : /usr/local File offsets ........................ : 64bit I/O loop method ..................... : poll File change notification method ..... : dnotify Building with SSL support ........... : yes (OpenSSL)
Building with IPv6 support .......... : yes Building with pop3 server ........... : yes Building with GSSAPI support ........ : no Building with user database modules . : static prefetch passwd passwd-file checkpassword (modules) Building with password lookup modules : passwd passwd-file shadow pam checkpassword (modules) Building with SQL drivers ............:
Relevant Entry for LDAP:
configure:28972: checking for ldap_init in -lldap
configure:29002: gcc -o conftest -std=gnu99 -g -O2 -Wall -W
-Wmissing-prototypes -Wmissing-declarations -Wpointer-arith
-Wchar-subscripts -Wformat=2 -Wbad-function-cast conftest.c -lldap >&5
/usr/local/lib/libldap.so: undefined reference to dlerror' /usr/local/lib/libldap.so: undefined reference to
dlclose'
/usr/local/lib/libldap.so: undefined reference to dlopen' /usr/local/lib/libldap.so: undefined reference to
dlsym'
collect2: ld returned 1 exit status
configure:29008: $? = 1
ac_cv_lib_ldap_ldap_init=no
On 6/26/06, Timo Sirainen tss@iki.fi wrote:
On Jun 26, 2006, at 11:42 AM, hpmysql wrote:
configure command: ./configure CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib --with-ldap
I don't think that works? The way I always do it is:
CPPFLAGS=... LDFLAGS=... ./configure --with-ldap
If that doesn't help check config.log for the exact error messages.
On Mon, 2006-06-26 at 17:06 +0800, hpmysql wrote:
/usr/local/lib/libldap.so: undefined reference to
dlerror' /usr/local/lib/libldap.so: undefined reference to
dlclose' /usr/local/lib/libldap.so: undefined reference todlopen' /usr/local/lib/libldap.so: undefined reference to
dlsym'
Ah. This problem. I think it should include -ldl automatically, but since it doesn't, use LIBS=-ldl environment for now.
Hi, Tim
Thanks for your help.
Although i managed to solve the problem by installing cyrus-sasl package and recompiling openldap before i see your reply.
But i will try your method on the 1.0beta9.
On 6/26/06, Timo Sirainen tss@iki.fi wrote:
On Mon, 2006-06-26 at 17:06 +0800, hpmysql wrote:
/usr/local/lib/libldap.so: undefined reference to
dlerror' /usr/local/lib/libldap.so: undefined reference to
dlclose' /usr/local/lib/libldap.so: undefined reference todlopen' /usr/local/lib/libldap.so: undefined reference to
dlsym'Ah. This problem. I think it should include -ldl automatically, but since it doesn't, use LIBS=-ldl environment for now.
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQBEn71NQ95cgkr2Z40RAt8gAJ0VXq+LG3ndORF6sMJTqBe+ETmuvwCfQIyc 52nrl9XM4aGgZDySqNfgHZA= =C8El -----END PGP SIGNATURE-----
participants (2)
-
hpmysql
-
Timo Sirainen