Doug Barton
2009-Feb-17 17:54 UTC
7-stable kernel not compiling: nlm_prot_impl.c "undefined reference to `nfs_*"
With up to date sources buildworld completes, but kernel fails here: linking kernel.debug nlm_advlock.o(.text+0x11a8): In function `nlm_advlock_internal': /data/src/sys/nlm/nlm_advlock.c:225: undefined reference to `nfs_vinvalbuf' nlm_advlock.o(.text+0x1243):/data/src/sys/nlm/nlm_advlock.c:236: undefined reference to `nfs_ticks' nlm_prot_impl.o(.text+0x2af1): In function `nlm_syscall': /data/src/sys/nlm/nlm_prot_impl.c:1543: undefined reference to `nfs_advlock_p' nlm_prot_impl.o(.text+0x2af7):/data/src/sys/nlm/nlm_prot_impl.c:1544: undefined reference to `nfs_advlock_p' nlm_prot_impl.o(.text+0x2b01):/data/src/sys/nlm/nlm_prot_impl.c:1545: undefined reference to `nfs_reclaim_p' nlm_prot_impl.o(.text+0x2b07):/data/src/sys/nlm/nlm_prot_impl.c:1546: undefined reference to `nfs_reclaim_p' nlm_prot_impl.o(.text+0x2b1f):/data/src/sys/nlm/nlm_prot_impl.c:1551: undefined reference to `nfs_advlock_p' nlm_prot_impl.o(.text+0x2b25):/data/src/sys/nlm/nlm_prot_impl.c:1552: undefined reference to `nfs_reclaim_p' *** Error code 1 Stop in /usr/local/obj/data/src/sys/HOME. *** Error code 1 -- This .signature sanitized for your protection
Doug Barton
2009-Feb-18 00:07 UTC
7-stable kernel not compiling: nlm_prot_impl.c "undefined reference to `nfs_*"
I "solved" this by adding NFSCLIENT back to my kernel config file. I had NFSSERVER and NFSLOCKD in there already. Given that this is a file server system it doesn't seem logical that it would need NFSCLIENT in the kernel. Doug Doug Barton wrote:> With up to date sources buildworld completes, but kernel fails here: > > linking kernel.debug > nlm_advlock.o(.text+0x11a8): In function `nlm_advlock_internal': > /data/src/sys/nlm/nlm_advlock.c:225: undefined reference to > `nfs_vinvalbuf' > nlm_advlock.o(.text+0x1243):/data/src/sys/nlm/nlm_advlock.c:236: > undefined reference to `nfs_ticks' > nlm_prot_impl.o(.text+0x2af1): In function `nlm_syscall': > /data/src/sys/nlm/nlm_prot_impl.c:1543: undefined reference to > `nfs_advlock_p' > nlm_prot_impl.o(.text+0x2af7):/data/src/sys/nlm/nlm_prot_impl.c:1544: > undefined reference to `nfs_advlock_p' > nlm_prot_impl.o(.text+0x2b01):/data/src/sys/nlm/nlm_prot_impl.c:1545: > undefined reference to `nfs_reclaim_p' > nlm_prot_impl.o(.text+0x2b07):/data/src/sys/nlm/nlm_prot_impl.c:1546: > undefined reference to `nfs_reclaim_p' > nlm_prot_impl.o(.text+0x2b1f):/data/src/sys/nlm/nlm_prot_impl.c:1551: > undefined reference to `nfs_advlock_p' > nlm_prot_impl.o(.text+0x2b25):/data/src/sys/nlm/nlm_prot_impl.c:1552: > undefined reference to `nfs_reclaim_p' > *** Error code 1 > > Stop in /usr/local/obj/data/src/sys/HOME. > *** Error code 1 > >-- This .signature sanitized for your protection