On Thu, 2008-06-05 at 18:41 +0200, Lukas Kolbe wrote:
> Hi again!
> 
> I try to build the latest and greatest autofs5 (5.0.3, with all patches
> from kernel.org applied) on a plain debian etch (4.0) system, but it
> fails on LDAP:
> 
> lookup_ldap.c:88: error: 'LDAP_CONTROL_PAGEDRESULTS' undeclared (first use in 
> this function)
> lookup_ldap.c:88: error: (Each undeclared identifier is reported only once
> lookup_ldap.c:88: error: for each function it appears in.)
> lookup_ldap.c: In function 'ldap_parse_page_control':
> lookup_ldap.c:103: error: 'LDAP_CONTROL_PAGEDRESULTS' undeclared (first use 
> in this function)
> 
> Whereas autofs5 5.0.2 (with all patches from kernel.org applied) builds
> and works just fine.
> 
> LDAP_CONTROL_PAGEDRESULTS seems to have been introduced somewhere in
> between openldap 2.1.30-13.3, which debian etch uses, and 2.4.7, which
> Ubuntu Hardy uses. On Hardy, autofs5 5.0.3 compiles just fine.

Caught by a missing definition.
It must have been defined in the version of Openldap I originally used,
even though the page control functions weren't present.

> 
> Is there any way to work around this? I did try to backport a newer
> openldap as well, but that's a major PITA because it itself requires a
> newer GnuTLS which itself requires newer libgcrypt and other stuff.

It may be enough to add the definition but it's also possible that calls
I've used in the functions (when configure finds they are missing)
aren't present in older openldap installs either.
I'll check it out soon as I can.

>From /usr/include/ldap.h.

/*      non-standard track controls */
#define LDAP_CONTROL_PAGEDRESULTS       "1.2.840.113556.1.4.319"   /* RFC 2696 
*/

Ian


_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to