[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    [Fwd: Re: Dynamic Linker weirdness. (Long)]
From:       Stephan Kulow <coolo () kde ! org>
Date:       2000-05-13 9:49:43
[Download RAW message or body]


-------- Original Message --------
Subject: Re: Dynamic Linker weirdness. (Long)
Date: Sat, 13 May 2000 11:06:04 +0200
From: Lars Knoll <lars@trolltech.com>
To: kde-core-devel@kde.org



On Fri, 12 May 2000, Waldo Bastian wrote:

> On Thu, 11 May 2000, Waldo Bastian wrote:
> > Both these two differences played a role in this case:
> > A) kdeinit links against KIO, which links againtst libfam when available.
> > libfam defines the class "Client". This resulted in a name clash.
> >
> > B) When kwin.so is loaded by ld.linux-so, symbols are looked up in kwin.so
> > first. However, when kwin.so is loaded with dlopen, it seems like symbols
> > are looked up in other libs first. I think this is a bug.
> 
> According to Andreas Schwab of ld.so fame defining different symbols with the 
> same name results in undefined behaviour. We should only use unique names... 
> somehow this seems very logical :-)

Sure, but how do you want to do this with dlopened plugins? At some
point
there might be hundreds of plugins flowing around. You can't
completely exclude doubled symbol names in all these plugins.

Cheers,
Lars

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic