Subject: Re: rasops kernel compilation problem on pmax
To: Erik Bertelsen <erik@mediator.uni-c.dk>
From: Simon Burge <simonb@netbsd.org>
List: current-users
Date: 08/15/1999 16:10:41
Erik Bertelsen wrote:

> When compiling a custom kernel  for my pmax, I get 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 -DMIPS1 -DHZ=256 -DMAXUSERS=64 -D_KERNEL -Dpmax  -c ../../../../dev/rasops/rasops8.c
> ../../../../dev/rasops/rasops8.c: In function `rasops8_makestamp':
> ../../../../dev/rasops/rasops8.c:183: `ri' undeclared (first use in this function)
> ./../../../dev/rasops/rasops8.c:183: (Each undeclared identifier is reported only once
> ../../../../dev/rasops/rasops8.c:183: for each function it appears in.)
> *** Error code 1
> 
> Any easy explanation ?
> 
> regards
> Erik Bertelsen

I've sent the following patch for Andy Doran to confirm, but it seems
to work for me (but I don't have a framebuffer :-).

Simon.
--

Index: rasops8.c
===================================================================
RCS file: /cvsroot/syssrc/sys/dev/rasops/rasops8.c,v
retrieving revision 1.5
diff -p -u -r1.5 rasops8.c
--- rasops8.c	1999/08/13 09:45:46	1.5
+++ rasops8.c	1999/08/15 04:22:30
@@ -53,7 +53,7 @@ static void 	rasops8_putchar __P((void *
 static void 	rasops8_putchar8 __P((void *, int, int, u_int, long attr));
 static void 	rasops8_putchar12 __P((void *, int, int, u_int, long attr));
 static void 	rasops8_putchar16 __P((void *, int, int, u_int, long attr));
-static void	rasops8_makestamp __P((long));
+static void	rasops8_makestamp __P((struct rasops_info *ri, long));
 void		rasops8_init __P((struct rasops_info *ri));
 
 /* 
@@ -174,7 +174,8 @@ rasops8_putchar(cookie, row, col, uc, at
  * Recompute the 4x1 blitting stamp.
  */
 static void
-rasops8_makestamp(attr)
+rasops8_makestamp(ri, attr)
+	struct rasops_info *ri;
 	long attr;
 {
 	int i;
@@ -238,7 +239,7 @@ rasops8_putchar8(cookie, row, col, uc, a
 
 	/* Recompute stamp? */
 	if (attr != stamp_attr)
-		rasops8_makestamp(attr);
+		rasops8_makestamp(ri, attr);
 	
 	rp = (int32_t *)(ri->ri_bits + row*ri->ri_yscale + col*ri->ri_xscale);
 	height = ri->ri_font->fontheight;
@@ -312,7 +313,7 @@ rasops8_putchar12(cookie, row, col, uc, 
 
 	/* Recompute stamp? */
 	if (attr != stamp_attr)
-		rasops8_makestamp(attr);
+		rasops8_makestamp(ri, attr);
 	
 	rp = (int32_t *)(ri->ri_bits + row*ri->ri_yscale + col*ri->ri_xscale);
 	height = ri->ri_font->fontheight;
@@ -389,7 +390,7 @@ rasops8_putchar16(cookie, row, col, uc, 
 
 	/* Recompute stamp? */
 	if (attr != stamp_attr)
-		rasops8_makestamp(attr);
+		rasops8_makestamp(ri, attr);
 	
 	rp = (int32_t *)(ri->ri_bits + row*ri->ri_yscale + col*ri->ri_xscale);
 	height = ri->ri_font->fontheight;