kern/77432: [PATCH] It is not possible to load nfs4client.ko

Wojciech A. Koszek dunstan at
Sat Feb 12 16:10:23 PST 2005

>Number:         77432
>Category:       kern
>Synopsis:       [PATCH] It is not possible to load nfs4client.ko
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 13 00:10:22 GMT 2005
>Originator:     Wojciech A. Koszek
>Release:        FreeBSD 5.3-STABLE i386

System: FreeBSD 5.3-STABLE FreeBSD 5.3-STABLE #0: Sat Feb 12 11:15:23 CET 2005 root at i386

kern.ostype: FreeBSD
kern.osrelease: 5.3-STABLE
kern.osrevision: 199506
kern.version: FreeBSD 5.3-STABLE #0: Sat Feb 12 11:15:23 CET 2005
   root at
kern.ostype: FreeBSD
kern.osrelease: 6.0-CURRENT
kern.osrevision: 199506
kern.version: FreeBSD 6.0-CURRENT #2: Sat Feb 12 10:43:18 UTC 2005


It is not possible to load nfs4client.ko because kernel linker complains about
some symbols (which are missing):
root at dunstan:/usr/src/sys/modules/nfs4client:# make load
/sbin/kldload -v /usr/src/sys/modules/nfs4client/nfs4client.ko
kldload: can't load /usr/src/sys/modules/nfs4client/nfs4client.ko: No such
file or directory
*** Error code 1

Stop in /usr/src/sys/modules/nfs4client.
root at dunstan:/usr/src/sys/modules/nfs4client:# dmesg | tail -1
link_elf: symbol nfs_writebp undefined

It seems this symbols exist in code shared between nfs4client and nfsclient.


# cd /sys/modules/nfs4client/
# make load

Patch [nfs4client.Makefile] corrects this bug by compiling files taken from
nfsclient and linking them to nfs4client.ko. Tested on -STABLE and -CURRENT.

--- nfs4client.Makefile begins here ---

diff -upr /usr/src/sys/modules/nfs4client/Makefile src/sys/modules/nfs4client/Makefile
--- /usr/src/sys/modules/nfs4client/Makefile	Fri Jul  9 00:35:35 2004
+++ src/sys/modules/nfs4client/Makefile	Sat Feb 12 22:10:02 2005
@@ -8,7 +8,8 @@ SRCS=	vnode_if.h \
 	nfs_common.c \
 	opt_inet.h opt_nfs.h opt_bootp.h opt_nfsroot.h \
 	nfs4_dev.c nfs4_idmap.c nfs4_socket.c nfs4_subs.c \
-	nfs4_vfs_subs.c  nfs4_vfsops.c nfs4_vn_subs.c nfs4_vnops.c
+	nfs4_vfs_subs.c  nfs4_vfsops.c nfs4_vn_subs.c nfs4_vnops.c \
+	nfs_socket.c nfs_subs.c nfs_vfsops.c nfs_vnops.c
 SRCS+=	opt_inet6.h
 NFS_INET?=	1	# 0/1 - requires INET to be configured in kernel
--- nfs4client.Makefile ends here ---


More information about the freebsd-bugs mailing list