Subject: Re: "config" errors for kernel building :(
To: None <poff@sixbit.org>
From: Luke Mewburn <lukem@netbsd.org>
List: netbsd-help
Date: 01/05/2003 22:35:39
On Sun, Jan 05, 2003 at 12:02:23PM +0100, poff@sixbit.org wrote:
  | Hello,
  | 
  | I just untarred sys.tar.gz from NetBSD-current/tar_files/src into
  | /usr/sys/src with a symlink from /sys
  | 
  | ie
  | 
  | lrwxrwxr-x   1 root  wheel        12 Jan  6 11:51 sys -> /usr/src/sys
  | 
  | So I edited my personal conf, and when running config MYKERNEL I get:
  | 
  | ../../../../netinet6/files.netipsec:4: syntax error
  | ../../../../conf/files:171: syntax error
  | ../../../../conf/files:219: syntax error
  | ../../../../conf/files:409: undefined attribute `wlan'
  | ../../../../conf/files:415: undefined attribute `wlan'
  | *** Stop.
  | 
  | This was happening before so I wiped the old sys and downloaded the
  | current one.
  | 
  | I'm using an iso for NetBSD-1.6 - is this why it's screwing up?

Build a new config binary and use that; the one in NetBSD 1.6 does not
recognise new directives that are used in -current.

It's probably easier if you extract all of the sources (not just
sys.tgz) into a separate place and use "build.sh -k KERNELNAME"
to build new tools (without affecting your NetBSD 1.6 tools or
includes or libraries under /usr/{bin,include,lib,sbin}), and then
build a kernel with those tools.