From owner-freebsd-stable@FreeBSD.ORG Mon Jun 15 20:59:51 2009 Return-Path: Delivered-To: stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24123106567B for ; Mon, 15 Jun 2009 20:59:51 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id ECDA28FC30 for ; Mon, 15 Jun 2009 20:59:50 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id A3C0046B29 for ; Mon, 15 Jun 2009 16:59:50 -0400 (EDT) Received: from jhbbsd.hudson-trading.com (unknown [209.249.190.8]) by bigwig.baldwin.cx (Postfix) with ESMTPA id 9130E8A072 for ; Mon, 15 Jun 2009 16:59:49 -0400 (EDT) From: John Baldwin To: stable@FreeBSD.org Date: Mon, 15 Jun 2009 16:59:27 -0400 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906151659.27326.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Mon, 15 Jun 2009 16:59:49 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=4.2 tests=AWL,BAYES_00,RDNS_NONE autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: Subject: HEADSUP: libpthread compat for 5.x and 6.x binaries X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jun 2009 20:59:51 -0000 One of the changes in FreeBSD 8.0 is the removal of support for the KSE threading library and its associated system calls. What this means in practice is that if one uses a KSE-based libpthread from 5.x or 6.x in a chroot or jail on an 8.0 system, the binaries will fail with SIGSYS. For most (possibly all) binaries, this can be worked around by using libthr instead libpthread. FreeBSD 7.0 and later ship with libthr as the threading library installed as libpthread. What I would like to find out is if there are any 5.x or 6.x binaries that use libpthread that do not run well with libthr. You can test this by using a libmap.conf(5) file to remap libpthread to libthr. For 5.x binaries you will want to remap libpthread.so.1 to libthr.so.1. For 6.x binaries you will want to remap libpthread.so.2 to libthr.so.2. This can be accomplished using an /etc/libmap.conf file that contains: # Remap 5.x and 6.x libpthread to libthr libpthread.so.1 libthr.so.1 libpthread.so.2 libthr.so.2 To my knowledge, most binaries should work fine in this configuration. One binary that I am aware of that does have problems is the 'arcconf' binary from ports. However, for this particular case there is a binary for 7.x available for use on 8.0 systems. -- John Baldwin