[OpenSIPS-Users] error complie LDAP modules

Bogdan-Andrei Iancu bogdan at voice-system.ro
Mon May 25 13:18:13 CEST 2009


Hi Leon,

what version of libldap2-dev do you have on your system ? Is the 
"/usr/include/ldap.h" file part of that package ?

Regards,
Bogdan

Leon Li wrote:
>
> Hi,
>
> I have error when run make all to compile OpenSIPs from a Redhat 
> machine. I include LDAP module which returns error.
>
> $ make all
>
> …..
>
> make[1]: Entering directory `/home/lli/opensips-1.5.1-tls/modules/ldap'
>
> make[1]: Leaving directory `/home/lli/opensips-1.5.1-tls/modules/ldap'
>
> make[1]: Entering directory `/home/lli/opensips-1.5.1-tls/modules/ldap'
>
> Compiling iniparser.c
>
> gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall 
> -minline-all-stringops -falign-loops -mcpu=pentium4 
> -DMOD_NAME='"ldap"' -DNAME='"opensips"' -DVERSION='"1.5.1-notls"' 
> -DARCH='"i386"' -DOS='"linux"' -DCOMPILER='"gcc 3.2.3"' -D__CPU_i386 
> -D__OS_linux -D__SMP_yes -DCFG_DIR='"/usr/local/etc/opensips/"' 
> -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_SIGIO_RT -DHAVE_SELECT -c 
> iniparser.c -o iniparser.o
>
> Compiling ldap_api_fn.c
>
> gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall 
> -minline-all-stringops -falign-loops -mcpu=pentium4 
> -DMOD_NAME='"ldap"' -DNAME='"opensips"' -DVERSION='"1.5.1-notls"' 
> -DARCH='"i386"' -DOS='"linux"' -DCOMPILER='"gcc 3.2.3"' -D__CPU_i386 
> -D__OS_linux -D__SMP_yes -DCFG_DIR='"/usr/local/etc/opensips/"' 
> -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_SIGIO_RT -DHAVE_SELECT -c 
> ldap_api_fn.c -o ldap_api_fn.o
>
> In file included from ldap_api_fn.c:40:
>
> ldap_api_fn.h:57: conflicting types for `ldap_url_search'
>
> /usr/include/ldap.h:1523: previous declaration of `ldap_url_search'
>
> make[1]: *** [ldap_api_fn.o] Error 1
>
> make[1]: Leaving directory `/home/lli/opensips-1.5.1-tls/modules/ldap'
>
> make: *** [modules] Error 2
>
> Anyone can help?
>
> Thanks
>
> Leon
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   




More information about the Users mailing list