> I changed my working KERNCONF to support the NFSv4 server & client:
> - options NFSSERVER
> + options NFSD
> -options NFSCLIENT
> + options NFSCL
> No matter I enabled NFSLOCKD or not, I can't successfully build the
> kernel. The error message says:
>
> linking kernel
> nlm_prot_impl.o(.text+0x11b6): In function
> `nlm_client_recovery_start':
> : undefined reference to `nlm_client_recovery'
> nlm_prot_impl.o(.text+0x3e8a): In function `nlm_syscall':
> : undefined reference to `nlm_advlock'
> nlm_prot_impl.o(.text+0x3e9c): In function `nlm_syscall':
> : undefined reference to `nlm_reclaim'
> *** Error code 1
>
> Stop in /usr/obj/usr/src/sys/HOUKAGO.
> *** Error code 1
>
> Stop in /usr/src.
> *** Error code 1
>
> Stop in /usr/src.
>
> Is this caused by an incomplete NFSCL?
>
At the moment, nlm_advlock.c won't build without NFSCLIENT and
those functions are in nlm_advlock.c. (Because of a quirk related
to sys_ids used for locking, the experimental NFS server
"options NFSD" requires the nlm, which in turn
requires NFSCLIENT. NFSLOCKD shouldn't require NFSCLIENT, but it
uses a macro NFS_HZ which happens to use a variable in NFSCLIENT,
plus calls a function in NFSCLIENT, both of which need to be fixed.)
So, until I get the above fixed (I didn't realize it was broken
until your email, thanks for reporting it), you'll need:
options NFSCLIENT
options NFSCL
options NFSD
to get the kernel to build. It does work as a loadable module,
so you can run it without building a kernel with NFSCL, NFSD.
rick