Subject: Re: errors wihile compiling kernel
To: Marek Keerand <marek.keerand@uninet.ee>
From: Michael Freeman <mlfreeman@gmail.com>
List: port-cobalt
Date: 12/08/2004 15:14:16
Sent to the list also so this gets archived for other people...
This has something to do with the LCD driver patch not applying right.
It happened to me, so I'm going to tell you all I can remember about
the fix (so I apologize if some of it is incomplete or possibly
slightly wrong -- I dealt with this some months ago).
Look for files ending in .orig.
If any of the following files exist, copy them over their .c or .h
counterparts, which should be in the same directory. The kernel
should then compile with the LCD driver included...
sys/dev/ic/lcdkp_subr.c.orig
sys/dev/ic/lcdkp_subr.h.orig
sys/dev/ic/hd44780_subr.c.orig
sys/dev/ic/hd44780_subr.h.orig
sys/arch/cobalt/dev/lcd.c.orig
sys/arch/cobalt/dev/panel.c.orig
sys/arch/cobalt/dev/gt.c.orig
--Michael L. Freeman
On Wed, 08 Dec 2004 15:35:51 +0200, Marek Keerand
<marek.keerand@uninet.ee> wrote:
> 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
>
>