Subject: errors wihile compiling kernel
To: None <port-cobalt@NetBSD.org>
From: Marek Keerand <marek.keerand@uninet.ee>
List: port-cobalt
Date: 12/08/2004 15:35:51
Hi

I have a Cobalt Qube2 microserver with NetBSD 1.6.1. When i'm trying to 
build custom kernel i get following error:

bash-2.05b# make
cc  -EL -G 0 -mno-abicalls -mno-half-pic -msoft-float -ffreestanding  
-O2 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith 
-Wmissing-prototypes -Wstrict-prototypes -Wno-uninitialized  -Dcobalt 
-I.  -I../../../../arch -I../../../.. -nostdinc -DMIPS3 -DMIPS3_5200 
-D__NO_SOFT_SERIAL_INTERRUPT -DLKM -DDIAGNOSTIC -DIPSEC_DEBUG 
-DIPFILTER_DEFAULT_BLOCK -DRANDOM_IP_ID -DIPFIREWALL -DIPDIVERT 
-DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT   -c 
/sys/arch/cobalt/compile/MYKERNEL/../../../../dev/ic/lcdkp_subr.c
In file included from 
/sys/arch/cobalt/compile/MYKERNEL/../../../../dev/ic/lcdkp_subr.c:190:
machine/autoconf.h:30: redefinition of `struct mainbus_attach_args'
/sys/arch/cobalt/compile/MYKERNEL/../../../../dev/ic/lcdkp_subr.c:206: 
redefinition of `lcdkp_attach_subr'
/sys/arch/cobalt/compile/MYKERNEL/../../../../dev/ic/lcdkp_subr.c:54: 
`lcdkp_attach_subr' previously defined here
/sys/arch/cobalt/compile/MYKERNEL/../../../../dev/ic/lcdkp_subr.c:217: 
redefinition of `lcdkp_scankey'
/sys/arch/cobalt/compile/MYKERNEL/../../../../dev/ic/lcdkp_subr.c:65: 
`lcdkp_scankey' previously defined here
/sys/arch/cobalt/compile/MYKERNEL/../../../../dev/ic/lcdkp_subr.c:243: 
redefinition of `lcdkp_readkey'
/sys/arch/cobalt/compile/MYKERNEL/../../../../dev/ic/lcdkp_subr.c:91: 
`lcdkp_readkey' previously defined here
/sys/arch/cobalt/compile/MYKERNEL/../../../../dev/ic/lcdkp_subr.c:266: 
redefinition of `lcdkp_scan'
/sys/arch/cobalt/compile/MYKERNEL/../../../../dev/ic/lcdkp_subr.c:114: 
`lcdkp_scan' previously defined here
/sys/arch/cobalt/compile/MYKERNEL/../../../../dev/ic/lcdkp_subr.c:287: 
redefinition of `lcdkp_poll'
/sys/arch/cobalt/compile/MYKERNEL/../../../../dev/ic/lcdkp_subr.c:135: 
`lcdkp_poll' previously defined here
In file included from 
/sys/arch/cobalt/compile/MYKERNEL/../../../../dev/ic/lcdkp_subr.c:342:
machine/autoconf.h:30: redefinition of `struct mainbus_attach_args'
/sys/arch/cobalt/compile/MYKERNEL/../../../../dev/ic/lcdkp_subr.c:358: 
redefinition of `lcdkp_attach_subr'
/sys/arch/cobalt/compile/MYKERNEL/../../../../dev/ic/lcdkp_subr.c:206: 
`lcdkp_attach_subr' previously defined here
/sys/arch/cobalt/compile/MYKERNEL/../../../../dev/ic/lcdkp_subr.c:369: 
redefinition of `lcdkp_scankey'
/sys/arch/cobalt/compile/MYKERNEL/../../../../dev/ic/lcdkp_subr.c:217: 
`lcdkp_scankey' previously defined here
/sys/arch/cobalt/compile/MYKERNEL/../../../../dev/ic/lcdkp_subr.c:395: 
redefinition of `lcdkp_readkey'
/sys/arch/cobalt/compile/MYKERNEL/../../../../dev/ic/lcdkp_subr.c:243: 
`lcdkp_readkey' previously defined here
/sys/arch/cobalt/compile/MYKERNEL/../../../../dev/ic/lcdkp_subr.c:418: 
redefinition of `lcdkp_scan'
/sys/arch/cobalt/compile/MYKERNEL/../../../../dev/ic/lcdkp_subr.c:266: 
`lcdkp_scan' previously defined here
/sys/arch/cobalt/compile/MYKERNEL/../../../../dev/ic/lcdkp_subr.c:439: 
redefinition of `lcdkp_poll'
/sys/arch/cobalt/compile/MYKERNEL/../../../../dev/ic/lcdkp_subr.c:287: 
`lcdkp_poll' previously defined here
*** Error code 1

Stop.

Does somebody know how to solve this problem

Any help would be great

Marek