Subject: port-sun3/4532: kernel doesn't compile
To: None <>
From: Juergen Hannken-Illjes <>
List: netbsd-bugs
Date: 11/18/1997 13:17:06
>Number:         4532
>Category:       port-sun3
>Synopsis:       kernel doesn't compile
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 18 04:20:03 1997
>Originator:     Juergen Hannken-Illjes
Juergen Hannken-Illjes - - TU Braunschweig (W Germany)
>Release:        <NetBSD-current source date>today
System: NetBSD tester 1.3_ALPHA NetBSD 1.3_ALPHA (CUSTOM) #23: Mon Nov 17 23:14:22 MET 1997     hannken@tester:/usr/src/sys/arch/sun3x/compile/CUSTOM sun3x

	Kernel doesn't compile because of wrong order of include files in
	file sys/arch/sun3x/sun3x/machdep.c (V1.25).

	sys/sysctl.h uses struct vmspace at line 202, defined in vm/vm.h.
	Try to build a kernel.
Index: machdep.c
RCS file: /cvs/NetBSD/src/sys/arch/sun3x/sun3x/machdep.c,v
retrieving revision
diff -u -2 -r1.1.1.15 machdep.c
--- machdep.c	1997/10/10 08:23:03
+++ machdep.c	1997/11/18 12:11:47
@@ -64,5 +64,4 @@
 #include <sys/kcore.h>
 #include <sys/vnode.h>
-#include <sys/sysctl.h>
 #include <sys/syscallargs.h>
 #ifdef SYSVMSG
@@ -83,4 +82,6 @@
 #include <vm/vm_kern.h>
 #include <vm/vm_page.h>
+#include <sys/sysctl.h>
 #include <dev/cons.h>