Subject: port-mac68k/3742: m68k_machdep.c doesn't compile
To: None <>
From: Chris Jones <>
List: netbsd-bugs
Date: 06/12/1997 13:12:13
>Number:         3742
>Category:       port-mac68k
>Synopsis:       m68k_machdep.c doesn't compile
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 12 12:20:01 1997
>Originator:     Chris Jones
Chris Jones                            
           Mad scientist in training...
"Is this going to be a stand-up programming session, sir, or another bug hunt?"
>Release:        1.2
System: NetBSD 1.2E NetBSD 1.2E (RUPERT) #1: Wed May 28 15:45:29 MDT 1997 mac68k

Script started on Thu Jun 12 12:53:31 1997
# pwd
# make
making sure the fpsp is up to date...
`fpsp.o' is up to date.
cc  -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -msoft-float -I. -I../../../../arch -I../../../.. -nostdinc -DHZ="0x3c" -DEXEC_AOUT -DEXEC_SCRIPT -DSWAPPAGER -DVNODEPAGER -DDEVPAGER -DKTRACE -DSYSVMSG -DSYSVSEM -DSYSVSHM -DLKM -DUCONSOLE -DDIAGNOSTIC -DCOMPAT_43 -DCOMPAT_10 -DCOMPAT_11 -DCOMPAT_12 -DFFS -DNFS -DKERNFS -DMFS -DPROCFS -DUNION -DNFSSERVER -DFIFO -DINET -DTCP_COMPAT_42 -DM68030 -DM68020 -DFPSP -DZS_CONSOLE_ABORT -DMAXUSERS=16 -D_KERNEL  -Dmc68020 -Dmac68k  -c ../../../../arch/m68k/m68k/m68k_machdep.c
In file included from machine/param.h:91,
                 from ../../../../arch/m68k/m68k/m68k_machdep.c:39:
machine/intr.h:98: syntax error before `ssir'
cc1: warnings being treated as errors
machine/intr.h:98: warning: data definition has no type or storage class
machine/intr.h:116: syntax error before `__P'
In file included from ../../../../arch/m68k/m68k/m68k_machdep.c:39:
machine/param.h:114: syntax error before `__P'
*** Error code 1

# exit

Script done on Thu Jun 12 12:54:57 1997
Added to m68k_machdep.c:

#include <sys/cdefs.h>
#include <sys/types.h>