Darren Reed wrote:
So, it would appear that in /sys/conf/options, we have the following:
INETopt_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
#optionsINET6 #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 - [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
"All of this is for nothing if we don't go to the stars" - JMS/B5
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message