On Tuesday 24 February 2009, Husna Bte Mad Baguri wrote:
Can someone help me,i counter this error when try to
install ldap in
kamailio
Compiling ldap_api_fn.c
gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall
-minline-all-stringops -falign-loops -ftree-vectorize -mtune=prescott
-Wold-style-definition -Wmissing-field-initializers -Wredundant-decls
-DMOD_NAME='"ldap"' -DNAME='"kamailio"'
-DVERSION='"1.4.3-notls"'
-DARCH='"i386"' -DOS='"linux"'
-DCOMPILER='"gcc 4.3.2"' -D__CPU_i386
-D__OS_linux -D__SMP_yes -DCFG_DIR='"/usr/local/etc/kamailio/"'
-DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP
-DDISABLE_NAGLE -DHAVE_RESOLV_RES -DSTATISTICS -DCHANGEABLE_DEBUG_LEVEL
-DF_MALLOC -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024
-DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD
-DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM
-DHAVE_EPOLL -DHAVE_SIGIO_RT -DHAVE_SELECT -I/usr/local/include -c
ldap_api_fn.c -o ldap_api_fn.o ldap_api_fn.c:38:18: error: ldap.h: No such
file or directory
In file included from ldap_api_fn.c:40:
Hi Husna,
you need to install the openldap-devel depencies, that provide this header.
Its also stated in the documentation:
http://www.kamailio.org/docs/modules/devel/ldap.html#id2469903
If you use a debian system, the package is called libldap2-dev.
Cheers,
Henning