From owner-freebsd-current@FreeBSD.ORG Sat Nov 11 17:54:52 2006 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9836516A40F; Sat, 11 Nov 2006 17:54:52 +0000 (UTC) (envelope-from nork@FreeBSD.org) Received: from sakura.ninth-nine.com (sakura.ninth-nine.com [219.127.74.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id B211543D7B; Sat, 11 Nov 2006 17:54:45 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from nadesico.ninth-nine.com (nadesico.ninth-nine.com [219.127.74.122]) by sakura.ninth-nine.com (8.13.8/8.13.8/NinthNine) with SMTP id kABHsc3f085299; Sun, 12 Nov 2006 02:54:38 +0900 (JST) (envelope-from nork@FreeBSD.org) Date: Sun, 12 Nov 2006 02:54:38 +0900 From: Norikatsu Shigemura To: des@des.no (Dag-Erling =?UTF-8?B?U23DuHJncmF2?=) Message-Id: <20061112025438.81de973a.nork@FreeBSD.org> In-Reply-To: <86lkmivws6.fsf@dwp.des.no> References: <20061110151247.GA64530@zone3000.net> <20061111022044.8191e1c8.nork@FreeBSD.org> <20061111065629.GA82094@xor.obsecurity.org> <20061111235332.89f24170.nork@FreeBSD.org> <86lkmivws6.fsf@dwp.des.no> X-Mailer: Sylpheed version 2.3.0beta4 (GTK+ 2.10.6; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (sakura.ninth-nine.com [219.127.74.121]); Sun, 12 Nov 2006 02:54:38 +0900 (JST) Cc: freebsd-current@FreeBSD.org, nork@FreeBSD.org, Kris Kennaway Subject: Re: libpthread vs libthr. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Nov 2006 17:54:52 -0000 On Sat, 11 Nov 2006 16:16:25 +0100 des@des.no (Dag-Erling Smørgrav) wrote: > Norikatsu Shigemura writes: > > In this case, gdm tried to resolve a symbol, > > sched_yield@LIBTHREAD_1_0 instead of sched_yield. So by changing > > libthr by libmap, gdm couldn't resolve a symbol, sched_yield(2). > > libthr doesn't have a sched_yield@LIBTHREAD_1_0, Yes, libc have > > a sched_yield, but sched_yield@LIBTHREAD_1_0. > This is not a libthr issue, it's a symbol versioning issue. Arguably, > sched_yield should be removed from libpthread's symbol map, because > it's a wrapper for a syscall and we don't version syscalls. Sigh... Yes, it is not a libthr issue and a symbol versioning issue, but only a symbol versioning issue. (I think it is a issue that libpthread/libthr using SYMVER enabled by default. But TEST is significant:-) The point of these issues is a relation of FreeBSD system, kernel - libraries - userland(applications). We don't have a mutually commutative layer changing(almost works, but...). At least, we need re-compiling. At this time, I think that test is not enough.