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

RE: OpenLDAP on cygwin....again



i saw the same problem building 2.0.15 in visual C++..
i fixed this by including stdio.h in slap.h
this should take care of the build.


-----------------------

/* slap.h - stand alone ldap server include file */
/* $OpenLDAP: pkg/ldap/servers/slapd/slap.h,v 1.86.2.27 2001/09/18 16:52:58
kurt Exp $ */
/*
 * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
 */

#ifndef _SLAP_H_
#define _SLAP_H_

#include "ldap_defaults.h"
#include <stdio.h>            <---------- add this line

#include <ac/stdlib.h>

#include <sys/types.h>
#include <ac/syslog.h>
#include <ac/regex.h>
#include <ac/socket.h>
#include <ac/time.h>
#include <ac/param.h>

#include "avl.h"

.....

-----Original Message-----
From: Edward Khoo [mailto:edwardkkb@cheerful.com]
Sent: Thursday, October 18, 2001 2:10 PM
To: Maria del Rocío Walias Marcos
Cc: openldap-software@OpenLDAP.org
Subject: Re: OpenLDAP on cygwin....again


I am trying to get the "stable" version 2.0.15 working.

For 2.0.11, did you follow the Faq-O-Matic's recommended way -- install
gnu-regex first?
Did you install any other GNU package? or did you just compiled the src
using Visual C++/ Win API?

:-) Thank you for replying.

-----Original Message-----
From: Maria del Rocío Walias Marcos <mrwm@tid.es>
To: Edward Khoo <edwardkkb@cheerful.com>
Cc: openldap-software@OpenLDAP.org <openldap-software@OpenLDAP.org>
Date: Thursday, October 18, 2001 11:16 PM
Subject: 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
>