Subject: Re: Threads implementation
To: Francisco =?iso-8859-1?Q?Gayt=E1n?= <fg@hispabsd.org>
From: Gary Duzan <gary@duzan.org>
List: current-users
Date: 11/18/2002 08:38:34
In Message <20021117224718.GA22933@hispabsd.org> ,
   Francisco =?iso-8859-1?Q?Gayt=E1n?= <fg@hispabsd.org> wrote:

=>I have removed /usr/src and obtained an updated version. When I'm
=>compiling (./build.sh) I obtain this problem:
=>
=>[...]
=>
=>/usr/src/lib/libc/include/reentrant.h:97: pthread.h: No such file or
=>directory
=>In file included from /usr/src/lib/libc/stdlib/strtod.c:148:
=>/usr/src/lib/libc/include/reentrant.h:97: pthread.h: No such file or
=>directory
=>/usr/src/lib/libc/thread-stub/pthread-stub.c:35: pthread.h: No such file
=>or directory
=>In file included from /usr/src/lib/libc/time/localtime.c:29:
=>/usr/src/lib/libc/include/reentrant.h:97: pthread.h: No such file or
=>directory
=>nbmkdep: compile failed.
=>*** Error code 1

   I had to make a number of (generally relatively minor) changes
to get things to build, and this was one of them:


Index: lib/Makefile
===================================================================
RCS file: /cvsroot/basesrc/lib/Makefile,v
retrieving revision 1.78
diff -u -r1.78 Makefile
--- lib/Makefile	2002/09/26 13:29:44	1.78
+++ lib/Makefile	2002/11/18 13:35:08
@@ -8,6 +8,8 @@
 	libpci libpmc libposix libresolv librmt librpcsvc libterm libusbhid \
 	libutil libwrap liby libz
 
+SUBDIR+=	libpthread libpthread_dbg
+
 .if (${MKSKEY} != "no")
 SUBDIR+= libskey
 .endif
===================================================================

I think that will fix this particular problem for you.

					Gary D. Duzan