ports/162221: 9.0-RC1 new problem building spidermonkey

Kva La buoqla at gmail.com
Tue Nov 1 21:40:12 UTC 2011


The following reply was made to PR ports/162221; it has been noted by GNATS.

From: Kva La <buoqla at gmail.com>
To: Stephen Hurd <shurd at sasktel.net>
Cc: bug-followup at 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 at 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.



More information about the freebsd-ports-bugs mailing list