From owner-freebsd-current@FreeBSD.ORG Thu Aug 19 07:48:08 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 34F1416A4CE; Thu, 19 Aug 2004 07:48:08 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id C99D143D3F; Thu, 19 Aug 2004 07:48:07 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.11/8.12.11) with ESMTP id i7J7jwtl001069; Thu, 19 Aug 2004 01:45:58 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 19 Aug 2004 01:46:03 -0600 (MDT) Message-Id: <20040819.014603.69698114.imp@bsdimp.com> To: rwatson@freebsd.org From: "M. Warner Losh" In-Reply-To: References: <412212A0.2040502@mitre.org> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org cc: tabary@efrei.fr Subject: Re: mem_range_attr_set undefined X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Aug 2004 07:48:08 -0000 In message: Robert Watson writes: : : On Tue, 17 Aug 2004, Jason Andresen wrote: : : > >>kldload mem : > >>kldload io (needed by xorg) : > >>kldload nvidia -> failed (mem_range_attr_set undefined) : > >> : > >>I had to compile 'device mem' into kernel : > >> : > >>note 1: I did not try loading mem at the boot loader stage : > >>note 2: I did not try the new release of nvidia driver : > > : > >The mem kld will need to explicitly symbols required by other modules : > >using the EXPORT_SYMS line in its Makefile. So try adding: : > > : > > EXPORT_SYMS= mem_range_attr_set : > > : > >to the module Makefile for mem, rebuilding, reloading, and adding : > >additional symbols until it works? : > : > Sure, I can try this. Where is the Makefile for the mem device? : : You can find the Makefile for the mem module in src/sys/modules/mem. You : might want to look at some of the other module Makefiles in related : directories for examples of EXPORT_SYMBOLS use. Alternatively, you could just depend on the mem module and not worry about EXPORT_SYMBOLS (which is supposed to be more the exception case than the standard SOP). Most of the other inter module dependencies are done this way, and this allows one to have weak versioning to boot. Warner