Subject: Re: -current not building, stopping in libpthread:
To: None <htodd@twofifty.com, yamt@NetBSD.org>
From: Tatoku Ogaito <tacha@tack.fukui-med.ac.jp>
List: current-users
Date: 10/10/2003 14:15:06
>> On Thu, 9 Oct 2003 13:12:03 -0700 (PDT)
 Hisashi T Fujinaka <htodd@twofifty.com> wrote:

 > dependall ===> libpthread
 > CC=/usr/src/obj.i386/tooldir.NetBSD-1.6ZC-i386/bin/i386--netbsdelf-gcc
 > /usr/src/obj.i386/tooldir.NetBSD-1.6ZC-i386/bin/nbmkdep -f pthread_md.d -I/usr/src/lib/libpthread/arch/i386 -I/usr/src/lib/libpthread -I/usr/src/lib/libpthread/obj.i386 -D_LIBC   -nostdinc -isystem /usr/src/obj.i386/destdir.i386/usr/include /usr/src/lib/libpthread/arch/i386/pthread_md.c
 > In file included from /usr/src/lib/libpthread/arch/i386/pthread_md.c:44:
 > /usr/src/obj.i386/destdir.i386/usr/include/machine/cpu.h:57:55:
 > lib/libkern/libkern.h: No such file or directory
 > nbmkdep: compile failed.

I took a glance the sys/arch/i386/include/cpu.h, following patch should
fix the problem.

HTH

Tacha

Index: sys/arch/i386/include/cpu.h
===================================================================
RCS file: /cvsroot/NetBSD-cvs/main/src/sys/arch/i386/include/cpu.h,v
retrieving revision 1.105
diff -u -r1.105 cpu.h
--- sys/arch/i386/include/cpu.h	9 Oct 2003 13:46:43 -0000	1.105
+++ sys/arch/i386/include/cpu.h	10 Oct 2003 04:56:40 -0000
@@ -54,7 +54,9 @@
 #include <sys/lock.h>			/* will also get LOCKDEBUG */
 #include <sys/sched.h>
 
+#if defined(MULTIPROCESSOR)
 #include <lib/libkern/libkern.h>	/* offsetof */
+#endif
 
 struct intrsource;