About gtk library versions and dlopen()

Panagiotis Astithas past at ebs.gr
Wed Sep 28 00:18:42 PDT 2005


Alexander Nedotsukov wrote:
> Panagiotis Astithas wrote:
> 
>>>> I see that in the marcuscom repository the gtk libraries have a 
>>>> version of 0 (libgtk-x11-2.0.so.0), whereas the current stable port 
>>>> has a version of 600 (libgtk-x11-2.0.so.600). Could someone please 
>>>> explain the logic behind the gtk library versioning and whether the 
>>>> committed gnome 2.12 will keep the 0 versions?
> 
> ...
> 
>> Excellent. Out of curiosity, in the current scheme of things, how can 
>> I dlopen() a libfoo.so.0 and get the existing libfoo.so.600 loaded? Do 
>> I need something other than RTLD_LAZY?
> 
> You can not do that. And normally you do not want to. If all you need is 
> just a most recent libfoo version than try dlopen() libfoo.so symbolic 
> link.

OK, thanks. I got the impression that it was somehow possible without 
the symlink.

> BTW I have eclipse + GNOME 2.12 running w/o problems you referring to.

This was an issue for which we already have a fix in Eclipse, but I was 
researching the issue to minimize our diffs from the Eclipse Linux port.

Thanks,

Panagiotis


More information about the freebsd-gnome mailing list