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
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"
-- 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/