Description of problem: I try to build a libvirt package for the IPFire project (http://www.ipfire.org/). Without sasl libvirt build fine but with sasl libvirt fails to build with the following message: CC rpc/libvirt_net_rpc_la-virnetsaslcontext.lo In file included from rpc/virnetsaslcontext.h:25, from rpc/virnetsaslcontext.c:26: /usr/include/sasl/sasl.h:230: error: expected declaration specifiers or '...' before 'size_t' Makefile:7023: recipe for target 'rpc/libvirt_net_rpc_la-virnetsaslcontext.lo' failed make[3]: *** [rpc/libvirt_net_rpc_la-virnetsaslcontext.lo] Error 1 make[3]: Leaving directory '/libvirt-1.2.20/src' Makefile:5119: recipe for target 'all' failed make[2]: *** [all] Error 2 make[2]: Leaving directory '/libvirt-1.2.20/src' Makefile:1999: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/libvirt-1.2.20' Makefile:1896: recipe for target 'all' failed make: *** [all] Error 2 Version-Release number of selected component (if applicable): 1.2.20 How reproducible: Build libvirt with: 1. ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-openssl --with-sasl --without-uml --without-vbox --without-lxc --without-esx --without-vmware --without-openvz --without-firewalld --without-storage-scsi --without-storage-mpath --without-avahi --with-test-suite -without-dbus --without-storage-lvm --without-pm-utils 2. make 3. the error occurs Additional info: Cyrus sasl (2.1.26) is build with ./configure --prefix=/usr --sysconfdir=/etc \ --with-dbpath=/var/lib/sasl/sasldb2 \ --with-saslauthd=/var/run/saslauthd \ --with-des=no --with-rc4=no I attached the whole terminal output. Sincerely Jonatan Schlag PS.: Sorry for my bad english, i hope you could understand me.
Daniel P. Berrange
2015-Oct-08 08:53 UTC
Re: [libvirt-users] Libvirt fails to build with sasl
On Wed, Oct 07, 2015 at 07:05:53PM +0200, Jonny Schlag wrote:> Description of problem: > > I try to build a libvirt package for the IPFire project > (http://www.ipfire.org/). > Without sasl libvirt build fine but with sasl libvirt fails to build > with the following message: > > CC rpc/libvirt_net_rpc_la-virnetsaslcontext.lo > In file included from rpc/virnetsaslcontext.h:25, > from rpc/virnetsaslcontext.c:26: > /usr/include/sasl/sasl.h:230: error: expected declaration specifiers > or '...' before 'size_t' > Makefile:7023: recipe for targetHmm, that's peculiar - it actually looks like the problem is in the SASL header file sasl.h, rather than libvirt.> > Version-Release number of selected component (if applicable): 1.2.20 > > > How reproducible: > Build libvirt with: > 1. ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc > --with-openssl --with-sasl --without-uml --without-vbox --without-lxc > --without-esx --without-vmware --without-openvz --without-firewalld > --without-storage-scsi --without-storage-mpath --without-avahi > --with-test-suite -without-dbus --without-storage-lvm > --without-pm-utils > > 2. make > > 3. the error occurs > > > Additional info: > > Cyrus sasl (2.1.26) is build withThat is the same version we have in Fedora, which we successfully build with.> ./configure --prefix=/usr --sysconfdir=/etc \ > --with-dbpath=/var/lib/sasl/sasldb2 \ > --with-saslauthd=/var/run/saslauthd \ > --with-des=no --with-rc4=no > > I attached the whole terminal output.There was no attachment to your mail actually. Is there anything notable about the IPFire distro that you know of ? Does it use normal glibc, or one of the special cut down C libraries ? Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
Hello, IPfire use GCC 4.4.7 and glibc 2.12. Both are patched a lot. Because a lot of security fixes aplied to these two version and they hardened it more. i attached the terminal output, when you need further information, aks for it. The respository for IPFire-2.x is on github https://github.com/ipfire/ipfire-2.x. I hope i give you more and precise information. Yours <https://dict.leo.org/ende/index_de.html#/search=Yours&searchLoc=0&resultOrder=basic&multiwordShowSingle=on> *sincerely <https://dict.leo.org/ende/index_de.html#/search=sincerely&searchLoc=0&resultOrder=basic&multiwordShowSingle=on> Jonatan Schlag* 2015-10-08 10:53 GMT+02:00 Daniel P. Berrange <berrange@redhat.com>:> On Wed, Oct 07, 2015 at 07:05:53PM +0200, Jonny Schlag wrote: > > Description of problem: > > > > I try to build a libvirt package for the IPFire project > > (http://www.ipfire.org/). > > Without sasl libvirt build fine but with sasl libvirt fails to build > > with the following message: > > > > CC rpc/libvirt_net_rpc_la-virnetsaslcontext.lo > > In file included from rpc/virnetsaslcontext.h:25, > > from rpc/virnetsaslcontext.c:26: > > /usr/include/sasl/sasl.h:230: error: expected declaration specifiers > > or '...' before 'size_t' > > Makefile:7023: recipe for target > > Hmm, that's peculiar - it actually looks like the problem is in the > SASL header file sasl.h, rather than libvirt. > > > > > Version-Release number of selected component (if applicable): 1.2.20 > > > > > > How reproducible: > > Build libvirt with: > > 1. ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc > > --with-openssl --with-sasl --without-uml --without-vbox --without-lxc > > --without-esx --without-vmware --without-openvz --without-firewalld > > --without-storage-scsi --without-storage-mpath --without-avahi > > --with-test-suite -without-dbus --without-storage-lvm > > --without-pm-utils > > > > 2. make > > > > 3. the error occurs > > > > > > Additional info: > > > > Cyrus sasl (2.1.26) is build with > > That is the same version we have in Fedora, which we successfully > build with. > > > ./configure --prefix=/usr --sysconfdir=/etc \ > > --with-dbpath=/var/lib/sasl/sasldb2 \ > > --with-saslauthd=/var/run/saslauthd \ > > --with-des=no --with-rc4=no > > > > I attached the whole terminal output. > > There was no attachment to your mail actually. > > Is there anything notable about the IPFire distro that you know > of ? Does it use normal glibc, or one of the special cut down > C libraries ? > > Regards, > Daniel > -- > |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ > :| > |: http://libvirt.org -o- http://virt-manager.org > :| > |: http://autobuild.org -o- http://search.cpan.org/~danberr/ > :| > |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc > :| >