From owner-freebsd-threads@FreeBSD.ORG Mon Jun 7 03:52:56 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7DF016A4CE; Mon, 7 Jun 2004 03:52:56 +0000 (GMT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34C0443D1F; Sun, 6 Jun 2004 20:52:56 -0700 (PDT) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.10/8.12.1) with ESMTP id i573qrtD010682; Sun, 6 Jun 2004 23:52:55 -0400 (EDT) Date: Sun, 6 Jun 2004 23:52:53 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Sean McNeil In-Reply-To: <1086569050.66929.2.camel@server.mcneil.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-amd64@freebsd.org cc: freebsd-threads@freebsd.org Subject: Re: more symbol binding problems X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jun 2004 03:52:57 -0000 On Sun, 6 Jun 2004, Sean McNeil wrote: > On Sun, 2004-06-06 at 17:25, Daniel Eischen wrote: > > On Sun, 6 Jun 2004, Sean McNeil wrote: > > > > > I do not understand why it is calling select in lib.so.5. Shouldn't it > > > have called the one in libc_r? With GLOBAL or LOCAL DAG this should > > > have been resolved via the weak symbol to __select, no? > > > > Yes, it shouldn't be using select() from libc; select() should be > > resolved to _select() in libc_r (which calls __sys_poll() in libc). > > > > > The interesting thing here is that if I use libpthread for apache then > > > there are no problems. Maybe not all that suprising, though, as there > > > is no real difference in the select with libpthread whereas libc_r has a > > > much more complex implementation. > > > > Sounds like the linker isn't doing the right thing. > > Would you think it is the linker, or rtld? Any ideas where I should > start? I was going to look through rtld but I will focus on ld if you > think that is where the problem is. I meant the run-time linker (rtld). -- Dan Eischen