Subject: Compilation failures with bwtwo on sun4c
To: None <port-sparc@NetBSD.ORG>
From: None <r.evans@ic.ac.uk>
List: port-sparc
Date: 10/18/1996 14:16:08
Hi,

I'm just trying a build of -current on a SLC, and it's failing in the
following manner:

cc  -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -I. -I../../../../arch -I../../../.. -nostdinc -DEXEC_AOUT -DEXEC_SCRIPT -DSUN4C -DSWAPPAGER -DVNODEPAGER -DDEVPAGER -DKTRACE -DSYSVMSG -DSYSVSEM -DSYSVSHM -DCOMPAT_43 -DCOMPAT_10 -DCOMPAT_11 -DCOMPAT_12 -DFFS -DNFSSERVER -DNFSCLIENT -DCD9660 -DFIFO -DINET -DRASTERCONSOLE -DRASTERCONS_FULLSCREEN -DMAXUSERS=8 -D_KERNEL  -c ../../../../arch/sparc/dev/bwtwo.c
../../../../arch/sparc/dev/bwtwo.c: In function `bwtwoattach':
../../../../arch/sparc/dev/bwtwo.c:332: structure has no member named `sc_ovtype'
../../../../arch/sparc/dev/bwtwo.c:332: `BWO_NONE' undeclared (first use this function)
../../../../arch/sparc/dev/bwtwo.c:332: (Each undeclared identifier is reported only once
../../../../arch/sparc/dev/bwtwo.c:332: for each function it appears in.)
*** Error code 1
 
Stop.

As far as I can see, "sc_ovtype" and "BWO_NONE" are only defined if you
have "SUN4" defined, but I only have "SUN4C" defined.  Either the "#if
defined(SUN4)" at line 93 should be widened, or the #ifdef of
RASTERCONSOLE on line 326 should be changed to check if RASTERCONSOLE
and SUN4 are defined.

Not knowing what the overlay stuff is about, I don't know which is the
correct fix, but I guess from glancing at the rest of the code it is to
change line 326 to

#if defined(RASTERCONSOLE) && defined (SUN4)

Cheers,
Rob