Hi there! I'm building libvirt-1.1.4 on Tizen. I had to modify the spec file: 1. Comment out requirements: xhtml1, scrub, shadow-utils 2. Added defines: %define _without_selinux 1 %define _without_hal 1 %define _without_libnl 1 %define _without_macvtap 1 %define _without_storage_fs 1 %define _without_network 1 %define _without_sasl 1 %define _without_qemu 1 %define _without_storage_lvm 1 %define _without_storage_iscsi 1 %define _without_storage_disk 1 %define _without_storage_mpath 1 %define _without_nwfilter 1 %define _without_libssh2 1 %define _without_hyperv 1 %define _without_phyp 1 %define dist tizen (I build with Tizen's GBS and I had a problem with passing arguments to rpmbuild, so I just added those defines) My problem is a undefined reference to virAtomicLock: [ 227s] ../src/.libs/libvirt-setuid-rpc-client.a(libvirt_setuid_rpc_client_la-virobj ect.o): In function `virClassNew': [ 227s] /home/abuild/rpmbuild/BUILD/libvirt-1.1.4/src/util/virobject.c:132: undefined reference to `virAtomicLock' [ 227s] ../src/.libs/libvirt-setuid-rpc-client.a(libvirt_setuid_rpc_client_la-virobj ect.o): In function `virObjectNew': [ 227s] /home/abuild/rpmbuild/BUILD/libvirt-1.1.4/src/util/virobject.c:202: undefined reference to `virAtomicLock' [ 227s] ../src/.libs/libvirt-setuid-rpc-client.a(libvirt_setuid_rpc_client_la-virobj ect.o): In function `virObjectUnref': [ 227s] /home/abuild/rpmbuild/BUILD/libvirt-1.1.4/src/util/virobject.c:270: undefined reference to `virAtomicLock' [ 227s] ../src/.libs/libvirt-setuid-rpc-client.a(libvirt_setuid_rpc_client_la-virobj ect.o): In function `virObjectRef': [ 227s] /home/abuild/rpmbuild/BUILD/libvirt-1.1.4/src/util/virobject.c:295: undefined reference to `virAtomicLock' Any ideas? Thanks! Jan
On 11/05/2013 09:18 AM, Jan Olszak wrote:> Hi there! > > I'm building libvirt-1.1.4 on Tizen. I had to modify the spec file: > > 1. Comment out requirements: xhtml1, scrub, shadow-utilsWhy? Are these prerequisites not available for you?> > 2. Added defines: > > %define _without_selinux 1Would you care to submit a patch to libvirt.spec.in that sets up the defaults correctly as part of the upstream patch? Right now, the spec file caters to Fedora and RHEL because those are the only two downstreams that have bothered to submit patches back upstream.> > My problem is a undefined reference to virAtomicLock: > > [ 227s] > ../src/.libs/libvirt-setuid-rpc-client.a(libvirt_setuid_rpc_client_la-virobj > ect.o): In function `virClassNew':Which has just been patched: https://www.redhat.com/archives/libvir-list/2013-November/msg00142.html -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Daniel P. Berrange
2013-Nov-06 00:39 UTC
Re: [libvirt-users] Building libvirt for ARM tizen.
On Tue, Nov 05, 2013 at 09:46:39AM -0700, Eric Blake wrote:> On 11/05/2013 09:18 AM, Jan Olszak wrote: > > Hi there! > > > > I'm building libvirt-1.1.4 on Tizen. I had to modify the spec file: > > > > 1. Comment out requirements: xhtml1, scrub, shadow-utils > > Why? Are these prerequisites not available for you?Tizen is lacking loads of stuff you'd otherwise find in Fedora/RHEL.> > 2. Added defines: > > > > %define _without_selinux 1 > > Would you care to submit a patch to libvirt.spec.in that sets up the > defaults correctly as part of the upstream patch? Right now, the spec > file caters to Fedora and RHEL because those are the only two > downstreams that have bothered to submit patches back upstream.Realistically I don't think we want to add stuff for Tizen to the default upstream RPM specfile. It just isn't a widely used enough platform to make the maint burden worthwhile. 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 :|
Thanks! 1. file /bin/su from coreutils conflicts with file from package shadow-utils, and others are not available 2. I will try to, but to be honest I'm still not sure what is the right configuration. 3. Thank you! Jan -----Original Message----- From: Eric Blake [mailto:eblake@redhat.com] Sent: Tuesday, November 05, 2013 5:47 PM To: Jan Olszak; libvirt-users@redhat.com Subject: Re: [libvirt-users] Building libvirt for ARM tizen. On 11/05/2013 09:18 AM, Jan Olszak wrote:> Hi there! > > I'm building libvirt-1.1.4 on Tizen. I had to modify the spec file: > > 1. Comment out requirements: xhtml1, scrub, shadow-utilsWhy? Are these prerequisites not available for you?> > 2. Added defines: > > %define _without_selinux 1Would you care to submit a patch to libvirt.spec.in that sets up the defaults correctly as part of the upstream patch? Right now, the spec file caters to Fedora and RHEL because those are the only two downstreams that have bothered to submit patches back upstream.> > My problem is a undefined reference to virAtomicLock: > > [ 227s] > ../src/.libs/libvirt-setuid-rpc-client.a(libvirt_setuid_rpc_client_la- > virobj > ect.o): In function `virClassNew':Which has just been patched: https://www.redhat.com/archives/libvir-list/2013-November/msg00142.html -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org