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.