[Development] Explicit linking vs dlopen/dlsym

Thiago Macieira thiago.macieira at intel.com
Sun Nov 23 15:56:33 CET 2014

On Sunday 23 November 2014 11:53:46 Allan Sandfeld Jensen wrote:
> QtWebKit and QtWebEngine does not support linking directly to libudev, but
> they will only try to dlopen libudev.so.1 or libudev.so.0 in that order, and
> being major version if a libudev.so.2 is made it can co-exists with
> libudev.so.1, this will in fact work more smoothly than if you had direct
> linking.

I don't see why it would be more smooth. Direct linking in a distribution 
would ensure that the dependency is never missing. There would never be the 
case when the major version revs but the dependent lib does not get rebuild.

And in the case of libudev and other systemd libraries, both libudev.so.0 and 
libudev.so.1 can not only co-exist in disk, they can also co-exist in memory. 
They do not step on each other. So one can expect that the same for 
libudev.so.2 when it comes to existence.

Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

More information about the Development mailing list