Unfortunately this is for a government contract project and we are being mandated to use windows and not a containerized environment. Docker for windows was also booted.
I have MSYS installed, as well as latest openldap source.
-----Original Message----- From: Howard Chu hyc@symas.com Sent: Thursday, February 17, 2022 6:06 PM To: Dr. Ogg ogg@sr375.com; Joshua Dunbar jdunbar@montereytechnologies.com Cc: Quanah Gibson-Mount quanah@fast-mail.org; openldap-technical@openldap.org Subject: Re: Error when running make test or slapd after building on windows
Dr. Ogg wrote:
Why not run in a Linux VM or a docker container? and avoid Cygwin?
Or WSL2. I hear that works pretty well these days.
On Feb 17, 2022, at 2:48 PM, Joshua Dunbar jdunbar@montereytechnologies.com wrote:
Are there up to date instructions on how to build with Cygwin or Msys somewhere? I am trying to do this on a 64 bit Windows 10 computer. The way I am doing it with Cygwin with default configure options must be wrong. I am new to both Cygwin and OpenLDAP so apologies for my inexperience.
-----Original Message----- From: Howard Chu hyc@symas.com Sent: Thursday, February 17, 2022 5:40 PM To: Quanah Gibson-Mount quanah@fast-mail.org; Joshua Dunbar jdunbar@montereytechnologies.com; openldap-technical@openldap.org Subject: Re: Error when running make test or slapd after building on windows
Quanah Gibson-Mount wrote:
--On Thursday, February 17, 2022 8:00 PM +0000 Joshua Dunbar jdunbar@montereytechnologies.com wrote:
Hello,
I am attempting to install openldap (latest version 2.6.1) on windows using Cygwin where I have installed dependencies of gcc core and make in order to get configure to run. I then run configure from a Cygwin terminal (without any arguments). Configure seems to run fine, and so does make depend, and make. Then when I attempt to run make test (or slapd with any other well formatted slapd.conf file) I get the following error message. I
Hi Joshua,
It's likely related to this discussion:
More than just that. OpenLDAP code supports real POSIX environments and native WIN32 environments. It doesn't support Cygwin, which is a partially-working fake POSIX environment.
You can use Cygwin or MSYS as the build platform, but the binaries will only work if built with the MinGW toolchain for native WIN32 output.
-- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/