OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
-DHAS_LDAP compile problems

From: Adam Clark (adam.clarkngv.vic.gov.au)
Date: Mon Apr 05 2004 - 00:52:03 CDT


compileing openldap-2.2.8 with the following:
CPPFLAGS="-I/usr/local/include -I/usr/local/BerkeleyDB.4.2/include
-I/usr/local/ssl/include" LDFLAGS="-L/usr/local/lib
-L/usr/local/BerkeleyDB.4.2/lib -L/usr/local/ssl/lib" ./configure
--without-cyrus-sasl
 
I configured postfix with:
make makefiles CCARGS="-DHAS_DB -DHAS_LDAP
-I/usr/local/BerkeleyDB.4.2/include"
AUXLIBS="-L/usr/local/BerkeleyDB.4.2/lib -lpthread -lldap -llber"
 
I get:
gcc -Wmissing-prototypes -Wformat -DHAS_DB -DHAS_LDAP
-I/usr/local/BerkeleyDB.4.2/include -DHAS_PCRE -I/usr/local/include -g
-O -I. -I../../include -DLINUX2 -o error error.o ../../lib/libmaster.a
../../lib/libglobal.a ../../lib/libutil.a
-L/usr/local/BerkeleyDB.4.2/lib -lpthread -lldap -llber -L/usr/local/lib
-lpcre -ldb -lnsl -lresolv
../../lib/libutil.a(dict_ldap.o)(.text+0x3ae): In function
`dict_ldap_connect':
/root/postfix/postfix-2.0.19/src/util/dict_ldap.c:405: undefined
reference to `ldap_enable_cache'
collect2: ld returned 1 exit status
gmake: *** [error] Error 1
gmake: *** [update] Error 1

I've been reading that openldap has removed that function completely.
Any ideas?
 
Adam Clark
 
Network Administrator
National Gallery of Victoria