Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Oct 2002 23:42:36 +0000 (GMT)
From:      Doug Rabson <dfr@nlsystems.com>
To:        Terry Lambert <tlambert2@mindspring.com>
Cc:        Daniel Eischen <eischen@pcnet1.pcnet.com>, <current@freebsd.org>
Subject:   Re: [PATCH: libc]Re: gnome on current
Message-ID:  <20021030234026.M22480-100000@herring.nlsystems.com>
In-Reply-To: <3DC0698B.8066CCD5@mindspring.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 30 Oct 2002, Terry Lambert wrote:

> Doug Rabson wrote:
> > > I think the only sensible solution to this problem is for libraries which
> > > provide an actual pthreads implementation (rather than a set of stubs) to
> > > define strong symbols. Wierd debugging wrappers can still be achieved via
> > > some dlopen/dlsym hackery.
> >
> > For what its worth, doing this (defining strong pthread_* symbols in
> > libc_r) makes everything work fine, with or without libXThrStub.
>
> No, this would be bad.  There's some justification for not
> doing this, in allowing programs linked againts libraries linked
> against threaded libraries to link against alternate threads
> libraries.  If the symbols are stong, then this is not possible.

Wrong. Either link the app to libc_r or to libpthread or to
libmyOwnThreads.

>
> 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.

-- 
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021030234026.M22480-100000>