Subject: Re: perl 5.8.7, threads and NetBSD 1.6.2/i386
To: Carl Brewer <carl@bl.echidna.id.au>
From: grant beattie <grant@NetBSD.org>
List: tech-pkg
Date: 09/01/2005 20:08:17
On Thu, Sep 01, 2005 at 03:33:44PM +1000, Carl Brewer wrote:
> Checking your choice of C compiler and flags for coherency...
> I've tried to compile and run the following simple program:
>
> #include <stdio.h>
> int main() { printf("Ok\n"); return(0); }
>
> I used the command:
>
> cc -o try -O2 -D_REENTRANT -I/usr/include -I/usr/pkg/include
> -fno-strict-aliasing -pipe -I/usr/pkg/include -L/usr/pkg/lib try.c -lm
> -lcrypt -lpthread
> ./try
>
> and I got the following output:
>
> Shared object "libpthread.so.20" not found
> The program compiled OK, but exited with status 1.
> You have a problem. Shall I abort Configure [y]
> Ok. Stopping Configure.
> *** Error code 1
>
> Stop.
> make: stopped in /usr/pkgsrc/lang/perl5
>
>
>
> This is bogus, pth is installed :
> pth-2.0.0nb2 GNU Portable Thread library
libpthread is being found at link time, but there is no rpath so it
can't be found at runtime.
the command line needs to include ${LDFLAGS}, which will pass the
required rpath to the linker.
that said, I have no idea whether perl threads even work with GNU pth
at all.
grant.