Subject: Current make depend fails on 1.5
To: NetBSD/i386 <port-i386@netbsd.org>
From: Iggy Drougge <optimus@canit.se>
List: port-i386
Date: 12/14/2001 14:09:58
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.
------8<------

I first thought I had only been clumsy when configuring my own kernel (based
on GENERIC_PS2TINY), so I thought I'd see how make depend would fare if I
ran it on the default GENERIC_PS2TINY:

------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
stf.h:3: warning: `NINET6' redefined
opt_inet.h:4: warning: this is the location of the previous definition
In file included from ../../../../netinet/tcp_input.c:193:
faith.h:2: warning: `NINET' redefined
opt_inet.h:6: warning: this is the location of the previous definition
faith.h:3: warning: `NINET6' redefined
opt_inet.h:4: 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
faith.h:3: warning: `NINET6' redefined
opt_inet.h:4: warning: this is the location of the previous definition
In file included from ../../../../netinet6/icmp6.c:109:
faith.h:2: warning: `NINET' redefined
opt_inet.h:6: warning: this is the location of the previous definition
faith.h:3: warning: `NINET6' redefined
opt_inet.h:4: warning: this is the location of the previous definition
In file included from ../../../../netinet6/in6_pcb.c:100:
faith.h:2: warning: `NINET' redefined
opt_inet.h:6: warning: this is the location of the previous definition
faith.h:3: warning: `NINET6' redefined
opt_inet.h:4: warning: this is the location of the previous definition
In file included from ../../../../netinet6/ip6_input.c:122:
faith.h:2: warning: `NINET' redefined
opt_inet.h:6: warning: this is the location of the previous definition
faith.h:3: warning: `NINET6' redefined
opt_inet.h:4: warning: this is the location of the previous definition
In file included from ../../../../netinet6/udp6_output.c:109:
faith.h:2: warning: `NINET' redefined
opt_inet.h:6: warning: this is the location of the previous definition
faith.h:3: warning: `NINET6' redefined
opt_inet.h:4: warning: this is the location of the previous definition
In file included from ../../../../netinet6/udp6_usrreq.c:109:
faith.h:2: warning: `NINET' redefined
opt_inet.h:6: warning: this is the location of the previous definition
faith.h:3: warning: `NINET6' redefined
opt_inet.h:4: warning: this is the location of the previous definition
mkdep: compile failed.
*** Error code 1

Stop.
--------8<------

Due to space constraints on the PS/2 ESDI drive, I compiled the kernels on a
slightly faster SCSI-based system, running 1.5. Here's what uname -a says:

NetBSD prosignia 1.5 NetBSD 1.5 (GENERIC) #1: Sun Nov 19 21:42:11 MET 2000    
f
vdl@sushi:/work/trees/netbsd-1-5/sys/arch/i386/compile/GENERIC i386


What's up?

--
En ligne avec Thor 2.6a.