Description of problem:
Currently libvirt has code to initialize libgcrypt, as a pre-requisite to using gnutls. As a result libvirt also explicitly links to -lgcrypt.
In gnutls 3.x libgcrypt is replaced by libnettle. Libvirt's explicit initialization of libgcrypt is thus bogus and is causing libvirt to link to two crypto libraries (gcrypt + nettle).
Libvirt's libgcrypt init code should be made conditional so we don't use it when gnutls is linked to nettle.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. $ ldd /lib64/libvirt.so.0 | grep gcrypt
libgcrypt.so.11 => /lib64/libgcrypt.so.11 (0x0000003441800000)
Does not link to gcrypt
Upstream patch proposed:
v3 of upstream patch; missed 1.1.1 so it will need a backport
Reproduce this bug with
# ldd /lib64/libvirt.so.0 | grep gcrypt
libgcrypt.so.11 => /lib64/libgcrypt.so.11 (0x00007fde15f48000)
Verify this bug with
[root@localhost 111-3]# ldd /lib64/libvirt.so.0 | grep gcrypt
This request was resolved in Red Hat Enterprise Linux 7.0.
Contact your manager or support representative in case you have further questions about the request.