Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 06 Apr 2005 12:28:02 -0600 (MDT)
From:      Warner Losh <imp@bsdimp.com>
To:        morzhus@mail.ru
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Using kld functions in other kld's?
Message-ID:  <20050406.122802.41700175.imp@bsdimp.com>
In-Reply-To: <E1DJ4UW-0003zG-00.morzhus-mail-ru@f13.mail.ru>
References:  <E1DJ4UW-0003zG-00.morzhus-mail-ru@f13.mail.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
From: Mrzh <morzhus@mail.ru>
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050406.122802.41700175.imp>