Subject: Re: Compiling kernels on the NetBSD box
To: Michael Graff <explorer@iastate.edu>
From: Dean Huxley <dean@fsa.ca>
List: port-pmax
Date: 11/30/1994 09:20:20
> When compiling a kernel on the NetBSD box itself, which I believe I should
> be able to do now, (right?) I get:
> 
> cc  -O -I. -I../../../../arch -I../../../.. -I../../../../sys -DGENERIC -DDS3100 -DTCP_COMPAT_42 -DINET -DKERNFS -DLOFS -DNFSSERVER -DNFSCLIENT -DMFS -DFFS -DFIFO -DNKMEMCLUSTERS=1024 -DKTRACE -DCOMPAT_ULTRIX -DCOMPAT_43 -DDIAGNOSTIC -DDEVPAGER -DVNODEPAGER -DSWAPPAGER -DKERNEL -Dpmax -D__NetBSD__ -G0  -c vnode_if.c
> In file included from ../../../../sys/vnode.h:355,
>                  from vnode_if.c:47:
> ./vnode_if.h:55: parse error before `)'
> ./vnode_if.h: In function `VOP_LOOKUP':
> ./vnode_if.h:58: declaration for parameter `cnp' but no such parameter
> ./vnode_if.h:57: declaration for parameter `vpp' but no such parameter
> ./vnode_if.h:56: declaration for parameter `dvp' but no such parameter
> ./vnode_if.h: At top level:
> ./vnode_if.h:76: parse error before `)'
> ./vnode_if.h: In function `VOP_CREATE':
> 
> ...
> 
> Is the netbsd side able to compile it's own kernel yet, or do I still need the
> Dark Side (Ultrix) ?

Something is wrong with awk or sh.  But it is easy to fix:

	mv vnode.h vnode.h.old
	sed -e 's/, )/)/' vnode.h.old > vnode.h

Dean.