Subject: port-mac68k/7237: kernel won't compile
To: None <gnats-bugs@gnats.netbsd.org>
From: Frederick Bruckman <fb@enteract.com>
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
>Last-Modified:
>Originator: Frederick Bruckman
>Organization:
>Release: Thu Mar 25, 1999
>Environment:
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
>Description:
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
-DHZ="0x3c" -DZSTTY_RING_SIZE="0x1000" -DSETUIDSCRIPTS -DM68040 -DFPSP -DLKM
-DDIAGNOSTIC -DMAXUSERS=16 -D_KERNEL -Dmac68k
-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
Stop.
>How-To-Repeat:
The above is from an attempt to compile a custom kernel, but most any
kernel, including GENERIC, includes a grf device.
>Fix:
--- /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>
>Audit-Trail:
>Unformatted: