delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/10/22/12:45:21

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <jason AT tishler DOT net>
To: Carlos de Sousa <Carlos DOT de_Sousa AT ebc DOT ericsson DOT se>
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 <Carlos DOT de_Sousa AT ebc DOT ericsson DOT se>,
cygwin AT cygwin DOT com
Mime-Version: 1.0
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 <stdio.h>
+#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--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019