Subject: Re: -current build error
To: Paul Goyette , macbsd port <port-mac68k@NetBSD.ORG>
From: Julian Bean <jules@mailbox.co.uk>
List: port-mac68k
Date: 03/31/1996 22:49:58
At 3:57 am 31/3/96, Paul Goyette wrote:
>Finally got a sup to work, but now get the following error while
>rebuilding the kernel:
>
>cc -m68030  -O -Werror -msoft-float -I. -I../../../../arch -I../../../..
>-DTIMEZONE="0" -DDST="0" -DHZ="0x3c" -DMAXFDESCS="0x800" -DSWAPPAGER
>-DVNODEPAGER -DDEVPAGER -DDIAGNOSTIC -DKTRACE -DGDB -DFIFO -DDDB -DFFS
>-DQUOTA -DMFS -DNFSSERVER -DNFSCLIENT -DNULLFS -DCD9660 -DKERNFS -DFDESC
>-DPROCFS -DUNION -DLKM -DSCSI -DINET -DTCP_COMPAT_42 -DGATEWAY -DCOMPAT_42
>-DCOMPAT_43 -DNS -DMAPMEM -DSYSVSHM -DSYSVSEM -DSYSVMSG -DNTP -DM68030
>-DCOMPAT_NOMID -DCOMPAT_SUNOS -DCOMPAT_09 -DCOMPAT_10 -DCOMPAT_11
>-DMACHINE_NONCONTIG -D_KERNEL -Dmc68020 -Dmac68k  -c
>../../../../arch/mac68k/mac68k/pram.c
>In file included from ../../../../arch/mac68k/mac68k/pram.c:38:
>machine/viareg.h:170: syntax error before `__P'
>machine/viareg.h:171: syntax error before `__P'
>machine/viareg.h:172: syntax error before `__P'
>machine/viareg.h:173: syntax error before `__P'
>machine/viareg.h:174: syntax error before `__P'
>machine/viareg.h:175: syntax error before `__P'
>*** Error code 1
>
>Stop.

Me too.  I fixed it ??? by removing the #include <machine/viareg.h>.

Why is it including this file rather than mac68k/mac68k/via.h anyway?
Isn't machine/viareg.h a user-land include?

On that line, why do we need a userland include file for VIA registers.
Aren't they in kernel space anyway, and useless to userland processes?

Jules

P.S. I have found some differences between the code in via.c and my LCIII
ROMs, and am about to test a kernel which handles RBV interrupts in a way
closer to my ROMs.  Wish me luck...

P.P.S Allen, I see you checked in a new via.c.  What work have you been
doing on via stuff ATM?



/----------------+-------------------------------+---------------------\
|  Jelibean aka  | jules@mailbox.co.uk           |  6 Evelyn Road      |
|  Jules aka     |                               |  Richmond, Surrey   |
|  Julian Bean   |(jelibean@jmlbhome.demon.co.uk)|  TW9 2TF    *UK*    |
+----------------+-------------------------------+---------------------+
|  The Other Place - n. (pop.) Depending on the affiliation of the     |
|  speaker, one of Oxford, Cambridge, The House of Lords, The House of |
|  Commons, Hell.  Draw your own conclusions.                          |
\----------------------------------------------------------------------/