Re: Building autofs

From: Urban Widmark (
Date: Wed Feb 28 2001 - 03:33:31 EST

On Wed, 28 Feb 2001, Rainer Mager wrote:

> Hi all,
> I'm trying to use autofs for the first time and am running into some
> problems. First, the documentation seems quite weak, that is, I'm not sure

I am sure the maintainer would appreciate if you wrote down what you found
difficult/missing from the docs (in the form of a patch to the existing
docs perhaps).

> if what I have is what I should have. I managed to find an autofs version 4
> pre 9 tarball on the kernel mirrors. This seem the latest but is still a bit
> old and the referenced home page doesn't seem any newer. My real problem,
> however, is that when I try to build it I get this error:
> lookup_program.c:147: `OPEN_MAX' undeclared (first use in this function)

#include <linux/limits.h> gives:
#define OPEN_MAX 256 /* # open files a process may have */

But autofs is well behaved and doesn't use kernel headers but that makes
it fails on newer glibcs (at least I think that was it).

Just define it. If autofs4 is doing the same as autofs3 then it is only
used for program lookups (where a program generates the map to use) and
unless you are going to use those it won't matter at all.

There is also some info here, including how to find the autofs

Or google for "autofs OPEN_MAX", "autofs mailinglist archive", ...
There appears to be a autofs-open_max.patch somewhere.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Wed Feb 28 2001 - 21:00:16 EST