[Unbound-users] unbound daemon linking bug?

Matthijs Mekking matthijs at NLnetLabs.nl
Mon Oct 10 08:39:03 UTC 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Paul,

On 10/06/2011 04:55 PM, Paul Wouters wrote:
> On Thu, 6 Oct 2011, Matthijs Mekking wrote:
> 
>> I don't fully grasp your problem: if unbound does not link against
>> libunbound, upgrading the unbound package would not need to update the
>> libunbound package.
> 
> But if a fix is applied to unbound-libs, the unbound daemon will still
> be using an old copy. Also, the results of unbound vs unbound-host could
> then be different.

Seems to me that this is a thing that the package maintainer should
maintain.

> 
> As a rule, it is always bad to have duplicatated staticly linked code
> from a dynamic library into any executable - it becomes unmanagable.
> 
> To avoid this, I will make unbound depend on unbound-libs of the identical
> version so that we keep the daemon and libraries in sync with each other.
> 
>> It is of course possible to use the library dynamically, but probably
>> unbound links statically for performance optimization reasons.
> 
> Can you explain those to me?

Dynamic linking *may* increase paging thus decreasing performance.

> 
> Paul

- --enable-allsymbols is indeed what you want.

Best regards,

Matthijs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJOkq8nAAoJEA8yVCPsQCW5NVgH/1A+az5wExO39kq2UwhjAK1A
YVdeKvr2FRYcZayl5M3Rr6m4q23pwvyGP77gdNcDFZBZHTo8tvauz01QIFUwooT+
FktzfEhg8V/DK4nQ1+nX8V2yhQlxGpju2v3eIe73jM13imzHMJraFNYPb/re9+5r
xnP4lxJqnfjpSzyTuAnOIeo+se4ZZIGGjRIkfHXd+NdM1zuhsMaG5sFvsHtYwbwF
VLxsRO69H4lmTg3itzBcvfZvNEblFKUELWHd2G4DgraBb/ki0nnwtKSzeL8/3833
RNYq3iLsIT4FVo3b5B+yezXP1JtXJsx1O47/3CtRcfX1WMcZJ3ltKWWNZUIdyDg=
=K8rJ
-----END PGP SIGNATURE-----



More information about the Unbound-users mailing list