Subject: Re: thread problem bilding perl 5.8.6 on 2.0/sparc
To: Hubert Feyrer <>
From: Chuck Silvers <>
List: tech-userlevel
Date: 03/05/2005 06:03:38
On Sat, Mar 05, 2005 at 11:21:48AM +0100, Hubert Feyrer wrote:
> Building perl 5.8.6 on NetBSD 2.0/sparc from pkgsrc-current leads to 
> miniperl dumping core. gdb says:
> 	#0  0x1030c100 in pthread__lock_ras_end () from 
> 	/usr/lib/
> Is this a known problem, how does one work around it? Is it fixed on the 
> netbsd-2 or maybe netbsd-2-0 branch, and if so, what component needs 
> rebuilding - kernel, libpthread, ...?

this has been fixed in -current, and pullups have been in the queue for
a month now but are not yet applied.  to get working pthreads on sun4c,
you need both a new kernel and a new libpthread.   these are the relevant

cvs rdiff -r1.155 -r1.156 src/sys/arch/sparc/sparc/trap.c
cvs rdiff -r1.17 -r1.18 src/sys/arch/sparc/include/lock.h


> More information is appended below, please let me and/or Martin Ebnoether 
> (CC:d) know! (It`s his machine, an IPC)
> What can we do to get perl going on sparc?
> Thanks!