From owner-freebsd-questions Wed Dec 6 5:34:26 2000 From owner-freebsd-questions@FreeBSD.ORG Wed Dec 6 05:34:24 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from cisco.com (sword.cisco.com [161.44.208.100]) by hub.freebsd.org (Postfix) with ESMTP id 3A8F537B400 for ; Wed, 6 Dec 2000 05:34:23 -0800 (PST) Received: from sjt-u10.cisco.com (sjt-u10.cisco.com [161.44.212.77]) by cisco.com (8.8.5-Cisco.1/8.8.8) with ESMTP id IAA17761 for ; Wed, 6 Dec 2000 08:34:22 -0500 (EST) From: Steve Tremblett Received: (sjt@localhost) by sjt-u10.cisco.com (8.8.5-Cisco.1/CISCO.WS.1.2) id IAA27231 for freebsd-questions@freebsd.org; Wed, 6 Dec 2000 08:34:28 -0500 (EST) Message-Id: <200012061334.IAA27231@sjt-u10.cisco.com> Subject: PPPoE error messages & kernel modules To: freebsd-questions@freebsd.org Date: Wed, 6 Dec 2000 08:34:28 -0500 (EST) X-Mailer: ELM [version 2.5 PL1] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm a FreeBSD rookie, so I'm not too experienced with kernel modules etc., but this looks a little weird to me. When I start pppoe, I get the following output dumped on the screen: (this is 4.2R by the way) sjt-bsd# ppp -background pppoe Working in background mode Using interface: tun0 module_register: module netgraph already exists! linker_file_sysinit "netgraph.ko" failed to register! 17 Dec 6 07:28:21 sjt-bsd /kernel: module_register: module netgraph already exists! Dec 6 07:28:21 sjt-bsd /kernel: module_register: module netgraph already exists! Dec 6 07:28:21 sjt-bsd /kernel: linker_file_sysinit "netgraph.ko" failed to register! 17 Dec 6 07:28:21 sjt-bsd /kernel: linker_file_sysinit "netgraph.ko" failed to register! 17 PPP enabled It appears to me that modules are being loaded for options that are already statically in my kernel. If anyone wants to see my kernel config or ppp.conf just ask. This module issue seems to be a little overlooked in the handbook, so I hope you folks don't mind a couple of questions. PPP works fine at this point, so this excercise is purely for my interest. You know how it is with these *NIXes - eradicating error messages like these is a moral imperative! :) 1 - can anyone explain what is happening here? NETGRAPH, NETGRAPH_PPPOE, NETGRAPH_SOCKET, and the pseudo devices ether, tun, ppp (with option '1') are in my kernel, and my ethernet card is working fine. 2 - can someone verify for my interest that options in your kernel config file are static options in your kernel and not modules? 3 - can someone explain how one builds a module as opposed to a static option? In Linux it is straightforward, but there seems to be some stuff happening automagically here. 4 - I had a previous installation of 4.1.1 that didn't appear to make a ton of modules when the kernel was built, but this install of 4.2 does. Am I just not remembering correctly, or has something changed? once again, thanks to any and all respondents -- Steve Tremblett Cisco Systems To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message