Petr Menšík
2018-02-26 20:12:21 UTC
Hi again,
We at Fedora use dynamic linking for all libraries. We had breakage of
dnsmasq build more than once, because dnsmasq is using directly
nettle_hash array. If its size changes, dynamic linker will refuse to
link it. For that reason, accessing hash array directly makes trouble.
There is however special function that looks like very similar to
hash_find() of dnsmasq, that iterates the array internally. It requires
nettle 3.4, but I think that is already old enough. It would help
preventing any more linker conflict, if library data changes.
Do you think older library version should be supported as well?
Best regards,
We at Fedora use dynamic linking for all libraries. We had breakage of
dnsmasq build more than once, because dnsmasq is using directly
nettle_hash array. If its size changes, dynamic linker will refuse to
link it. For that reason, accessing hash array directly makes trouble.
There is however special function that looks like very similar to
hash_find() of dnsmasq, that iterates the array internally. It requires
nettle 3.4, but I think that is already old enough. It would help
preventing any more linker conflict, if library data changes.
Do you think older library version should be supported as well?
Best regards,
--
Petr Men¹ík
Software Engineer
Red Hat, http://www.redhat.com/
email: ***@redhat.com PGP: 65C6C973
Petr Men¹ík
Software Engineer
Red Hat, http://www.redhat.com/
email: ***@redhat.com PGP: 65C6C973