Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Dec 2005 21:56:27 -0700 (MST)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        sashan@endace.com
Cc:        freebsd-drivers@freebsd.org
Subject:   Re: undefined symbols (how to export symobls)
Message-ID:  <20051219.215627.122939537.imp@bsdimp.com>
In-Reply-To: <43A76FF9.5020402@endace.com>
References:  <43A76FF9.5020402@endace.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <43A76FF9.5020402@endace.com>
            sashan <sashan@endace.com> writes:
: Hi
: 
: I'm trying get kernel module B to find a function/symbol S defined in 
: kernel module A. Currently whenever B trys to use S it fails with
: 
: link_elf: symbol <S> undefined
: 
: I've tried adding EXPORT_SYMS = S to the Makefile.
: 
: A is loaded.
: 
: I'm using 5.4-RELEASE.

MODULE_DEPEND is what you need:

MODULE_DEPEND(ed, miibus, 1, 1, 1);

Warner





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