Subject: Re: pthread_creat = bad system call in macppc port, netbsd-current (well... almost current)
To: leon zadorin <leonleon77@gmail.com>
From: Michael Lorenz <macallan@netbsd.org>
List: port-macppc
Date: 03/04/2007 23:13:17
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Mar 4, 2007, at 23:06, leon zadorin wrote:

> On 3/5/07, Matt Thomas <matt@3am-software.com> wrote:
>> leon zadorin wrote:
>> > In short, I get "bad system call" (followed by a core dump) when 
>> using
>> > pthreads (e.g. pthread_create eventually faulting at 
>> sa_register)... I
>> > am not sure if this has something to do with my kernel config or
>> > not... (naturally, NetBSD v3 does not exhibit the problem...)
>
>> If you have a current kernel, you must have a current libpthread.so 
>> as well.
>> if they are mismatched, you will have problems (like you are having).
>
> mmm cool - so how would I go about getting the current libpthread?
> Firstly, I have built the kernel (as well as userland tools) via
> build.sh script

It's in src/lib/libpthread
Just cd there, make, make install clean. You might need to either set 
USETOOLS=no ( to use the host compiler ) or 
TOOLSDIR=/wherever/your/tools/are to use compiler etc. built using 
'build.sh tools'
If your userland is older than 4.0 I'd strongly recommend getting a 
snapshot from releng.netbsd.org and updating the whole thing.

have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iQEVAwUBReuY3spnzkX8Yg2nAQL0/wf/SFqWPDSd6IjeFt60lmajmSTVgzWqM6QO
7Ejax1bcpZreRFjhIM3Uu91VK1u79g+zB0mQg0q/lDcE0jLKch4qCHVhMUnMCT7e
+GgL+zoWSArIWwqmh9Qr/pv+lL7Lsq/UZkdaLnjKktOQzODsEx617pAgY95ZxMb0
h1ooTsfLfVQgiBh1wFBvvVLKkEQ1VwtTWW7/keT6lTEzefZWU9UTx0grhZXUfcoD
hrJhVI3iRCfuGn1Fa63/smDl2EoudYlZ4d65X232BFZhjzJeGdbXgKM3Ds84VaF8
hNA9wy858v3yCY5q/gbs5ysvL3DxWaJ9Y3aD3LSY6XfORkfTBMmHLA==
=k1F2
-----END PGP SIGNATURE-----