[libvirt] [PATCH] build: fix build of virt-login-shell on systems with older gnutls

Jim Fehlig jfehlig at suse.com
Tue Oct 22 05:29:33 UTC 2013


On systems where gnutls uses libgcrypt, I'm seeing the following
build failure

libvirt.c:314: error: variable 'virTLSThreadImpl' has initializer but incomplete type
libvirt.c:319: error: 'GCRY_THREAD_OPTION_PTHREAD' undeclared here (not in a function)
...

Fix by undefining WITH_GNUTLS_GCRYPT in config-post.h

Signed-off-by: Jim Fehlig <jfehlig at suse.com>
---

Although I'm more confident in this fix vs the previously reported
virt-login-shell build failure, I'd still prefer an ACK before pushing.

 config-post.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/config-post.h b/config-post.h
index d371e8c..8367200 100644
--- a/config-post.h
+++ b/config-post.h
@@ -34,6 +34,7 @@
 # undef WITH_CURL
 # undef WITH_DTRACE_PROBES
 # undef WITH_GNUTLS
+# undef WITH_GNUTLS_GCRYPT
 # undef WITH_MACVTAP
 # undef WITH_NUMACTL
 # undef WITH_SASL
-- 
1.8.1.4




More information about the libvir-list mailing list