On Wed, 30 Oct 2002, Juli Mallett wrote:

> * De: Terry Lambert <[EMAIL PROTECTED]> [ 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:  [EMAIL PROTECTED]
                                        Phone: +44 20 8348 6160



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to