[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: libldap cyrus.c and windows (RE24 release candidate)
- To: Quanah Gibson-Mount <quanah@symas.com>, openldap-devel@openldap.org
- Subject: Re: libldap cyrus.c and windows (RE24 release candidate)
- From: Howard Chu <hyc@symas.com>
- Date: Tue, 23 Jul 2019 01:58:29 +0100
- In-reply-to: <580452740372BEC2A938EA93@[192.168.1.39]>
- References: <580452740372BEC2A938EA93@[192.168.1.39]>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 SeaMonkey/2.53
Quanah Gibson-Mount wrote:
> Having an issue with cyrus.c on windows.
>
> I keep hitting:
>
> openldap/libraries/libldap/cyrus.c: In function 'ldap_int_sasl_bind':
> openldap/libraries/libldap/cyrus.c:392:19: error: 'HOST_NAME_MAX' undeclared (first use in this function); did you mean 'FILENAME_MAX'?
> char my_hostname[HOST_NAME_MAX + 1];
> ^~~~~~~~~~~~~
> FILENAME_MAX
>
>
> Yet this code compiles just fine:
>
> $ cat test.c
> #include <limits.h>
>
> void main() {
> char my_hostname[HOST_NAME_MAX + 1];
> }
>
>
> In cyrus.c, we have:
>
> #ifdef HAVE_CYRUS_SASL
> ...
> #ifdef HAVE_LIMITS_H
> #include <limits.h>
> #endif
> ...
>
>
> in config.log, it has:
>
> #define HAVE_CYRUS_SASL 1
>
> and
>
> #define HAVE_LIMITS_H 1
>
> So the limits.h include file should be included.
And are they defined in portable.h?
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/