From nobody@FreeBSD.org  Tue Nov  1 09:34:51 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 38BD2106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  1 Nov 2011 09:34:51 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 291FC8FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  1 Nov 2011 09:34:51 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pA19YoBk046508
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 1 Nov 2011 09:34:50 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id pA19Yotj046507;
	Tue, 1 Nov 2011 09:34:50 GMT
	(envelope-from nobody)
Message-Id: <201111010934.pA19Yotj046507@red.freebsd.org>
Date: Tue, 1 Nov 2011 09:34:50 GMT
From: Stephen Hurd <shurd@sasktel.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: 9.0-RC1 new problem building spidermonkey
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: citric@cubicone.tmetic.com, swills@FreeBSD.org

>Number:         162221
>Category:       ports
>Synopsis:       9.0-RC1 new problem building lang/spidermonkey
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 01 09:40:10 UTC 2011
>Closed-Date:    Sat Sep 08 01:52:31 UTC 2012
>Last-Modified:  Sat Sep 08 01:52:31 UTC 2012
>Originator:     Stephen Hurd
>Release:        9.0-RC1
>Organization:
>Environment:
FreeBSD cracked.hurd.local 9.0-RC1 FreeBSD 9.0-RC1 #0: Tue Oct 18 18:30:38 UTC 2011     root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
After upgrading from 8.2-RELEASEp3 to 9.0-RC1 using freebsd-update, it is no longer possible to manually build the spidermonkey JS engine with the included gcc.

The error is:
jsnativestack.o: In function `js::GetNativeStackBaseImpl()':
jsnativestack.cpp:(.text+0x35): undefined reference to `pthread_attr_get_np'
/usr/bin/ld: libmozjs185.so: hidden symbol `pthread_attr_get_np' isn't defined
/usr/bin/ld: final link failed: Nonrepresentable section on output

>How-To-Repeat:
- Install devel/gmake and devel/nspr4 on a 9.0-RC1 system.
- Download http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz
- Change to the js-1.8.5/js/src directory
- Run configure with no arguments
- Run gmake

>Fix:
Completely unknown.  I worked around it by setting # pragma GCC visibility push(default) before the pthread.h include and popping it after the pthread_np.h include.

It doesn't appear that this is a correct fix though and the www/firefox etc ports don't seem to have ran into it.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-threads->freebsd-ports-bugs 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Tue Nov 1 12:24:16 UTC 2011 
Responsible-Changed-Why:  
This looks likely to be a port bug. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=162221 
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Tue Nov 1 12:36:52 UTC 2011 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=162221 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: citric@cubicone.tmetic.com
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/162221: 9.0-RC1 new problem building lang/spidermonkey
Date: Tue, 1 Nov 2011 12:36:51 UT

 Maintainer of lang/spidermonkey,
 
 Please note that PR ports/162221 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/162221
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: Kva La <buoqla@gmail.com>
To: Stephen Hurd <shurd@sasktel.net>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/162221: 9.0-RC1 new problem building spidermonkey
Date: Tue, 01 Nov 2011 20:53:40 +0000

 Stephen Hurd <shurd@sasktel.net> writes:
 
 > jsnativestack.o: In function `js::GetNativeStackBaseImpl()':
 > jsnativestack.cpp:(.text+0x35): undefined reference to `pthread_attr_get_np'
 > /usr/bin/ld: libmozjs185.so: hidden symbol `pthread_attr_get_np' isn't defined
 > /usr/bin/ld: final link failed: Nonrepresentable section on output
 [...]
 >>Fix:
 > Completely unknown.  I worked around it by setting # pragma GCC
 > visibility push(default) before the pthread.h include and popping it
 > after the pthread_np.h include.
 
 Mk/bsd.gecko.mk uses similar fix, i.e.
 
   $ rm -f jsnativestack.o
   $ echo pthread_np.h >>config/system-headers
   $ gmake
 
 which is probably caused by r215840.

From: hurds@sasktel.net
To: Stephen Hurd <shurd@sasktel.net>, Kva La <buoqla@gmail.com>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/162221: 9.0-RC1 new problem building spidermonkey
Date: Tue, 01 Nov 2011 18:05:35 -0400

 On Tue, 01 Nov 2011 20:53:40 +0000, Kva La=C2=A0 wrote:
 Stephen Hurd <shurd@sasktel.net> writes:
 
 > Mk/bsd.gecko.mk uses similar fix, i.e. 
 >
 >   $ rm -f jsnativestack.o
 >   $ echo pthread_np.h >>config/system-headers
 >   $ gmake
 >
 > which is probably caused by r215840. 
 
 So is this a configure bug in the mozilla sources or a regression due 
 to r215840? =C2=A0Has a GCC guru looked at this?
 
State-Changed-From-To: feedback->open 
State-Changed-By: pgollucci 
State-Changed-When: Thu Feb 9 23:08:54 UTC 2012 
State-Changed-Why:  
maintainer timeout (citric@cubicone.tmetic.com ; 99 days) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=162221 
State-Changed-From-To: open->closed 
State-Changed-By: eadler 
State-Changed-When: Sat Sep 8 01:52:29 UTC 2012 
State-Changed-Why:  
this should have been fixed recently. if not ping me and I'll reopen 

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