From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 29 16:56:39 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EEB32106567F for ; Tue, 29 Jul 2008 16:56:39 +0000 (UTC) (envelope-from asmodai@in-nomine.org) Received: from nexus.in-nomine.org (dhammapada.xs4all.nl [82.95.168.248]) by mx1.freebsd.org (Postfix) with ESMTP id 9DA1F8FC20 for ; Tue, 29 Jul 2008 16:56:38 +0000 (UTC) (envelope-from asmodai@in-nomine.org) Received: from localhost (localhost.domini.in-nomine.org [127.0.0.1]) by nexus.in-nomine.org (Postfix) with ESMTP id 0C23ADCB4; Tue, 29 Jul 2008 18:56:37 +0200 (CEST) X-Virus-Scanned: by amavisd-new using ClamAV at in-nomine.org Received: from nexus.in-nomine.org ([127.0.0.1]) by localhost (nexus.domini.in-nomine.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p4w9H3abzuQe; Tue, 29 Jul 2008 18:56:36 +0200 (CEST) Received: by nexus.in-nomine.org (Postfix, from userid 1000) id 31713DCB1; Tue, 29 Jul 2008 18:56:36 +0200 (CEST) Date: Tue, 29 Jul 2008 18:56:36 +0200 From: Jeroen Ruigrok van der Werven To: jcw@highperformance.net Message-ID: <20080729165636.GL75307@nexus.in-nomine.org> References: <488F2D48.1020501@highperformance.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <488F2D48.1020501@highperformance.net> Organisation: Ninth Circle Enterprises User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org Subject: Re: Symbols in a Module X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jul 2008 16:56:40 -0000 -On [20080729 17:46], jcw@highperformance.net (jcw@highperformance.net) wrote: >I am compiling an AFS module. The module won't load. Dmesg reports >undefined symbol _vn_lock. nm reports that the symbol exists and is >undefined. > >How do I compile (defined) symbols into my module? You add the appropriate source file or library. _vn_lock, sounds like sys/vnode.h, which in turn on 7-STABLE needs sys/kern/vfs_vnops.c. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B I am not a teacher but an awakener...