From owner-freebsd-current Tue Feb 19 21:41:22 2002 Delivered-To: freebsd-current@freebsd.org Received: from rwcrmhc54.attbi.com (rwcrmhc54.attbi.com [216.148.227.87]) by hub.freebsd.org (Postfix) with ESMTP id 262C337B405 for ; Tue, 19 Feb 2002 21:41:12 -0800 (PST) Received: from peter3.wemm.org ([12.232.27.13]) by rwcrmhc54.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020220054111.BHUT1214.rwcrmhc54.attbi.com@peter3.wemm.org> for ; Wed, 20 Feb 2002 05:41:11 +0000 Received: from overcee.wemm.org (overcee.wemm.org [10.0.0.3]) by peter3.wemm.org (8.11.0/8.11.0) with ESMTP id g1K5fBs39720 for ; Tue, 19 Feb 2002 21:41:11 -0800 (PST) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.wemm.org (Postfix) with ESMTP id 5648339F1; Tue, 19 Feb 2002 21:41:11 -0800 (PST) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Hidetoshi Shimokawa Cc: Mike Smith , current@FreeBSD.ORG Subject: Re: HEADS UP: module build process changed In-Reply-To: Date: Tue, 19 Feb 2002 21:41:11 -0800 From: Peter Wemm Message-Id: <20020220054111.5648339F1@overcee.wemm.org> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hidetoshi Shimokawa wrote: > At Thu, 10 Jan 2002 17:35:00 -0800, > Mike Smith wrote: > > In order to deal with this problem, I have changed the module build > > process so that symbols global to the module are converted to local > > symbols when the module is linked into the .kld/,ko file. In order > > to allow modules that intentionally export symbols to continue to do > > so, a new module makefile variable 'EXPORT_SYMS' has been implemented. > > Hi Mike, > [... pass on this stuff ...] > Even if this problem is fixed, I suppose another problem there. > Even if I set EXPORT_SYMS=YES, I cannot resolv module symbols. > e.g. > > kldload module1 > kldload module2 > > module2 cannnot resolv symbols in module1. > > -stable doesn't have this problem. module2 cannot resolve symbols in module1 unless there is a declared dependency. This is intentional, otherwise there is no way to check that module1 is not unloaded while module2 is using it. Stable is lacking this enforcement. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message