Comment # 2 on bug 1221682 from David Disseldorp
(In reply to Michal Jireš from comment #0)
...
> ./autofs-5.1.9/config.log: conftest.c: In function 'main':
> ./autofs-5.1.9/config.log: conftest.c:58:47: error: passing argument 4 of
> 'ldap_parse_page_control' from incompatible pointer type
> [-Wincompatible-pointer-types]
> ./autofs-5.1.9/config.log:    58 |       ret =
> ldap_parse_page_control(ld,clp,ct,c);
> ./autofs-5.1.9/config.log:       |                                          
> ^
> ./autofs-5.1.9/config.log:       |                                          
> |
> ./autofs-5.1.9/config.log:       |                                          
> struct berval *
> ./autofs-5.1.9/config.log: In file included from
> /usr/include/lber_types.h:24,
> ./autofs-5.1.9/config.log:                  from /usr/include/lber.h:29,
> ./autofs-5.1.9/config.log:                  from /usr/include/ldap.h:30,
> ./autofs-5.1.9/config.log:                  from conftest.c:49:
> ./autofs-5.1.9/config.log: /usr/include/ldap.h:2155:25: note: expected
> 'struct berval **' but argument is of type 'struct berval *'
> ./autofs-5.1.9/config.log:  2155 | ldap_parse_page_control LDAP_P((
> ./autofs-5.1.9/config.log:       |                         ^~~~~~
> 
> 
> 
> Fixing configure may not be necessary to build the package, but it might be
> an indication that the package will be misconfigured.

Yeah, this looks like a bug in autofs. I'll propose the following fix upstream:
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -424,7 +424,7 @@ AC_LINK_IFELSE(
       #include <ldap.h> ]],
    [[ LDAP *ld;
       ber_int_t *ct;
-      struct berval *c;
+      struct berval **c;
       int ret;
       LDAPControl **clp;
       ret = ldap_parse_page_control(ld,clp,ct,c); ]])],


You are receiving this mail because: