From owner-freebsd-questions@FreeBSD.ORG Thu Jan 1 12:02:46 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A69DF16A4CE for ; Thu, 1 Jan 2004 12:02:46 -0800 (PST) Received: from mta10.adelphia.net (mta10.adelphia.net [68.168.78.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D9FB43D49 for ; Thu, 1 Jan 2004 12:02:42 -0800 (PST) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com ([68.68.113.33]) by mta10.adelphia.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP id <20040101200242.XMEZ14686.mta10.adelphia.net@potentialtech.com>; Thu, 1 Jan 2004 15:02:42 -0500 Message-ID: <3FF47CE1.6090401@potentialtech.com> Date: Thu, 01 Jan 2004 15:02:41 -0500 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20031005 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Matthew Seaman References: <3FF47721.3030600@potentialtech.com> <20040101194732.GC17271@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <20040101194732.GC17271@happy-idiot-talk.infracaninophile.co.uk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: questions@freebsd.org Subject: Re: netgraph.ko vs. compiled in. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jan 2004 20:02:46 -0000 Matthew Seaman wrote: > On Thu, Jan 01, 2004 at 02:38:09PM -0500, Bill Moran wrote: > >>If I build a kernel with "options netgraph", in order to use mpd, >>netgraph.ko >>is still loaded at boot (with an error) but mpd does not work. > > You can't simultaneously load a .ko and have the same code compiled > into the kernel. _I_ know that. Tell it to whatever part of the system is trying to load the kld. I'm not saying that being unable to load a kld for a service that's already compiled in is an error. I'm saying the fact that mpd tries to load the kld when it's already compiled in is the error. >>If I build the kernel without netgraph, netgraph.ko loads, along with other >>netgraph modules required for PPTP, and mpd works like a charm. >> >>What I haven't tried yet, is compiling a kernel with all the options for all >>the netgraph modules I'll need compiled in to see if that works. > > It's generally best either to kldload all of the netgraph modules you > require for this purpose or to compile them all into the kernel. One > way, or the other, but not a mixture of both. I would go beyond "generally best" and straight into "it doesn't work". My question is, "Is this fact documented somewhere, and I didn't see it?" Because, if it's not, I'm going to put together a doc patch and file a PR. -- Bill Moran Potential Technologies http://www.potentialtech.com