From edwin@mavetju.org  Mon Apr 28 03:56:20 2008
Return-Path: <edwin@mavetju.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 784DB1065678
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 28 Apr 2008 03:56:20 +0000 (UTC)
	(envelope-from edwin@mavetju.org)
Received: from mail5out.barnet.com.au (mail5.barnet.com.au [202.83.178.78])
	by mx1.freebsd.org (Postfix) with ESMTP id 33C5D8FC1E
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 28 Apr 2008 03:56:19 +0000 (UTC)
	(envelope-from edwin@mavetju.org)
Received: by mail5out.barnet.com.au (Postfix, from userid 1001)
	id F1E572218ADC; Mon, 28 Apr 2008 13:56:18 +1000 (EST)
Received: from mail5auth.barnet.com.au (mail5.barnet.com.au [202.83.178.78])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail5auth.barnet.com.au", Issuer "*.barnet.com.au" (verified OK))
	by mail5.barnet.com.au (Postfix) with ESMTP id 9CFE121B2670
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 28 Apr 2008 13:56:18 +1000 (EST)
Received: from k7.mavetju (k7.mavetju.org [10.251.1.18])
	by mail5auth.barnet.com.au (Postfix) with ESMTP id 48FFE2218A8E
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 28 Apr 2008 13:56:18 +1000 (EST)
Received: by k7.mavetju (Postfix, from userid 1001)
	id 01AC1AD2; Mon, 28 Apr 2008 13:56:17 +1000 (EST)
Message-Id: <20080428035618.01AC1AD2@k7.mavetju>
Date: Mon, 28 Apr 2008 13:56:17 +1000 (EST)
From: Edwin Groothuis <edwin@mavetju.org>
Reply-To: Edwin Groothuis <edwin@mavetju.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: devel/nspr - Not properly linked to libraries
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         123159
>Category:       ports
>Synopsis:       devel/nspr - Not properly linked to libraries
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnome
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 28 04:00:13 UTC 2008
>Closed-Date:    Mon Apr 28 04:56:51 UTC 2008
>Last-Modified:  Mon Apr 28 04:56:51 UTC 2008
>Originator:     Edwin Groothuis
>Release:        FreeBSD 6.3-RELEASE i386
>Organization:
-
>Environment:
System: FreeBSD k7.mavetju 6.3-RELEASE FreeBSD 6.3-RELEASE #0: Sun Feb 17 22:11:52 EST 2008 edwin@k7.mavetju:/usr/src/sys/i386/compile/SMP i386

>Description:

I tried this script:

    use JavaScript::SpiderMonkey;

    my $js = JavaScript::SpiderMonkey->new();
 
    $js->init();
    $js->function_set("write", sub { print "@_\n"; });
    $js->eval("write('Foo');");

And I end up with:

    /libexec/ld-elf.so.1: /usr/X11R6/lib/libnspr4.so.1: Undefined symbol "pthread_condattr_init"

ldd of /usr/X11R6/lib/libnspr4.so.1 gives:

    [~/a] edwin@k7>ldd /usr/X11R6/lib/libnspr4.so.1
    /usr/X11R6/lib/libnspr4.so.1:


>How-To-Repeat:

Ports involved:
	devel/nspr
	lang/spidermonkey
	lang/p5-JavaScript-SpiderMonkey

>Fix:

no idea yet.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->gnome 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Apr 28 04:00:19 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=123159 
State-Changed-From-To: open->closed 
State-Changed-By: marcus 
State-Changed-When: Mon Apr 28 04:55:28 UTC 2008 
State-Changed-Why:  
We've seen this before.  Perl needs to be linked with PTHREAD_LIBS.  This 
is not done by default, but you can certainly build it that way.  Nspr is 
already built with PTHREAD_LIBS, but -pthread does nothing unless the 
executable is linked as well. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=123159 
>Unformatted:
