Subject: kernel fails to build without COMPAT_SVR4
To: None <port-sparc@NetBSD.ORG>
From: Robert Evans <r.evans@ic.ac.uk>
List: port-sparc
Date: 03/18/1996 16:23:40
Hi,

On a fresh sup (ca. 11am GMT 18-Mar-96), the kernel fails to build 
without COMPAT_SVR4 defined due to the following error:

cc  -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -I. \
	-I../../../../arch -I../../../.. -DSUN4C -DTIMEZONE="0" -DDST="0" \
	-DSWAPPAGER -DVNODEPAGER -DDEVPAGER -DKTRACE -DRASTERCONSOLE \
	-DSYSVMSG -DSYSVSEM -DSYSVSHM -DFFS -DNFSSERVER -DNFSCLIENT \
	-DKERNFS -DFIFO -DFDESC -DPROCFS -DCD9660 -DINET -D_KERNEL  -c \
	../../../../arch/sparc/sparc/trap.c
cc1: warnings being treated as errors
../../../../arch/sparc/sparc/trap.c: In function `trap':
../../../../arch/sparc/sparc/trap.c:309: warning: label `badtrap' defined 
but not used
*** Error code 1
 
Stop.

As far as I can see, the only "goto badtrap" is within the subsequent bit
of code that is surrounded with #ifdef COMPAT_SVR4.

`A' solution is to surround the label with the #ifdef too, although I'm
not sure if it's the correct one...  :-)

Cheers,
Rob