Subject: Re: RCONSDEV undefined in kernel build
To: None <port-pmax@netbsd.org>
From: NetBSD Mailing list <netbsd@mrynet.com>
List: port-pmax
Date: 12/20/1999 01:11:55
> Chris Tribo wrote:
>
> > on 12/17/99 1:07 PM, NetBSD Mailing list at netbsd@mrynet.com wrote:
> >
> > [ RCONSDEV undefined error on kernel compile ]
> > >
> > > Any direction on resolving this would be appreciated.
> > > Attached below is the kernel configuration at issue.
> > >
> > > Cheers,
> > > -skots
> >
> > My guess, (I have not checked the code closely) is that you are getting
> > an undefined reference because you have commented out all of the frame
> > buffers in the config file. Therefore root console does not have a device to
> > define in its routines. Good luck.
>
> Pretty close! You also need to comment out
>
> pseudo-device rasterconsole 1
>
> as well...
>
> Simon.
Well, I've finished many different kernel configurations, and I persist in getting the
following:
cc -O2 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-main -G 0 -mno-abicalls -mno-half-pic -I. -I../../../../arch -I../../../.. -nostdinc -I../../../../../gnu/sys -DMIPS1 -DMIPS3 -DLKM -DNKMEMCLUSTERS=1024 -DHZ=256 -DMAXUSERS=64 -D_KERNEL -Dpmax -c ../../../../arch/pmax/dev/rcons.c
../../../../arch/pmax/dev/rcons.c: In function `rcons_indev':
../../../../arch/pmax/dev/rcons.c: `RCONSDEV' undeclared (first use in this function)
../../../../arch/pmax/dev/rcons.c: (Each undeclared identifier is reported only once
../../../../arch/pmax/dev/rcons.c: for each function it appears in.)
*** Error code 1
Stop.
The last attempt was with the supplied GENERIC kernel without modifications.
It is clear that the kernel code organisation is at issue here, rather than
the configuration files I had modified.
RCONSDEV is defined in arch/pmax/pmax/cons.h. That file contains an #include
for arch/pmax/dev/cons.h. arch/pmax/dev/rcons.c includes the latter, but not
the former file. By changing the #include in rcons.c from the pmax/dev to
the pmax/pmax/cons.h file, the issue is resolved.
After confirmation, this change should be commited, yes? :)
Cheers Chris and Simon,
-Skots
--
Scott G. Akmentins-Taylor InterNet: staylor@mrynet.com
MRY Systems staylor@mrynet.lv
(Skots Gregorijs Akmentins-Teilors -- just call me "Skots")
----- Labak miris neka sarkans -----