From owner-freebsd-current@FreeBSD.ORG Wed Sep 14 14:09:23 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C0FE716A41F for ; Wed, 14 Sep 2005 14:09:23 +0000 (GMT) (envelope-from Lonnie.Vanzandt@ngc.com) Received: from xcgca812.northgrum.com (xcgca812.northgrum.com [208.12.122.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 651E843D46 for ; Wed, 14 Sep 2005 14:09:23 +0000 (GMT) (envelope-from Lonnie.Vanzandt@ngc.com) Received: from xcgca802.northgrum.com ([157.127.103.21]) by xcgca812.northgrum.com with InterScan Messaging Security Suite; Wed, 14 Sep 2005 07:09:23 -0700 Received: from xcgca800.northgrum.com ([157.127.103.70]) by xcgca802.northgrum.com with Microsoft SMTPSVC(6.0.3790.211); Wed, 14 Sep 2005 07:09:42 -0700 Received: from xcgco501.northgrum.com ([158.114.104.53]) by xcgca800.northgrum.com with Microsoft SMTPSVC(5.0.2195.6713); Wed, 14 Sep 2005 07:09:44 -0700 Received: from [192.168.217.128] ([158.114.106.12]) by xcgco501.northgrum.com with Microsoft SMTPSVC(5.0.2195.6713); Wed, 14 Sep 2005 08:08:37 -0600 From: Lonnie VanZandt Organization: Northrop Grumman To: current@freebsd.org Date: Wed, 14 Sep 2005 08:08:44 -0600 User-Agent: KMail/1.8.1 References: <200509131000.12719.lonnie.vanzandt@ngc.com> <20050913175344.GO793@funkthat.com> In-Reply-To: <20050913175344.GO793@funkthat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509140808.44916.lonnie.vanzandt@ngc.com> X-OriginalArrivalTime: 14 Sep 2005 14:08:37.0648 (UTC) FILETIME=[CD2B0100:01C5B935] Cc: Subject: Re: opt_netgraph in netgraph/netgraph.h? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lonnie.vanzandt@ngc.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2005 14:09:23 -0000 The problem isn't that there is no generated opt_netgraph.h but that of all the numerous opt_netgraph.h files, none are found during the KLD compilation. I suspect either: 1. I mistakenly deleted or lost to fs corruption the key opt_netgraph.h 2. A /usr/src/* Makefile or a bsd include mk is missing a -I path specifier 3. Whomever submitted the last netgraph.h edit forgot to tweak a conf or Makefile 4. some part of a recent cvsup failed and I didn't notice it Reason (1) is not likely since a kernel rebuild should have restored any such deleted file... My current workaround is to just touch an opt_netgraph.h into the "@" symlinked directory. Works fine. I just remain curious as to what's really broken. On Tuesday 13 September 2005 11:53 am, John-Mark Gurney wrote: > Lonnie VanZandt wrote this message on Tue, Sep 13, 2005 at 10:00 -0600: > > Sometime between 5.4 RC3 and 5.4 STABLE, netgraph/netgraph.h went from > > version 1.43.2.5 to 1.43.2.10. In doing so, an include of > > "opt_netgraph.h" was added to that file. This causes code including > > netgraph/netgraph.h, on my system, to fail to compile since > > opt_netgraph.h isn't in the include path. > > > > When a kernel conf file doesn't have "options NETGRAPH" the generated > > opt_netgraph.h file is empty. With "options NETGRAPH" the file simply > > contains "#define NETGRAPH 1". So, either way, the file isn't hard to > > create - but I need to know where it should reside in the "@" hierarchy. > > > > Does anyone (say julian@) know? And, just for curiousity sake, does > > anyone know which update step I probably overlooked which led to the > > breakage on my platform? > > The opt_*.h files are automaticly created by config... Sometimes you > just need to rerun config before building your kernel... > > If it fails building the module, then the module's Makefile needs to > be fixed to create the opt_*.h files as necessary...