On Mon, Mar 14, 2016 at 08:26:42PM +0300, Vasiliy Tolstov wrote:
libvirt.c:323:15: error: 'gcry_thread_cbs' is deprecated
[-Werror=deprecated-declarations]
static struct gcry_thread_cbs virTLSThreadImpl = {
^
What version of libgcrypt or gnutls do you use? Or is it something else
that provides that struct. It works fine for me with libgcrypt-1.6.5
and gnutls-3.3.22. There should be some sort of guidance somewhere what
to use instead of that. I believe it's also the reason for the other
errors below.
In file included from libvirt.c:58:0:
/usr/x86_64-pc-linux-gnu/include/gcrypt.h:211:8: note: declared here
struct gcry_thread_cbs
^
libvirt.c:331:5: error: excess elements in struct initializer [-Werror]
virTLSMutexInit,
^
libvirt.c:331:5: note: (near initialization for 'virTLSThreadImpl')
libvirt.c:332:5: error: excess elements in struct initializer [-Werror]
virTLSMutexDestroy,
^
libvirt.c:332:5: note: (near initialization for 'virTLSThreadImpl')
libvirt.c:333:5: error: excess elements in struct initializer [-Werror]
virTLSMutexLock,
^
libvirt.c:333:5: note: (near initialization for 'virTLSThreadImpl')
libvirt.c:334:5: error: excess elements in struct initializer [-Werror]
virTLSMutexUnlock,
^
libvirt.c:334:5: note: (near initialization for 'virTLSThreadImpl')
my configure line is:
./configure --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--prefix=/usr/x86_64-pc-linux-gnu
--bindir=/usr/x86_64-pc-linux-gnu/bin
--sbindir=/usr/x86_64-pc-linux-gnu/bin
--libdir=/usr/x86_64-pc-linux-gnu/lib --datadir=/usr/share
--datarootdir=/usr/share --docdir=/usr/share/doc/libvirt-scm
--infodir=/usr/share/info --mandir=/usr/share/man --sysconfdir=/etc
--localstatedir=/var/lib --disable-dependency-tracking
--disable-silent-rules --enable-fast-install --enable-nls
--localstatedir=/var --with-blkid --with-chrdev-lock-files=/run/lock
--with-curl --with-dbus --with-firewalld --with-gnutls
--with-html-dir=/usr/share/doc/libvirt-scm --with-html-subdir=./
--with-init-script=systemd --with-interface --with-libvirtd
--with-macvtap --with-pciaccess --with-qemu-group=kvm --with-readline
--with-remote --with-secrets --with-ssh2 --with-storage-dir
--with-storage-fs --with-sysctl --with-test --with-udev
--with-virtualport --without-apparmor --without-apparmor-mount
--without-apparmor-profiles --without-audit --without-driver-modules
--without-dtrace --without-esx --without-hal --without-hyperv
--without-included-regex --without-libxl --without-netcf
--without-openvz --without-openwsman --without-phyp
--without-rhel5-api --without-sanlock --without-secdriver-apparmor
--without-secdriver-selinux --without-selinux --without-selinux-mount
--without-storage-gluster --without-storage-rbd --without-storage-zfs
--without-vz --without-xen --without-xen-inotify --without-xenapi
--enable-debug --without-avahi --with-attr --without-storage-iscsi
--with-qemu --with-yajl --with-capng --without-storage-lvm
--without-storage-mpath --with-lxc --with-fuse --without-network
--without-numactl --without-numad --without-libpcap --without-pm-utils
--without-polkit --without-storage-disk --without-sasl
--without-storage-scsi --without-storage-sheepdog --without-uml
--without-vbox --without-vmware --without-wireshark-dissector
--
Vasiliy Tolstov,
e-mail: v.tolstov(a)selfip.ru
--
libvir-list mailing list
libvir-list(a)redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list