Subject: port-mac68k/4283: Can't compile current mac68k kernel
To: None <>
From: Dave Huang <>
List: netbsd-bugs
Date: 10/17/1997 01:23:57
>Number:         4283
>Category:       port-mac68k
>Synopsis:       Can't compile current mac68k kernel
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 16 23:35:03 1997
>Originator:     Dave Huang
Name: Dave Huang     |   Mammal, mammal / their names are called /
INet:   |   they raise a paw / the bat, the cat /
FurryMUCK: Dahan     |   dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 21 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++
>Release:        NetBSD-current as of October 16, 1997
System: NetBSD 1.2G NetBSD 1.2G (SPIFF) #140: Wed Oct 15 21:55:12 CDT 1997 i386

Compiling a mac68k kernel fails with the following:
m68k-netbsd-gcc -g -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -msoft-float -I. -I../../../../arch -I../../../.. -nostdinc -DHZ="0x3c" -DEXEC_AOUT -DEXEC_SCRIPT -DMAXFDESCS="0x800" -DKTRACE -DSYSVMSG -DSYSVSEM -DSYSVSHM -DLKM -DINSECURE -DUCONSOLE -DDDB -DDIAGNOSTIC -DCOMPAT_43 -DFFS -DNFS -DKERNFS -DFDESC -DPROCFS -DCD9660 -DUNION -DFIFO -DINET -DTCP_COMPAT_42 -DGATEWAY -DPPP_DEFLATE -DM68040 -DFPSP -DZS_CONSOLE_ABORT -DMAXUSERS=16 -D_KERNEL  -Dmc68020 -Dmac68k  -c ../../../../arch/mac68k/mac68k/machdep.c
In file included from ../../../../arch/mac68k/mac68k/machdep.c:140:
../../../../sys/sysctl.h:202: field `e_vm' has incomplete type
In file included from ../../../../vm/pmap.h:87,
                 from ../../../../arch/mac68k/mac68k/machdep.c:167:
machine/pmap.h:103: parse error before `simple_lock_data_t'
cc1: warnings being treated as errors
machine/pmap.h:103: warning: no semicolon at end of struct or union
machine/pmap.h:106: parse error before `}'
[ a BUNCH more errors ]

After getting past that, arch/m68k/m68k/sig_machdep.c fails to compile, but it looks like that problem's been fixed.
Try to compile a mac68k kernel.
Something like this should do the trick:

Thu Oct 16 11:16:18 PDT 1997
Update of /cvsroot/src/sys/arch/hp300/hp300
In directory netbsd1:/var/slash-tmp/cvs-serv27985

Modified Files:
Log Message:
include vm/vm.h
move include of sysctl.h after vm.h