On Sun, Nov 17, 2002 at 03:46:55PM -0500, Jake Burkholder wrote: > Apparently, On Sun, Nov 17, 2002 at 12:23:20PM -0800, > Julian Elischer said words to the effect of; > > On Sun, 17 Nov 2002, Mike Barcroft wrote: > > > -------------------------------------------------------------- > > > >>> Kernel build for GENERIC started on Sun Nov 17 20:01:33 GMT 2002 > > > -------------------------------------------------------------- > > > ===> ipfilter > > > /tinderbox/sparc64/src/sys/kern/kern_thread.c: In function `kse_create': > > > /tinderbox/sparc64/src/sys/kern/kern_thread.c:498: `mp_ncpus' undeclared (first >use in this function) > > > /tinderbox/sparc64/src/sys/kern/kern_thread.c:498: (Each undeclared identifier >is reported only once > > > /tinderbox/sparc64/src/sys/kern/kern_thread.c:498: for each function it appears >in.) > > > > > > ok mea culpa.. > > > > what is there in SPARC that should be used instead..? > > mp_ncpus is defined in sys/smp.h which is not included kern_thread.c > I don't see why this builds on any platform. > > Jake
This does not compile on i386 with options SMP, either. It looks like a '#if 0' was removed in kern_thread.c rev 1.61, which exposes bug in SMP case. Something like this should fix kernel building. (I have no idea where to place the #include, though) Index: kern_thread.c =================================================================== RCS file: /home/ncvs/src/sys/kern/kern_thread.c,v retrieving revision 1.61 diff -u -r1.61 kern_thread.c --- kern_thread.c 17 Nov 2002 11:47:03 -0000 1.61 +++ kern_thread.c 17 Nov 2002 22:22:35 -0000 @@ -47,6 +47,10 @@ #include <sys/ktr.h> #include <sys/ucontext.h> +#ifdef SMP +#include <sys/smp.h> +#endif + #include <vm/vm.h> #include <vm/vm_object.h> #include <vm/pmap.h> To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message