On Mon, 2009-02-02 at 18:05 -0700, Michael Loftis wrote: > > --On February 3, 2009 9:45:55 AM +0900 Ian Kent <ra...@themaw.net> wrote: > > >> I understand that. I'm having trouble reproducing this one except under > >> load, which is why I decided it's probably some sort of race condition. > >> And it goes away when i set timeout=0. I'm betting though that with > >> 'current' autofs4 module it may not happen or with 'current' daemon and > >> module. I tried to get autofs5 debian package from sid/lenny (debian > >> unstable/testing) to compile but because it's using some symbols that > >> don't exist in ldap.h from openldap 2.1 it won't compile for Debian 4.0 > >> without a little bit of massaging. > > > > What are the symbols? > > Send over the compile breakage output or the Debian source package (I > > can probably check it out on my Ubuntu test machine). > > Using the autofs5 package from sid and after a few minor massages to get > the debhelper stuff into compliance with the older etch dh tools (5.0.3 > base, but same errors are present in 5.0.4, same undef-ed symbol) > LDAP_CONTROL_PAGEDRESULTS seems to have appeared somewhere eitehr in > OpenLDAP 2.2 or in 2.1 after debians libldap2-dev 2.1.30-13.3 packages.
My bad since those functions are defined by autofs if they aren't present I should be checking for the related symbol define. Does this help? autofs-5.0.4 - -check LDAP_CONTROL_PAGEDRESULTS defined From: Ian Kent <ra...@themaw.net> If LDAP_CONTROL_PAGEDRESULTS is not defined in LDAP includes then define it. --- modules/lookup_ldap.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/modules/lookup_ldap.c b/modules/lookup_ldap.c index 6ba80eb..64b4168 100644 --- a/modules/lookup_ldap.c +++ b/modules/lookup_ldap.c @@ -39,6 +39,10 @@ #define MODPREFIX "lookup(ldap): " +#ifndef LDAP_CONTROL_PAGEDRESULTS +#define LDAP_CONTROL_PAGEDRESULTS "1.2.840.113556.1.4.319" /* RFC 2696 */ +#endif + int lookup_version = AUTOFS_LOOKUP_VERSION; /* Required by protocol */ static struct ldap_schema common_schema[] = { _______________________________________________ autofs mailing list autofs@linux.kernel.org http://linux.kernel.org/mailman/listinfo/autofs