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

Build problems in 2.1.14 under Win/Cygwin (ITS#2340)

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

This is really a continuation of 2334 (which I submitted earlier this week).

Again, using OpenLDAP 2.1.14, I am unable to build using Cygwin and either of
Win 2K or Win XP Pro.

Again, the issue is that <sys/uio.h> needs to be included in
libraries/liblutil/getpeereid.c and libraries/libldap/os-local.c

The solution was the same as before - including <sys/uio.h> when needed, and
patching include/portable.h to define it.  Here's the patch for getpeereid.c:

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

Here's the patch for os-local.c:

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

Finally, I added:

#define HAVE_SYS_UIO_H 1

to portable.h by hand.  I still don't know HOW to make/fix the configure
process, so I leave that to you guys.  I've done the hard stuff - identifying
the issue, the cause, and implementing 2/3 of the total fix...

Thanks, Matt