[OpenSIPS-Users] error complie LDAP modules
Leon Li
Leon.Li at aarnet.edu.au
Wed May 27 01:16:16 CEST 2009
Hi Bogdan,
Please see the enclosed ldap.h file.
Thanks
Leon
-----Original Message-----
From: Bogdan-Andrei Iancu [mailto:bogdan at voice-system.ro]
Sent: Wednesday, 27 May 2009 1:10 AM
To: Leon Li
Cc: users at lists.opensips.org
Subject: Re: [OpenSIPS-Users] error complie LDAP modules
Hi Leon,
Could you send me your /usr/include/ldap.h file ?
Regards,
Bogdan
Leon Li wrote:
> Hi Bogdan,
>
> I think it is 2.0.27.
>
> Looking in Installed Packages:
> Name : openldap
> Arch : i386
> Version: 2.0.27
> Release: 23
> Size : 1.15 MB
> Group : System Environment/Daemons
> Repo : Locally Installed
> Summary: The configuration files, libraries, and documentation for
> OpenLDAP.
>
> Also, there is "/usr/include/ldap.h" in the system already.
>
> Thanks,
> Leon
>
>
> -----Original Message-----
> From: Bogdan-Andrei Iancu [mailto:bogdan at voice-system.ro]
> Sent: Monday, 25 May 2009 9:18 PM
> To: Leon Li
> Cc: users at lists.opensips.org
> Subject: Re: [OpenSIPS-Users] error complie LDAP modules
>
> 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
>>
>>
>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ldap.h
Type: application/octet-stream
Size: 40129 bytes
Desc: ldap.h
Url : http://lists.opensips.org/pipermail/users/attachments/20090527/a17c6486/attachment-0001.obj
More information about the Users
mailing list