From owner-freebsd-hackers Sat Jul 15 20:50:11 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from netplex.com.au (adsl-63-207-30-186.dsl.snfc21.pacbell.net [63.207.30.186]) by hub.freebsd.org (Postfix) with ESMTP id 6947637B56B for ; Sat, 15 Jul 2000 20:50:08 -0700 (PDT) (envelope-from peter@netplex.com.au) Received: from netplex.com.au (peter@localhost [127.0.0.1]) by netplex.com.au (8.9.3/8.9.3) with ESMTP id UAA20408; Sat, 15 Jul 2000 20:50:02 -0700 (PDT) (envelope-from peter@netplex.com.au) Message-Id: <200007160350.UAA20408@netplex.com.au> X-Mailer: exmh version 2.1.1 10/15/1999 To: Darren Reed Cc: hackers@FreeBSD.ORG Subject: Re: options INET6 vs opt_inet.h In-Reply-To: Message from Darren Reed of "Sun, 16 Jul 2000 11:42:12 +1000." <200007160142.LAA17043@cairo.anu.edu.au> Date: Sat, 15 Jul 2000 20:50:01 -0700 From: Peter Wemm Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Darren Reed wrote: > > So, it would appear that in /sys/conf/options, we have the following: > > INET opt_inet.h > INET6 opt_inet6.h > > Which might seem all nice and dandy - except that config will not generate > "opt_inet6.h" with "#undef INET6" if "option INET6" is not present and so > you cannot inlcude "opt_inet6.h" to determine if INET6 is defined. There > are two possible fixes here - which are not necessarily mutually exclusive > of each other: > > 1. make config generate opt_inet6.h anyway Umm.. but it does already! peter@beast[8:42pm]~src/sys/i386/conf-103> grep INET6 TEST #options INET6 #IPv6 communications protocols peter@beast[8:42pm]~src/sys/i386/conf-104> rm ../../compile/TEST/opt_inet6.h peter@beast[8:42pm]~src/sys/i386/conf-105> config TEST Don't forget to do a ``make depend'' Kernel build directory is ../../compile/TEST peter@beast[8:42pm]~src/sys/i386/conf-106> cat ../../compile/TEST/opt_inet6.h peter@beast[8:45pm]~src/sys/i386/conf-107> vi TEST peter@beast[8:45pm]~src/sys/i386/conf-109> grep INET6 TEST options INET6 #IPv6 communications protocols peter@beast[8:45pm]~src/sys/i386/conf-110> config TEST Don't forget to do a ``make depend'' Kernel build directory is ../../compile/TEST peter@beast[8:45pm]~src/sys/i386/conf-111> cat ../../compile/TEST/opt_inet6.h #define INET6 1 peter@beast[8:45pm]~src/sys/i386/conf-112> > 2. put INET6 in opt_inet.h > > I believe that (2) is quite reasonable but (1) should happen anyway. > > Comments ? I'm not sure what you think is happening, but it most certainly does generate opt_inet6.h as expected. (Well, it doesn't put #indef INET6 in it, but there is no point wasting space doing that..) > Darren Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message