From owner-freebsd-current@FreeBSD.ORG Tue Aug 17 15:00:46 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 12DF016A4CE; Tue, 17 Aug 2004 15:00:46 +0000 (GMT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D77C43D45; Tue, 17 Aug 2004 15:00:39 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.11/8.12.11) with ESMTP id i7HEwipP016009; Tue, 17 Aug 2004 10:58:44 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)i7HEwiqt016006; Tue, 17 Aug 2004 10:58:44 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Tue, 17 Aug 2004 10:58:44 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Jason Andresen In-Reply-To: <412212A0.2040502@mitre.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-current@freebsd.org cc: Cedric Tabary 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: Tue, 17 Aug 2004 15:00:46 -0000 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. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Principal Research Scientist, McAfee Research