Lukas Kolbe <[EMAIL PROTECTED]> writes: > 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. > > 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.
Well, if it isn't defined, that code should have been compiled out. Does your include/config.h list HAVE_LDAP_CREATE_PAGE_CONTROL set? -Jeff _______________________________________________ autofs mailing list autofs@linux.kernel.org http://linux.kernel.org/mailman/listinfo/autofs