It seems to be specific to 2.6.1, I was able to build 2.5.10 without seeing that error using MSYS. The tests still fail due to the paths not resolving on windows, but I was able to make my own slapd.conf file with correct paths and get slapd to start.
-----Original Message----- From: Joshua Dunbar Sent: Friday, February 18, 2022 11:38 AM To: Howard Chu hyc@symas.com; Dr. Ogg ogg@sr375.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
I see this issue here as well: https://www.mail-archive.com/openldap-bugs@openldap.org/msg08059.html
But not sure I understand what the resolution is
-----Original Message----- From: Joshua Dunbar Sent: Friday, February 18, 2022 11:19 AM To: Howard Chu hyc@symas.com; Dr. Ogg ogg@sr375.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
I've attached the config.log
-----Original Message----- From: Joshua Dunbar Sent: Friday, February 18, 2022 11:12 AM To: 'Howard Chu' hyc@symas.com; 'Dr. Ogg' ogg@sr375.com Cc: 'Quanah Gibson-Mount' quanah@fast-mail.org; 'openldap-technical@openldap.org' openldap-technical@openldap.org Subject: RE: Error when running make test or slapd after building on windows
I installed Msys and ran the pacman commands via the instructions here: https://www.msys2.org/. I then opened a MSYS MinGW 64-bit command prompt and ran configure, make depend, and make. Make ends with the following error
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: .libs/os-ip.o: in function `ldap_int_poll': C:/Users/USAF_Admin/Desktop/openldap-2.6.1/openldap-2.6.1/libraries/libldap/os-ip.c:391: undefined reference to `ber_pvt_wsa_err2string' collect2.exe: error: ld returned 1 exit status make[2]: *** [Makefile:437: libldap.la] Error 1 make[2]: Leaving directory '/home/USAF_Admin/libraries/libldap' make[1]: *** [Makefile:312: all-common] Error 1 make[1]: Leaving directory '/home/USAF_Admin/libraries' make: *** [Makefile:320: all-common] Error 1
Any ideas?
-----Original Message----- From: Joshua Dunbar Sent: Thursday, February 17, 2022 6:17 PM To: Howard Chu hyc@symas.com; Dr. Ogg ogg@sr375.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
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/