Subject: Re: Current make depend fails on 1.5
To: Iggy Drougge <optimus@canit.se>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-i386
Date: 12/15/2001 18:10:44
On Fri, Dec 14, 2001 at 11:09:29PM +0100, Iggy Drougge wrote:
> I'm not very experienced when it comes to compiling kernels, so I just
> followed the instructions in "The NetBSD operating system - a short guide"
> (http://www.mclink.it/personal/MG2508/nbsdeng/netbsd.html):
> 
> #   cd /sys/arch/i386/conf/
> #   cp GENERIC MYKERNEL
> #   vi MYKERNEL
> #   config MYKERNEL
> #   cd ../compile/MYKERNEL
> #   make depend
> #   make
> 
> Only in this case, I edited GENERIC_PS2TINY
> (I added another NIC in my PS/2 in order to use it as a router, and found that
> the kernel didn't have IP forwarding on.)
> 
> However, in the penultimate step, make depend failed:
> 
> ------8<------
> In file included from ../../../../netinet/in_proto.c:153:
> stf.h:2: warning: `NINET' redefined
> opt_inet.h:6: warning: this is the location of the previous definition
> In file included from ../../../../netinet/udp_usrreq.c:116:
> faith.h:2: warning: `NINET' redefined
> opt_inet.h:6: warning: this is the location of the previous definition
> mkdep: compile failed.
> *** Error code 1
> 
> Stop.

You need to rebuild usr.sbin/config first.
You may also have assembler issues.

--
Manuel Bouyer <bouyer@antioche.eu.org>
--