Subject: Re: NetBSD - 1.3
To: Phil Budne <budd@cs.bu.edu>
From: Jon Buller <jonb@metronet.com>
List: port-pc532
Date: 10/28/1997 07:15:29
From: Phil Budne <budd@cs.bu.edu>
> 
> 	From: Jon Buller <jonb@metronet.com>
> 
> 	I was hoping someone could either supply a snapshot,
> 
> I was going to try over the weekend but was seeing really bad stuff.
> Maybe it's libc, or perhaps it's my local kernel hacks!

I think it's libc, I've been having a world of problems since mid Sept when
I first tried to get back to -current from mid August

> 	or give
> 	me a few hints about the problems with the scn driver not
> 	having TRUE and FALSE defined,
> 
> This one was fixed in the CVS repository
> 
> 	db_machdep.c including a file
> 	which wanted vm/lock.h which doesn't exist, and this:
> 
> remove the include of vm/lock.k from db_machdep.h
> 

I got both of those...  They're kinda cheesy (defining TRUE and FALSE in
scnreg.h, etc. but it worked for the simple things. 8-)

> 	cc  -O2 -msb -Wall -Wstrict-prototypes -Wmissing-prototypes  -Wno-format -Werror -I. -I../../../../arch -I../../../.. -nostdinc -DEXEC_AOUT -DEXEC_SCRIPT -DDDB -DKTRACE -DACCOUNTING -DLKM -DCOMPAT_12 -DCOMPAT_43 -DFFS -DNULLFS -DUNION -DMFS -DNFS -DCD9660 -DFDESC -DKERNFS -DPROCFS -DSETUIDSCRIPTS -DFIFO -DNFSSERVER -DGATEWAY -DINET -DPPP_BSDCOMP -DPPP_DEFLATE -DNS381 -DMAXUSERS=8 -D_KERNEL  -c ../../../../arch/pc532/pc532/machdep.c
> 	In file included from ../../../../arch/pc532/pc532/machdep.c:69:
> 	../../../../sys/sysctl.h:202: field `e_vm' has incomplete type
> 	*** Error code 1
> 
> 	Stop.
> 
> move the include of sysctl.h to AFTER the includes of files from vm/
> 
> Also in trap.c, replace the several vm/ includes with vm/vm.h

Thanks a bunch, the kernel compiled with that bit of advice.  First time
since mid Sept that I got a "cd /usr/src/sys/arch/pc532/compile/BULLBOX;make"
to work.

> The libc tweaks needed to get close to building
> (I think I still got errors in glob13);
> 
> machine/profile.h (/sys/arch/pc532/include/profile.h);
> 	needs __P prototype for "mcount"
> 
> Also needing __P prototypes;
> 	lib/libc/arch/ns32k/gen/__main.c
> 	lib/libc/arch/ns32k/gen/flt_rounds.c
> 

I'm sure I'll be hitting these in the next few days...

Jon