From owner-freebsd-current Tue Jan 19 02:42:10 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA18285 for freebsd-current-outgoing; Tue, 19 Jan 1999 02:42:10 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA18275 for ; Tue, 19 Jan 1999 02:42:07 -0800 (PST) (envelope-from dfr@nlsystems.com) Received: from localhost (dfr@localhost) by nlsystems.com (8.9.1/8.8.5) with SMTP id JAA46055; Tue, 19 Jan 1999 09:37:48 GMT Date: Tue, 19 Jan 1999 09:37:48 +0000 (GMT) From: Doug Rabson To: Julian Elischer cc: current@FreeBSD.ORG Subject: Re: KLD cannot load dependent modules In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 19 Jan 1999, Julian Elischer wrote: > > If I load a module A > then try load a module B that requires a function in A > it fails because it cannot find the symbol.. > is this a known problem? > > (A real bummer if so) The module B needs to have A as a dependancy. Use KMODDEPS to do this. Something like this should work in the Makefile: KMOD= modB SRCS= ... KMODDEPS= modA KLDMOD=t NOMAN=t .include The linker will only resolve symbols against the files in the dependancy list (and the kernel). -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message