Subject: Forward-compatibility libpthread for netbsd-4
To: None <>
From: Joerg Sonnenberger <>
List: tech-userlevel
Date: 09/28/2007 23:34:05
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi all,
is a somewhat older snapshot of current's libpthread.
Together with the attached it would allow netbsd-4 programs
to run with a current kernel even if they use pthread.

Let me reiterate the problem for a moment. With the merge of the
newlock2 branch, Scheduler Activation was removed from HEAD.
libpthread did get a major bump as the old version does not work on
a post-newlock2 branch. Independent of the question whether SA will be
merged back into HEAD in the future, this means testing newer kernels
for fixes etc is not an option. It also makes it harder to use binary
programs when later migrating to netbsd-5.

The solution with the smallest impact is to provide an override library
(above is the source) and install it outside the normal search path.
ld.elf_so gets instructed to use it via if the kernel doesn't
support SA. The question is now:

(a) Do we want to have this in the release? If yes, I will update the
tarball and document how it is generated for possible later updates.

(b) If yes to (a), do we want to install the correct by


Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=""	machdep.fpu_present,	kern.no_sa_support	1:/usr/lib/post-sa/