From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 6 18:29:40 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D46816A4CE for ; Wed, 6 Apr 2005 18:29:40 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id A33BA43D58 for ; Wed, 6 Apr 2005 18:29:39 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1]) by harmony.village.org (8.13.3/8.13.1) with ESMTP id j36IS21n067079; Wed, 6 Apr 2005 12:28:02 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 06 Apr 2005 12:28:02 -0600 (MDT) Message-Id: <20050406.122802.41700175.imp@bsdimp.com> To: morzhus@mail.ru From: Warner Losh In-Reply-To: References: 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-hackers@freebsd.org Subject: Re: Using kld functions in other kld's? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Apr 2005 18:29:40 -0000 From: Mrzh Subject: Using kld functions in other kld's? Date: Wed, 06 Apr 2005 10:58:20 +0400 > I'm trying to access one kld's functions from another kld in FreeBSD 5.3. > Even though I have non-static functions in my first loaded kld, subsequent kldload of > another kld that refers to those symbols gives me "link_elf: symbol blahblahblah undefined". > I was able to do this kind of thing in FreeBSD 4.x before. > > Is what I'm trying to do possible in FreeBSD 5.3? What could be source of the problem? > Thanks very much for any reply! See MODULE_DEPEND for the proper way to have modules A refer to moudle B's symbols. Warner