develooper Front page | perl.perl5.porters | Postings from July 2008

Re: [perl #57458] Threads support in FreeBSD 7.0

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
July 31, 2008 08:07
Subject:
Re: [perl #57458] Threads support in FreeBSD 7.0
Message ID:
20080731150718.GW45868@plum.flirble.org
On Thu, Jul 31, 2008 at 02:44:51AM -0700, Kidney Bingos wrote:

> Threads support appears to be broken with FreeBSD 7.0 on perl-current, perl-5.8.x and perl-5.10.x
> 
> The output from ./Configure on blead for instance:

> If this doesn't make any sense to you, just accept the default 'y'.
> Build a threading Perl? [y]  
> Your platform has some specific hints regarding threaded builds, using them...
> POSIX threads should be supported by FreeBSD 7.0-release --
> but your system is missing the shared libc_r.
> (/sbin/ldconfig -r doesn't find any).
> 
> Consider using the latest STABLE release.
> =====
> 
> It appears that libc_r was deprecated with FreeBSD 5.x and completely removed with FreeBSD 7.0.
> 
> A look through the hints file for FreeBSD seems to suggest that -lpthread should just be added to the
> libs line, but my Configure/hints foo is too weak to work out a suitable solution.

"Works on MY machine" ( http://www.codinghorror.com/blog/archives/000818.html )

$ /sbin/ldconfig -r | grep libc_r
        247:-lc_r.6 => /usr/local/lib/compat/libc_r.so.6
$ uname -a
FreeBSD plum.flirble.org 7.0-STABLE FreeBSD 7.0-STABLE #7: Sat Jul 26 20:39:26 BST 2008     root@plum.flirble.org:/usr/obj/usr/src/sys/PLUM  i386

So, I'm not sure why it differs from what you see.
As I can't replicate this, I'm not sure what to do. Hopefully Anton knows.

Nicholas Clark

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About