[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] libvirt Centos4



On Fri, Mar 27, 2009 at 10:28:50AM +0100, Gian Mario wrote:
> Hi to all,
> 
> i need to compile libvirt-3.3.0 to Centos 4.7. Searching in mailing list
> i have seen a tread that help me to solve few problems. Actually i face
> with a error concern glibc, when i run make in libvirt directory, I
> obtain:
> 
> /usr/lib64/libgcrypt.so.11: undefined reference to
> `__read_chk GLIBC_2 4'
> /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/libgnutls.so:
> undefined reference to `__stack_chk_fail GLIBC_2 4'
> collect2: ld returned 1 exit status
> make[2]: *** [virsh] Error 1
> make[2]: Leaving directory `/root/XEN/libvirt-0.3.3/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/root/XEN/libvirt-0.3.3'
> make: *** [all] Error 2
> 
> Any one have some experience on compile libvirt on centos4?
> there is any possibilities to build it without upgrade glibc?

The error you get is caused by some compiler flags libvirt is using.
Newer libvirt release fix this problem, so they only use the compiler
flags on OS where they actually guarenteed to work. So I'd recommend
using a much newer libvirt that 0.3.3 - in particular there have also
been some security fixes since that time.

RHEL-4 is also quite an old platform, so I won't expect the hypervisor
drivers to neccessarily work that. I *would* however expect you to be
able to compile the remote RPC client driver. eg you could probably
get it to build just the client with

  ./configure \
    --without-avahi \
    --without-polkit \
    --without-xen \
    --without-qemu \
    --without-lxc \
    --without-uml \
    --without-openvz \
    --without-libvirtd


Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]