From owner-freebsd-current@FreeBSD.ORG Wed Aug 18 13:55:18 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 3088416A4CE; Wed, 18 Aug 2004 13:55:18 +0000 (GMT) Received: from smtp-bedford-dr.mitre.org (smtp-bedford-dr-x.mitre.org [192.160.51.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 703D543D4C; Wed, 18 Aug 2004 13:55:17 +0000 (GMT) (envelope-from jandrese@mitre.org) Received: from smtp-bedford-dr.mitre.org (localhost.localdomain [127.0.0.1]) i7IDtGf07337; Wed, 18 Aug 2004 09:55:16 -0400 Received: from smtp-bedford-dr.mitre.org (localhost.localdomain [127.0.0.1]) by smtp-bedford-dr.mitre.org (Postfix) with ESMTP id BEC394F8D7; Wed, 18 Aug 2004 09:55:16 -0400 (EDT) Received: from MAILHUB2 (mailhub2.mitre.org [129.83.221.18]) i7IDtGm07271; Wed, 18 Aug 2004 09:55:16 -0400 Received: from mm112324-2k.mitre.org (128.29.3.51) by mailhub2.mitre.org with SMTP id 4204044; Wed, 18 Aug 2004 09:55:08 -0400 Message-ID: <41235FBC.4040706@mitre.org> Date: Wed, 18 Aug 2004 09:55:08 -0400 From: Jason Andresen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.1) Gecko/20040707 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Robert Watson References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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: Wed, 18 Aug 2004 13:55:18 -0000 Robert Watson wrote: >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. > > Ok, I removed the device mem from my kernel config and added the line: EXPORT_SYMS+= mem_range_attr_set to src/sys/modules/mem/Makefile and recompiled with 'make buildkernel' / 'make installkernel' Then I booted the new kernel and manually ran 'kldload mem' then 'kldload nvidia' and I still got the message: link_elf: symbol mem_range_attr_set undefined