Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Mon, 22 Oct 2001 12:46:59 -0400 From: Jason Tishler To: Carlos de Sousa Cc: cygwin AT cygwin DOT com Subject: Re: Build OpenLDAP 2.0.15 Message-ID: <20011022124659.A1784@dothill.com> Mail-Followup-To: Carlos de Sousa , cygwin AT cygwin DOT com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="jxAENFC8g5wqF7jP" Content-Disposition: inline In-Reply-To: <3BD1392D.F9E39FC6@ebc.ericsson.se> User-Agent: Mutt/1.3.18i --jxAENFC8g5wqF7jP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Carlos, On Sat, Oct 20, 2001 at 10:43:25AM +0200, Carlos de Sousa wrote: > I'm having problems building OpenLDAP 2.0.15 on cygwin 1.3.2-1 > > gcc -g -O2 -I../../include -I../../include -c -o mods.o mods.c > In file included from slap.h:35, > from mods.c:19: > ../../include/ldif.h:71: parse error before `*' > In file included from slap.h:1203, > from mods.c:19: > proto-slap.h:391: parse error before `*' > proto-slap.h:391: parse error before `FILE' > proto-slap.h:391: warning: data definition has no type or storage class > proto-slap.h:392: parse error before `*' > make[2]: *** [mods.o] Error 1 > make[2]: Leaving directory `/usr/local/src/openldap-2.0.15/servers/slapd' > make[1]: *** [all-common] Error 1 > make[1]: Leaving directory `/usr/local/src/openldap-2.0.15/servers' > make: *** [all-common] Error 1 > > Any ideas? Try the attached patch. I'm not sure if the servers/slapd/mods.c hunk is handled the best way, but nevertheless the entire OpenLDAP distribution builds cleanly under Cygwin now. I haven't tested the server portions yet so YMMV... Jason --jxAENFC8g5wqF7jP Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="openldap.patch" diff -rup openldap-2.0.15.orig/include/ldbm.h openldap-2.0.15/include/ldbm.h --- openldap-2.0.15.orig/include/ldbm.h Thu Jul 26 19:55:05 2001 +++ openldap-2.0.15/include/ldbm.h Mon Oct 22 12:04:56 2001 @@ -127,7 +127,9 @@ typedef datum Datum; typedef Datum LDBMCursor; typedef GDBM_FILE LDBM; +#ifndef __CYGWIN__ extern gdbm_error gdbm_errno; +#endif LDAP_END_DECL diff -rup openldap-2.0.15.orig/servers/slapd/mods.c openldap-2.0.15/servers/slapd/mods.c --- openldap-2.0.15.orig/servers/slapd/mods.c Sat Jul 21 22:28:28 2001 +++ openldap-2.0.15/servers/slapd/mods.c Mon Oct 22 12:05:40 2001 @@ -14,6 +14,9 @@ * is provided ``as is'' without express or implied warranty. */ +#ifdef __CYGWIN__ +#include +#endif #include "portable.h" #include "slap.h" --jxAENFC8g5wqF7jP Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ --jxAENFC8g5wqF7jP--