Re: autofs compiled into kernel -> unresolved symbol

H. Peter Anvin (hpa@transmeta.com)
Thu, 17 Apr 1997 22:10:00 -0700 (PDT)


>
> For some reason I always get this linking problem whenever I have autofs
> statically configured into the kernel. This has persisted since autofs
> first appeared, and I have tried it on every revision hoping it would go
> away.
>
> fs/filesystems.a(autofs.o): In function `init_autofs_fs':
> autofs.o(.text+0x2a2): undefined reference to
> `register_filesystem_Rf11a470b'
> make: *** [vmlinux] Error 1
>
> I find this a bit baffling because you seem to always have autofs
> configured in nonmodularly, so surely it works for you? I have NFS file
> system support compiled in nonmodularly and most else I thought could be
> relevant as modules.
>

There is a bug if you link it into the kernel and have module
versioning turned on. It is fixed in 2.1.36 if it is out yet.
Otherwise, delete the modversions.h include in fs/autofs/init.c, which
I for some reason failed to remove earlier.

-hpa