Date: Sat, 12 Feb 2005 23:37:01 GMT From: "Wojciech A. Koszek" <dunstan@freebsd.czest.pl> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/77432: [PATCH] It is not possible to load nfs4client.ko Message-ID: <200502122337.j1CNb0ew000797@freebsd.czest.pl> Resent-Message-ID: <200502130010.j1D0ANd6034436@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Feb 13 00:10:22 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Wojciech A. Koszek >Release: FreeBSD 5.3-STABLE i386 >Organization: >Environment: System: FreeBSD dunstan.freebsd.czest.pl 5.3-STABLE FreeBSD 5.3-STABLE #0: Sat Feb 12 11:15:23 CET 2005 root@dunstan.freebsd.czest.pl:/usr/obj/usr/src/sys/HOME6 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@dunstan.freebsd.czest.pl:/usr/obj/usr/src/sys/HOME6 -- 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 root@:/usr/obj/usr/src/sys/GENERIC -- >Description: It is not possible to load nfs4client.ko because kernel linker complains about some symbols (which are missing): root@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@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. >How-To-Repeat: # cd /sys/modules/nfs4client/ # make load >Fix: 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 --- >Release-Note: >Audit-Trail: >Unformatted: non-critical low sw-bug
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502122337.j1CNb0ew000797>