From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 6 07:02:53 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 5BED516A4CE for ; Wed, 6 Apr 2005 07:02:53 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF4E843D1F for ; Wed, 6 Apr 2005 07:02:51 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id j3672lg5092034; Wed, 6 Apr 2005 16:32:48 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org, Mrzh Date: Wed, 6 Apr 2005 16:32:34 +0930 User-Agent: KMail/1.8 References: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1478740.DlmKVc8EFQ"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200504061632.43062.doconnor@gsoft.com.au> X-Spam-Score: -2.5 () IN_REP_TO,PGP_SIGNATURE_2,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) 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 07:02:53 -0000 --nextPart1478740.DlmKVc8EFQ Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wed, 6 Apr 2005 16:28, Mrzh wrote: > 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! A KLD's symbols aren't exported by default (any more?) so you can only acce= ss=20 the public interfaces. See EXPORT_SYMS in /usr/src/sys/conf/kmod.mk =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart1478740.DlmKVc8EFQ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBCU4mS5ZPcIHs/zowRAow+AJ9u2c1NDPztz6U43HWHYzvXt6TVhQCeMYw2 a2Esm9sf9zTct0lpFRKH4p0= =yLGA -----END PGP SIGNATURE----- --nextPart1478740.DlmKVc8EFQ--