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

Build Problems for 2.1.13 with Win2K/Cygwin (ITS#2333)



Full_Name: Matt Heitker
Version: 2.1.13
OS: Win 2K/Cygwin
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (161.11.133.50)


I run OpenLDAP on Win2K using Cygwin.  I was able to get 2.1.12 compiled and
running wonderfully without changes!!!

When I downloaded 2.1.13 and tried to build it, it had problems with
liblutil/getpeereid.c and libldap/os-local.c.

Both were looking for a definition of "struct iovec", which was not found.

I did some fishing in Cygwin, and discovered that "struct iovec" was defined in
<sys/uio.h>.

So, I added these lines to both files:

#ifdef HAVE_SYS_UIO_H
#include <sys/uio.h>
#endif

and I added the following definition to include/portable.h:

#define HAVE_SYS_UIO_H 1

At that point, 2.1.13 built (and also runs).

I don't know how to fix the configure script, so I thought I'd just describe
what I did to get things to compile and work with Win2K/Cygwin.

Thanks, Matt