From owner-freebsd-stable@FreeBSD.ORG Thu Feb 18 19:46:20 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 6EEE5106566B for ; Thu, 18 Feb 2010 19:46:20 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-annu.mail.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id 239E48FC16 for ; Thu, 18 Feb 2010 19:46:19 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEANInfUuDaFvI/2dsb2JhbACbCHS9M4RnBIMVgniIFw X-IronPort-AV: E=Sophos;i="4.49,498,1262581200"; d="scan'208";a="66049031" Received: from darling.cs.uoguelph.ca ([131.104.91.200]) by esa-annu-pri.mail.uoguelph.ca with ESMTP; 18 Feb 2010 14:46:19 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by darling.cs.uoguelph.ca (Postfix) with ESMTP id 4D0A89400F2; Thu, 18 Feb 2010 14:46:19 -0500 (EST) X-Virus-Scanned: amavisd-new at darling.cs.uoguelph.ca Received: from darling.cs.uoguelph.ca ([127.0.0.1]) by localhost (darling.cs.uoguelph.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tqyXMCpOhjrZ; Thu, 18 Feb 2010 14:46:18 -0500 (EST) Received: from muncher.cs.uoguelph.ca (muncher.cs.uoguelph.ca [131.104.91.102]) by darling.cs.uoguelph.ca (Postfix) with ESMTP id 15818940073; Thu, 18 Feb 2010 14:46:18 -0500 (EST) Received: from localhost (rmacklem@localhost) by muncher.cs.uoguelph.ca (8.11.7p3+Sun/8.11.6) with ESMTP id o1IJvv723503; Thu, 18 Feb 2010 14:57:57 -0500 (EST) X-Authentication-Warning: muncher.cs.uoguelph.ca: rmacklem owned process doing -bs Date: Thu, 18 Feb 2010 14:57:57 -0500 (EST) From: Rick Macklem X-X-Sender: rmacklem@muncher.cs.uoguelph.ca To: Boris Kochergin In-Reply-To: <4B7D74A7.6010006@acm.poly.edu> Message-ID: References: <4B7D74A7.6010006@acm.poly.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: FreeBSD-STABLE Mailing List 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: Thu, 18 Feb 2010 19:46:20 -0000 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);