Additional Information re ITS#7878 omitted from original report:
The build did not (correctly) auto-detect either Openssl or SASL which
may make it a pretty unusual build case.
On 20/06/2014 4:44 PM, openldap-its(a)OpenLDAP.org wrote:
> *** THIS IS AN AUTOMATICALLY GENERATED REPLY ***
>
> Thanks for your report to the OpenLDAP Issue Tracking System. Your
> report has been assigned the tracking number ITS#7878.
>
> One of our support engineers will look at your report in due …
[View More]course.
> Note that this may take some time because our support engineers
> are volunteers. They only work on OpenLDAP when they have spare
> time.
>
> If you need to provide additional information in regards to your
> issue report, you may do so by replying to this message. Note that
> any mail sent to openldap-its(a)openldap.org with (ITS#7878)
> in the subject will automatically be attached to the issue report.
>
> mailto:openldap-its@openldap.org?subject=(ITS#7878)
>
> You may follow the progress of this report by loading the following
> URL in a web browser:
> http://www.OpenLDAP.org/its/index.cgi?findid=7878
>
> Please remember to retain your issue tracking number (ITS#7878)
> on any further messages you send to us regarding this report. If
> you don't then you'll just waste our time and yours because we
> won't be able to properly track the report.
>
> Please note that the Issue Tracking System is not intended to
> be used to seek help in the proper use of OpenLDAP Software.
> Such requests will be closed.
>
> OpenLDAP Software is user supported.
> http://www.OpenLDAP.org/support/
>
> --------------
> Copyright 1998-2007 The OpenLDAP Foundation, All Rights Reserved.
>
>
--
Ron Aitchison www.zytrax.com
ZYTRAX ron(a)zytrax.com
tel: 514-315-4296
Suite 22
6201 Chemin Cote St. Luc
Hampstead QC H3X 2H2 Canada
Author: Pro DNS and BIND (Apress) ISBN 1-59059-494-0
[View Less]
--047d7bdc8ac419e30c04fc856540
Content-Type: text/plain; charset=UTF-8
And here are the changes for smbk5pwd. Tried to use gnutls' own api
since it abstracts gcrypt/nettle, but sadly it doesn't provide md4, so
nettle it is.
Note this patch assumes the HAVE_GNUTLS_GCRYPT define from the
configure addition in the previous patch.
--047d7bdc8ac419e30c04fc856540
Content-Type: text/x-patch; charset=US-ASCII;
name="0001-ITS-7877-support-nettle-in-smbk5pwd.patch"
Content-Disposition: attachment;
…
[View More]filename="0001-ITS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ZWZpbmVkKEhBVkVfR05VVExTX05FVFRMRSkKKwlzdHJ1Y3Qg
bWQ0X2N0eCBjdHg7CiAjZW5kaWYKIAogCWlmIChwYXNzd2QtPmJ2X2xlbiA+IE1BWF9QV0xFTioy
KQpAQCAtMjUyLDggKzI3MCwxMiBAQCBzdGF0aWMgdm9pZCBudGhhc2goCiAJTUQ0X0luaXQoICZj
dHggKTsKIAlNRDRfVXBkYXRlKCAmY3R4LCBwYXNzd2QtPmJ2X3ZhbCwgcGFzc3dkLT5idl9sZW4g
KTsKIAlNRDRfRmluYWwoICh1bnNpZ25lZCBjaGFyICopaGJ1ZiwgJmN0eCApOwotI2VsaWYgZGVm
aW5lZChIQVZFX0dOVVRMUykKKyNlbGlmIGRlZmluZWQoSEFWRV9HTlVUTFNfR0NSWVBUKQogCWdj
cnlfbWRfaGFzaF9idWZmZXIoR0NSWV9NRF9NRDQsIGhidWYsIHBhc3N3ZC0+YnZfdmFsLCBwYXNz
d2QtPmJ2X2xlbiApOworI2VsaWYgZGVmaW5lZChIQVZFX0dOVVRMU19ORVRUTEUpCisJbWQ0X2lu
aXQoICZjdHggKTsKKwltZDRfdXBkYXRlKCAmY3R4LCBwYXNzd2QtPmJ2X2xlbiwgcGFzc3dkLT5i
dl92YWwgKTsKKwltZDRfZGlnZXN0KCAmY3R4LCBzaXplb2YoaGJ1ZiksICh1bnNpZ25lZCBjaGFy
ICopaGJ1ZiApOwogI2VuZGlmCiAKIAloZXhpZnkoIGhidWYsIGhhc2ggKTsKLS0gCjIuMC4wCgo=
--047d7bdc8ac419e30c04fc856540--
[View Less]
ron(a)zytrax.com wrote:
> Full_Name: Ron Aitchison
> Version: 2.4.39
> OS: Windows 7/MinGW-w64/MSYS
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (67.230.141.32)
>
>
> Checked the build error reports before submitting
> Building OpenLDAP 2.4.39 under MinGW-w64 (Win32 chain) and MSYS
> Configure command
> ./configure --prefix=/target LIBS='-lpcre -lgdi32 -lpthread' --enable-overlays
> --disable-shared CPPFLAGS='-I/target/include' LDFLAGS='-…
[View More]L/target/lib'
> make depend - works
> make - fails with undefined uint32_t in /servers/slapd/back-mdm/init.c
> Since this works on standard systems it is clearly some artifact of MinGW and/or
> configure arguments. Fixed by adding #include <stdint.h> in
> /servers/slapd/back-mdm/back-mdm.h. Make then ran to completion and slapd
> loaded. Since stdint.h is 'double include' safe there is probably no down-side
> to this quick fix.
What version of MSYS/Mingw64 are you using? It builds cleanly for me here and
has done so for years.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
[View Less]
batterseapower(a)hotmail.com wrote:
> Full_Name: Max Bolingbroke
> Version: LMDB HEAD
> OS: Windows
> URL: ftp://ftp.openldap.org/incoming/max-bolingbroke-20140622.patch
> Submission from: (NULL) (81.111.197.81)
>
>
> srandom/random do not appear to be defined on mingw. The trivial patch in
> max-bolingbroke-20140622.patch simply defines these functions to the C standard
> equivalents on Windows, which lets LMDB build cleanly there.
I've committed a different …
[View More]change. There's no real need to use srandom over
srand, and the fewer ifdef's the better.
>
> I, Maximilian Bolingbroke, hereby place the following modifications to liblmdb
> (and only these modifications) into the public domain. Hence, these
> modifications may be freely used and/or redistributed for any purpose with or
> without attribution and/or other notice.
>
>
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
[View Less]
Full_Name: Max Bolingbroke
Version: LMDB HEAD
OS: Windows
URL: ftp://ftp.openldap.org/incoming/max-bolingbroke-20140622.patch
Submission from: (NULL) (81.111.197.81)
srandom/random do not appear to be defined on mingw. The trivial patch in
max-bolingbroke-20140622.patch simply defines these functions to the C standard
equivalents on Windows, which lets LMDB build cleanly there.
I, Maximilian Bolingbroke, hereby place the following modifications to liblmdb
(and only these modifications) into …
[View More]the public domain. Hence, these
modifications may be freely used and/or redistributed for any purpose with or
without attribution and/or other notice.
[View Less]
Full_Name: Ron Aitchison
Version: 2.4.39
OS: Windows 7/MinGW-w64/MSYS
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (67.230.141.32)
Checked the build error reports before submitting
Building OpenLDAP 2.4.39 under MinGW-w64 (Win32 chain) and MSYS
Configure command
./configure --prefix=/target LIBS='-lpcre -lgdi32 -lpthread' --enable-overlays
--disable-shared CPPFLAGS='-I/target/include' LDFLAGS='-L/target/lib'
make depend - works
make - fails with undefined uint32_t in /servers/…
[View More]slapd/back-mdm/init.c
Since this works on standard systems it is clearly some artifact of MinGW and/or
configure arguments. Fixed by adding #include <stdint.h> in
/servers/slapd/back-mdm/back-mdm.h. Make then ran to completion and slapd
loaded. Since stdint.h is 'double include' safe there is probably no down-side
to this quick fix.
[View Less]
Full_Name: Ryan Tandy
Version: HEAD
OS: Debian unstable
URL:
Submission from: (NULL) (142.32.208.235)
Debian bug report: https://bugs.debian.org/745231
Quoting Andreas Metzler:
"given that gmp has been dual-licensed LGPLv3+/GPLv2+ it should be possible to
switch openldap over to the newer version of gnutls.
Upstream's 0205e83f4670d10ad3c6ae4b8fc5ec1d0c7020c0 lets the Debian package
build successfully (including testsuite).
However even with patch there is still some work to be done.
…
[View More]libraries/libldap/tls_g.c has some gcrypt related code that should be simply
unnecessary with gnutls3, therefore it should not link against libgcrypt either.
(Except for contrib/slapd-modules/smbk5pwd/smbk5pwd.c)."
The following changes make gcrypt optional for libldap. For versions where both
nettle and gcrypt are supported, I assume the default since no mechanism is
provided for detecting which is actually in use. Tested with GnuTLS 2.8.6 and
3.2.15.
--- a/libraries/libldap/tls_g.c
+++ b/libraries/libldap/tls_g.c
@@ -43,10 +43,17 @@
#include <gnutls/gnutls.h>
#include <gnutls/x509.h>
-#include <gcrypt.h>
#if LIBGNUTLS_VERSION_NUMBER >= 0x020200
#define HAVE_CIPHERSUITES 1
+#else
+#undef HAVE_CIPHERSUITES
+#endif
+
+/* gnutls >= 2.11.1 no longer uses gcrypt by default */
+#if LIBGNUTLS_VERSION_NUMBER < 0x020b01
+#include <gcrypt.h>
+#if LIBGNUTLS_VERSION_NUMBER >= 0x020200
/* This is a kludge. gcrypt 1.4.x has support. Recent GnuTLS requires gcrypt
1.4.x
* but that dependency isn't reflected in their configure script, resulting in
* build errors on older gcrypt. So, if they have a working build environment,
@@ -54,9 +61,10 @@
*/
#define HAVE_GCRYPT_RAND 1
#else
-#undef HAVE_CIPHERSUITES
#undef HAVE_GCRYPT_RAND
#endif
+#endif
+
#ifndef HAVE_CIPHERSUITES
/* Versions prior to 2.2.0 didn't handle cipher suites, so we had to
@@ -143,6 +151,7 @@ tlsg_mutex_unlock( void **lock )
return ldap_pvt_thread_mutex_unlock( *lock );
}
+#if GNUTLS_VERSION_NUMBER <= 0x020b00
static struct gcry_thread_cbs tlsg_thread_cbs = {
GCRY_THREAD_OPTION_USER,
NULL,
@@ -158,6 +167,16 @@ tlsg_thr_init( void )
{
gcry_control (GCRYCTL_SET_THREAD_CBS, &tlsg_thread_cbs);
}
+#else
+static void
+tlsg_thr_init( void )
+{
+ gnutls_global_set_mutex (tlsg_mutex_init,
+ tlsg_mutex_destroy,
+ tlsg_mutex_lock,
+ tlsg_mutex_unlock);
+}
+#endif
#endif /* LDAP_R_COMPILE */
/*
I have not looked at smbk5pwd yet.
[View Less]