Subject: kern/20218: kernel configured with options NFSSERVER doesn't compile (+fix)
To: None <>
From: Frederick Bruckman <>
List: netbsd-bugs
Date: 02/05/2003 10:55:05
>Number:         20218
>Category:       kern
>Synopsis:       kernel configured with options NFSSERVER doesn't compile (+fix)
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 05 08:56:00 PST 2003
>Release:        NetBSD 1.6N
System: NetBSD 1.6N NetBSD 1.6N (M700) #1: Tue Feb 4 11:26:37 CST 2003 i386
Architecture: i386
Machine: i386
	kernel configured with options NFSSERVER (but not NFS):

/usr/tools.i386/bin/i386--netbsdelf-gcc  -ffreestanding  -O2 -march=i486 -pipe -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare -Wno-uninitialized  -Di386 -I.  -I../../../../arch -I../../../.. -nostdinc -DLKM -DMAXUSERS=16 -D_KERNEL -D_KERNEL_OPT  -c vers.c
/usr/tools.i386/bin/i386--netbsdelf-ld -T ../../../../arch/i386/conf/kern.ldscript -Ttext c0100000 -e start -X -o netbsd ${SYSTEM_OBJ} vers.o
nfs_subs.o: In function `nfs_initdircache':
nfs_subs.o(.text+0x1f03): undefined reference to `M_NFSDIROFF'
nfs_subs.o(.text+0x1f53): undefined reference to `M_NFSDIROFF'
nfs_subs.o: In function `nfs_enterdircache':
nfs_subs.o(.text+0x2241): undefined reference to `M_NFSDIROFF'
nfs_subs.o(.text+0x22db): undefined reference to `M_NFSDIROFF'
nfs_subs.o(.text+0x2473): undefined reference to `M_NFSDIROFF'
nfs_subs.o(.text+0x2623): more undefined references to `M_NFSDIROFF' follow
*** Error code 1

nbmake: stopped in /s/src/sys/arch/i386/compile/DESPAIR


Index: nfs_subs.c
RCS file: /cvsroot/src/sys/nfs/nfs_subs.c,v
retrieving revision 1.107
diff -u -r1.107 nfs_subs.c
--- nfs_subs.c	2002/12/01 23:02:11	1.107
+++ nfs_subs.c	2003/02/05 16:45:21
@@ -122,6 +122,8 @@
 #include <netiso/iso.h>
+MALLOC_DEFINE(M_NFSDIROFF, "NFS diroff", "NFS directory cookies");
  * Data items converted to xdr at startup, since they are constant
  * This is kinda hokey, but may save a little time doing byte swaps