Subject: Re: CVS commit: [nathanw_sa] basesrc/lib/libc/include
To: Nathan J Williams <nathanw@netbsd.org>
From: Wayne Knowles <wdk@netbsd.org>
List: source-changes
Date: 01/01/2002 22:25:30
On Sun, 30 Dec 2001, Nathan J Williams wrote:

>
> Module Name:	basesrc
> Committed By:	nathanw
> Date:		Sun Dec 30 02:27:59 UTC 2001
>
> Modified Files:
> 	basesrc/lib/libc/include [nathanw_sa]: reentrant.h
>
> Log Message:
> Define thr_errno() to be pthread__errno() when _REENTRANT is defined.
> (This entire layer of #defines is silly.)

Hi Nathan,

The standard libc is built with -D_REENTRANT which causes a dependancy
for pthread__errno() on my machine.   A simple C program now requires
linking with libpthread:

sgimips% cat hello.c

#include <stdio.h>

main ()
{

        printf("Hello, World\n");
}
sgimips% cc hello.c
/usr/lib/libc.so: undefined reference to `pthread__errno'
collect2: ld returned 1 exit status
sgimips%


Any ideas???


-- 
Wayne Knowles			NetBSD/mipsco port maintainer
wdk@netbsd.org			http://www.netbsd.org