[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: OpenLDAP on cygwin....again



I have the same problem when I compile OpenLDAP 2.0.15 with Visual C++ but not
with 2.0.11

R

Edward Khoo wrote:

> Hi folks,
>
> I am trying to get OpenLDAP running on my Win2000 box running cygwin.
>
> I tried the 'formula' mentioned in your FAQ-O-matic, and it has brought me
> to the make.
> However, during make, I encountered the below problem:
>
> gcc -g -O2 -I../../include -I../../include   -I/usr/local/include     -c
> -o mod
> .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 `/home/Edward/openldap-2.0.15/servers/slapd'
> make[1]: *** [all-common] Error 1
> make[1]: Leaving directory `/home/Edward/openldap-2.0.15/servers'
> make: *** [all-common] Error 1
>
> I am using the latest (for cygwin) gcc, GnuPth and GnuRegex.
> Somehow, there is a problem with ldif.h:71 and proto-slap.h:391, 392.
> I have taken a look at the two files and could not understand why make is
> having problem.
> I have looked around the net via google but still did not see any potential
> solution to the above problem.
>
> Any help would be appreciated. Thank you.
>
> Best regards,
> Edward