From owner-freebsd-current Thu Oct 31 0:58:57 2002 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 8A67A37B401; Thu, 31 Oct 2002 00:58:56 -0800 (PST) Received: from anchor-post-39.mail.demon.net (anchor-post-39.mail.demon.net [194.217.242.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC7F243E42; Thu, 31 Oct 2002 00:58:55 -0800 (PST) (envelope-from dfr@nlsystems.com) Received: from mailgate.nlsystems.com ([62.49.251.130] helo=herring.nlsystems.com) by anchor-post-39.mail.demon.net with esmtp (Exim 3.36 #2) id 187BAE-0004rn-0U; Thu, 31 Oct 2002 08:58:54 +0000 Received: from herring (herring [10.0.0.2]) by herring.nlsystems.com (8.12.6/8.12.4) with ESMTP id g9V8wrj0035456; Thu, 31 Oct 2002 08:58:53 GMT (envelope-from dfr@nlsystems.com) Date: Thu, 31 Oct 2002 08:58:53 +0000 (GMT) From: Doug Rabson To: Juli Mallett Cc: Terry Lambert , Daniel Eischen , Subject: Re: [PATCH: libc]Re: gnome on current In-Reply-To: <20021030180238.A7388@FreeBSD.org> Message-ID: <20021031085741.W22480-100000@herring.nlsystems.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 30 Oct 2002, Juli Mallett wrote: > * De: Terry Lambert [ Data: 2002-10-30 ] > [ Subjecte: Re: [PATCH: libc]Re: gnome on current ] > > > > Maybe the workaround for now is to make the symbols in libXThrStub.so > > > > weak? > > > > > > They *are* weak Terry. The problem is that every bloody definition is weak > > > so the linker has no way of picking the one definition which will actually > > > work. The real problem is that the actual working threads library doesn't > > > provide strong symbols to allow it to override all the other stubs. > > > > First strong/last weak should win. You are saying "last weak" is not > > winning. That's a linker bug. > > Considering that I built the same applications and ran the same applications > fine a while ago, and we've had a binutils upgrade, and things don't break > on other systems, I'm inclined to assume there are linker bugs afoot, and > all the other speculative stuff seems to be based on misunderstandings or > bad information. I'm not misunderstanding things. I single stepped through the call to pthread_setspecific(), watched the linker lookup the symbol and followed it through into the wrong place (i.e. the stub instead of the real implementation). -- Doug Rabson Mail: dfr@nlsystems.com Phone: +44 20 8348 6160 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message