<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:\5B8B\4F53;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@\5B8B\4F53";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-AU link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>Hi,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I have error when run make all to compile OpenSIPs from a
Redhat machine. I include LDAP module which returns error.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>$ make all<o:p></o:p></p>
<p class=MsoNormal>…..<o:p></o:p></p>
<p class=MsoNormal>make[1]: Entering directory
`/home/lli/opensips-1.5.1-tls/modules/ldap'<o:p></o:p></p>
<p class=MsoNormal>make[1]: Leaving directory
`/home/lli/opensips-1.5.1-tls/modules/ldap'<o:p></o:p></p>
<p class=MsoNormal>make[1]: Entering directory
`/home/lli/opensips-1.5.1-tls/modules/ldap'<o:p></o:p></p>
<p class=MsoNormal>Compiling iniparser.c<o:p></o:p></p>
<p class=MsoNormal>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<o:p></o:p></p>
<p class=MsoNormal>Compiling ldap_api_fn.c<o:p></o:p></p>
<p class=MsoNormal>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<o:p></o:p></p>
<p class=MsoNormal>In file included from ldap_api_fn.c:40:<o:p></o:p></p>
<p class=MsoNormal>ldap_api_fn.h:57: conflicting types for `ldap_url_search'<o:p></o:p></p>
<p class=MsoNormal>/usr/include/ldap.h:1523: previous declaration of
`ldap_url_search'<o:p></o:p></p>
<p class=MsoNormal>make[1]: *** [ldap_api_fn.o] Error 1<o:p></o:p></p>
<p class=MsoNormal>make[1]: Leaving directory
`/home/lli/opensips-1.5.1-tls/modules/ldap'<o:p></o:p></p>
<p class=MsoNormal>make: *** [modules] Error 2<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Anyone can help?<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Thanks<o:p></o:p></p>
<p class=MsoNormal>Leon<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>