[OpenSIPS-Users] error complie LDAP modules

Leon Li Leon.Li at aarnet.edu.au
Mon May 25 03:14:42 CEST 2009


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

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20090525/c707173c/attachment.htm 


More information about the Users mailing list