[libvirt] BSD gcrypt warnings [was: [PATCH] build: mark conditionally unused variables]

Eric Blake eblake at redhat.com
Mon May 13 15:46:41 UTC 2013


On 05/11/2013 08:27 AM, Roman Bogorodskiy wrote:
>>
>> The sad part is that we aren't even using the deprecated symbols - their
>> mere inclusion in the installed header is provoking the problems.  It
>> looks like newer gcc is a bit more tolerant (that is, this is a
>> shortcoming of FreeBSD's use of an older compiler).
>>

> I have tried this fix and it works for me:
> 
> diff --git a/configure.ac b/configure.ac
> index 53f78de..4a813cc 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -1090,6 +1090,10 @@ if test "x$with_gnutls" != "xno"; then
>      dnl it explicitly for the calls to gcry_control/check_version
>      GNUTLS_LIBS="$GNUTLS_LIBS -lgcrypt"
>  
> +    dnl We're not using gcrypt deprecated features so define GCRYPT_NO_DEPRECATED
> +    dnl to avoid deprecated warnings
> +    GNUTLS_CFLAGS="$GNUTLS_CFLAGS -DGCRYPT_NO_DEPRECATED"

Cool.  I'm trying to get a Fedora rawhide VM going (since it has
libgcrypt-1.5.2) and verify that it works there as well, and then I'll
probably apply this as a formal patch in your name if I don't find any
issues in my testing.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130513/dd5460c3/attachment-0001.sig>


More information about the libvir-list mailing list