Subject: Re: kernel compile 1.4.2 failed
To: Anders Andersson <anders@sanyusan.se>
From: Simon Burge <simonb@netbsd.org>
List: port-pmax
Date: 04/12/2000 00:25:30
Anders Andersson wrote:

> Trying to build a custom kernel for 1.4.2
> 
> cc  -O2 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes
> -Wno-uninitialized -Wpointer-arith -Wno-main -G 0  -mno-abicalls
> -mno-half-pic -I. -I../../../../arch -I../../../.. -nostdinc -DMIPS1
> -DLKM -DNKMEMCLUSTERS=1024 -DHZ=256 -DMAXUSERS=64 -D_KERNEL -Dpmax  -c
> ../../../../arch/pmax/tc/scc.c
> cc1: warnings being treated as errors
> ../../../../arch/pmax/tc/scc.c: In function `scc_rxintr':
> ./../../../arch/pmax/tc/scc.c:1142: warning: unused variable `cp'
> *** Error code 1

Change 1142 to be:

	#ifdef HAVE_RCONS
		char *cp;
	#endif

and it should work for you.  If this works, please let me know and I'll
get the change pulled up for any further 1.4.x releases.

Simon.