Subject: port-mac68k/7237: kernel won't compile
To: None <>
From: Frederick Bruckman <>
List: netbsd-bugs
Date: 03/25/1999 17:00:55
>Number:         7237
>Category:       port-mac68k
>Synopsis:       kernel fails to compile at grf.c
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-mac68k-maintainer (NetBSD/mac68k Portmaster)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 25 15:20:02 1999
>Originator:     Frederick Bruckman

>Release:        Thu Mar 25, 1999
System: NetBSD corwin.home 1.3K NetBSD 1.3K (CORWIN) #28: 
Tue Mar 23 14:17:07 CST 1999 
fredb@corwin.home:/usr/src/sys/arch/mac68k/compile/CORWIN mac68k

Fallout from uvm cleanup (lines wrapped for clarity):
cc  -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith
 -Wno-main -msoft-float -I. -I../../../../arch -I../../../.. -nostdinc 
 -c ../../../../arch/mac68k/dev/grf.c
cc1: warnings being treated as errors
../../../../arch/mac68k/dev/grf.c: In function `grfunmap':
../../../../arch/mac68k/dev/grf.c:414: warning:
 implicit declaration of function `uvm_unmap'
*** Error code 1


	The above is from an attempt to compile a custom kernel, but most any 
	kernel, including GENERIC, includes a grf device.
--- /usr/src/sys/arch/mac68k/dev/grf.c.orig	Wed Mar 24 06:18:36 1999
+++ /usr/src/sys/arch/mac68k/dev/grf.c	Thu Mar 25 16:28:50 1999
@@ -73,7 +73,7 @@
 #include <vm/vm_page.h>
 #include <vm/vm_pager.h>
-#include <uvm/uvm_extern.h>
+#include <uvm/uvm.h>
 #include <mac68k/nubus/nubus.h>
 #include <mac68k/dev/itevar.h>