From owner-freebsd-stable@FreeBSD.ORG Fri Feb 19 15:53:38 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 607A9106568B for ; Fri, 19 Feb 2010 15:53:38 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) by mx1.freebsd.org (Postfix) with ESMTP id C869B8FC1A for ; Fri, 19 Feb 2010 15:53:37 +0000 (UTC) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.14.3/8.14.3/ALCHEMY.FRANKEN.DE) with ESMTP id o1JFqaAx056859; Fri, 19 Feb 2010 16:52:37 +0100 (CET) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.14.3/8.14.3/Submit) id o1JFqZv3056858; Fri, 19 Feb 2010 16:52:35 +0100 (CET) (envelope-from marius) Date: Fri, 19 Feb 2010 16:52:35 +0100 From: Marius Strobl To: Kostik Belousov Message-ID: <20100219155235.GU50825@alchemy.franken.de> References: <4B7D74A7.6010006@acm.poly.edu> <4B7D9C5C.1090909@acm.poly.edu> <20100218220714.GU50403@deviant.kiev.zoral.com.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100218220714.GU50403@deviant.kiev.zoral.com.ua> User-Agent: Mutt/1.4.2.3i Cc: Boris Kochergin , FreeBSD-STABLE Mailing List , Rick Macklem Subject: Re: Can't load NFS server module with a custom 8.0 kernel X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2010 15:53:38 -0000 On Fri, Feb 19, 2010 at 12:07:14AM +0200, Kostik Belousov wrote: > On Thu, Feb 18, 2010 at 03:00:28PM -0500, Boris Kochergin wrote: > > Rick Macklem wrote: > > > > > > > > >On Thu, 18 Feb 2010, Boris Kochergin wrote: > > > > > >>Ahoy. I didn't get any replies to this on -net, so I thought I'd try > > >>here. I have an 8.0-RELEASE-p2/amd64 machine running a custom kernel > > >>(configuration file at http://acm.poly.edu/~spawk/ACM) and I am > > >>unable to use the NFS server module on it. After loading the nfssvc > > >>module, attempting to load the nfsserver module fails and the > > >>following appears in dmesg: > > >> > > >>Feb 3 19:35:54 acm kernel: link_elf_obj: symbol svcpool_create > > >>undefined > > >>Feb 3 19:35:54 acm kernel: linker_load_file: Unsupported file type > > >> > > >>I see a reference to the problem at > > >>http://lists.freebsd.org/pipermail/svn-src-all/2008-November/001025.html. > > >>Am I missing something or has it never gotten resolved? Thanks. > > >> > > >I don't know diddly about the module loading stuff, but you could try > > >this patch. (svcpool_create() is a part of the krpc, which is listed > > >as a module that nfsserver depends on) > > > > > >rick > > >--- untested patch for nfs_srvsubs.c --- > > >--- nfsserver/nfs_srvsubs.c.sav 2010-02-18 14:41:52.000000000 -0500 > > >+++ nfsserver/nfs_srvsubs.c 2010-02-18 14:42:12.000000000 -0500 > > >@@ -554,7 +554,7 @@ > > > nfsrv_modevent, > > > NULL, > > > }; > > >-DECLARE_MODULE(nfsserver, nfsserver_mod, SI_SUB_VFS, SI_ORDER_ANY); > > >+DECLARE_MODULE(nfsserver, nfsserver_mod, SI_SUB_VFS, SI_ORDER_FIRST); > > > > > > /* So that loader and kldload(2) can find us, wherever we are.. */ > > > MODULE_VERSION(nfsserver, 1); > > Thanks for the patch, but the problem persists with it, I'm afraid. > > I think this is changed in HEAD, and part of the changes are already in > stable/8, which is different from 8.0 too. > > Anyway, for HEAD nfsserver we need 1. nfscommon 2. nfs_common. Could you please elaborate on why nfsserver requires the former? At least as far as svcpool_create() is concerned I see no reason why it should require nfscommon. Also, when testing r203968 the following list of modules where sufficient to have both nfsclient and nfsserver working: krpc.ko nfs_common.ko nfsclient.ko nfslockd.ko nfsserver.ko nfssvc.ko Marius