From owner-freebsd-current@FreeBSD.ORG Tue Nov 30 18:03:11 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 04C98106564A for ; Tue, 30 Nov 2010 18:03:11 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.netplex.net (mail.netplex.net [204.213.176.10]) by mx1.freebsd.org (Postfix) with ESMTP id B56788FC15 for ; Tue, 30 Nov 2010 18:03:10 +0000 (UTC) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.netplex.net (8.14.4/8.14.4/NETPLEX) with ESMTP id oAUHgprS017804; Tue, 30 Nov 2010 12:42:51 -0500 (EST) X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.netplex.net) X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-4.2.2 (mail.netplex.net [204.213.176.10]); Tue, 30 Nov 2010 12:42:51 -0500 (EST) Date: Tue, 30 Nov 2010 12:42:51 -0500 (EST) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Anonymous In-Reply-To: <86y68a99mh.fsf@gmail.com> Message-ID: References: <4CF4901B.8030108@freebsd.org> <4CF49CFF.2080507@freebsd.org> <86y68a99mh.fsf@gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: FreeBSD Current Subject: Re: CFT: patch for process shared pthread objects X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Nov 2010 18:03:11 -0000 On Tue, 30 Nov 2010, Anonymous wrote: > David Xu writes: > >> Garrett Cooper wrote: >> >>> Doesn't build :/...: >>> >>> ===> lib/libthr (obj,depend,all,install) >>> make: don't know how to make thr_sleepq.c. Stop >>> *** Error code 2 >>> >> Sorry, I have updated it, please download it again, or just >> download file: >> http://people.freebsd.org/~davidxu/pshared/thr_sleepq.c >> and put it in directory src/lib/libthr/thread/ > > One more > > cc -c [...] kern/kern_umtx.c > /usr/src/sys/kern/kern_umtx.c: In function '__umtx_op_lock_umutex_compat32': > /usr/src/sys/kern/kern_umtx.c:4107: error: too few arguments to function 'do_lock_umutex' > /usr/src/sys/kern/kern_umtx.c: In function '__umtx_op_wait_umutex_compat32': > /usr/src/sys/kern/kern_umtx.c:4128: error: too few arguments to function 'do_lock_umutex' > *** Error code 1 > > As for runtime issues > - mplayer's vo_gl and vo_vdpau crash as do many GL games when using nvidia-driver > - csup hangs at the end of checkout I'm not sure this is your problem, but as a note to others - if you recompile any applications or libraries that use the new pthread ABIs, you might have to rebuild all dependencies. Just as when we used to bump libc versions, you cannot use different pthread ABIs in the same binary. This is similar to the pre-symbol versioning days when an older library libFOO was linked to libc.so.5 and an application was rebuilt linking to both libFOO and the newer libc.so.6. This should only be a problem if any of the pthread types are passed between applications and/or libraries; the older binary will be expecting the older pthread type, but will be passed the new pthread type. So if you are going to use this patch, be careful about what you rebuild. -- DE