From owner-freebsd-bugs@FreeBSD.ORG Sun Feb 13 00:10:23 2005 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 75BEB16A4CF for ; Sun, 13 Feb 2005 00:10:23 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 352CC43D48 for ; Sun, 13 Feb 2005 00:10:23 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j1D0ANka034437 for ; Sun, 13 Feb 2005 00:10:23 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j1D0ANd6034436; Sun, 13 Feb 2005 00:10:23 GMT (envelope-from gnats) Resent-Date: Sun, 13 Feb 2005 00:10:23 GMT Resent-Message-Id: <200502130010.j1D0ANd6034436@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Wojciech A. Koszek" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CEC3316A4CE for ; Sun, 13 Feb 2005 00:05:45 +0000 (GMT) Received: from freebsd.czest.pl (silver.iplus.pl [80.48.250.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB45F43D46 for ; Sun, 13 Feb 2005 00:05:44 +0000 (GMT) (envelope-from dunstan@freebsd.czest.pl) Received: from freebsd.czest.pl (freebsd.czest.pl [80.48.250.4]) by freebsd.czest.pl (8.12.10/8.12.9) with ESMTP id j1D0Ax9v000841 for ; Sun, 13 Feb 2005 00:11:00 GMT (envelope-from dunstan@freebsd.czest.pl) Received: (from dunstan@localhost) by freebsd.czest.pl (8.12.10/8.12.9/Submit) id j1CNb0ew000797; Sat, 12 Feb 2005 23:37:01 GMT (envelope-from dunstan) Message-Id: <200502122337.j1CNb0ew000797@freebsd.czest.pl> Date: Sat, 12 Feb 2005 23:37:01 GMT From: "Wojciech A. Koszek" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/77432: [PATCH] It is not possible to load nfs4client.ko X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "Wojciech A. Koszek" List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Feb 2005 00:10:23 -0000 >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