Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: [nathanw_sa] basesrc/lib/libc/include



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@localhost                        http://www.netbsd.org





Home | Main Index | Thread Index | Old Index