3 messages in net.sourceforge.lists.courier-sqwebmail[sqwebmail] Re: Error compiling 5.1.0
FromSent OnAttachments
Stephane Bouvard [ML]Mar 5, 2006 6:17 am 
Sam VarshavchikMar 5, 2006 5:23 pm 
Sam VarshavchikMar 6, 2006 3:51 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[sqwebmail] Re: Error compiling 5.1.0Actions...
From:Sam Varshavchik (mrs@courier-mta.com)
Date:Mar 6, 2006 3:51:45 am
List:net.sourceforge.lists.courier-sqwebmail

Stephane Bouvard [ML] writes:

Hi,

,- - [ Le lundi 6 mars 2006 vers 2:24 Sam Varshavchik écrivait: ] - - |

On a server with openldap-2.0.27, i receive the following error :

checking ldap.h usability... yes checking ldap.h presence... yes checking for ldap.h... yes configure: error: ldap.h header found, but a test compile failed -- check
ldapaddressbook/config.log for more details

Now, try 5.1.1

This ldap.h problem seems to be fixed with the 5.1.1, but i still receive the other error :

Compiling ldaplist.c ldaplist.c: In function `doldapsearch': ldaplist.c:274: parse error before `struct' ldaplist.c:276: `createInfo' undeclared (first use in this function) ldaplist.c:276: (Each undeclared identifier is reported only once ldaplist.c:276: for each function it appears in.) ldaplist.c:276: warning: value computed is not used make[4]: *** [ldaplist.o] Erreur 1

Ah, you're using a compiler other than gcc. There's an unintended gcc-ism that snuck in here, and nobody noticed it.

You'll need to apply the following patch to sqwebmail/ldaplist.c, temporarily:

diff -U3 -r1.13 ldaplist.c --- ldaplist.c 5 Feb 2006 20:39:53 -0000 1.13 +++ ldaplist.c 6 Mar 2006 11:50:18 -0000 @@ -261,6 +261,7 @@ { char *tmpname=0; struct search_info si; + struct maildir_tmpcreate_info createInfo;

pref_setldap(ptr->name); printf("<pre>"); @@ -271,8 +272,6 @@ si.errmsgbuf[0]=0; si.counter=0;

- struct maildir_tmpcreate_info createInfo; - maildir_tmpcreate_init(&createInfo); createInfo.uniq="ldap"; createInfo.doordie=1;