From owner-freebsd-current@FreeBSD.ORG Tue Jan 27 20:49:07 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E4DAA106566C for ; Tue, 27 Jan 2009 20:49:07 +0000 (UTC) (envelope-from barney_cordoba@yahoo.com) Received: from web63907.mail.re1.yahoo.com (web63907.mail.re1.yahoo.com [69.147.97.122]) by mx1.freebsd.org (Postfix) with SMTP id 75D458FC2A for ; Tue, 27 Jan 2009 20:49:07 +0000 (UTC) (envelope-from barney_cordoba@yahoo.com) Received: (qmail 17780 invoked by uid 60001); 27 Jan 2009 20:49:07 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Message-ID; b=DltRtNBv7nHnNFZJiIsLFNR0yAfEOLDrNuzPqbW8CSkK8N//RXPQxkHnllKP7o2MGEgJNH5iPplp7GYhApNtYloyRlyLSEvuj8hSJZ73/lqb1kM+QhpOTq0bqhgZ5eQxaWg69PkFp/OlNRUra3D7HK9CkREQbqEgZe41/zoB9fg=; X-YMail-OSG: LpTcrrQVM1lZtct9o4j4eRHvoAZM2FMYD8kSdpBHD2DcxPy.30C9_IuS8ECmXIsRaoqYbdftQHOP0J5qwvToWnGV6YO.91TfhyWEtxaQBzu7ME_7XRa6mY3n0UbjQBlrjiroXD8qeKQKcwf2Mk9lP8N.Pw4- Received: from [98.242.222.229] by web63907.mail.re1.yahoo.com via HTTP; Tue, 27 Jan 2009 12:49:06 PST X-Mailer: YahooMailWebService/0.7.260.1 Date: Tue, 27 Jan 2009 12:49:06 -0800 (PST) From: Barney Cordoba To: current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <20296.17088.qm@web63907.mail.re1.yahoo.com> Cc: Subject: Exporting from a preloaded module X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: barney_cordoba@yahoo.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2009 20:49:08 -0000 I have a module foo that depends on bar. If I load the module bar normally, I can access the function I need in foo with no problem. However if I preload foo in loader.conf, I have a problem: 1) bar can't be loaded because it says foo isn't available if I keep the MODULE_DEPEND declaration. 2) If I remove the dependence, bar gets unresolved externals. It seems that the dependence is broken, as bar is loaded and shows in the module list. Barney