[PATCH] ruby: add -DGUESTFS_PRIVATE_FUNCTIONS=1 to CFLAGS
by Olaf Hering
Signed-off-by: Olaf Hering <olaf(a)aepfle.de>
---
This, and the CFLAGS change it depends on should be backported to 1.20.x
ruby/ext/guestfs/extconf.rb.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ruby/ext/guestfs/extconf.rb.in b/ruby/ext/guestfs/extconf.rb.in
index 15259ea..808ff9e 100644
--- a/ruby/ext/guestfs/extconf.rb.in
+++ b/ruby/ext/guestfs/extconf.rb.in
@@ -30,7 +30,7 @@ unless have_library("guestfs", "guestfs_create", "guestfs.h")
end
$CFLAGS =
- "#{$CFLAGS} @CFLAGS@ -DGUESTFS_PRIVATE_FUNCTIONS=1 " <<
+ "#{$CFLAGS} @CFLAGS@ -DGUESTFS_PRIVATE_FUNCTIONS=1 -DGUESTFS_PRIVATE_FUNCTIONS=1" <<
"@WARN_CFLAGS@ @WERROR_CFLAGS@"
create_header
--
1.8.0.1
11 years, 11 months
libguestfs-test-tool error, libcap.so - no such file
by Skippy VonDrake
Did install from source of libguestfs-1.20.1 on Ubuntu-12.10.
And libguestfs-test-tool complains about not finding libcap.so.2
uptime: 2.26 1.00
guestfsd: error while loading shared libraries: libcap.so.2: cannot
open shared object file: No such file or directory
[ 2.277795] Unregister pv shared memory for cpu 0
[ 2.278324] kvm: exiting hardware virtualization
[ 2.278763] sd 2:0:1:0: [sdb] Synchronizing SCSI cache
[ 2.284494] sd 2:0:0:0: [sda] Synchronizing SCSI cache
[ 4.224797] Disabling non-boot CPUs ...
[ 4.225182] Restarting system.
[ 4.225467] machine restart
Full output at: http://pastebin.com/csndiF2A
$ sudo find / -name 'libcap.so*' | xargs ls -lh
/lib/i386-linux-gnu/libcap.so.2 -> libcap.so.2.22
/lib/i386-linux-gnu/libcap.so.2.22
/lib/x86_64-linux-gnu/libcap.so -> libcap.so.2
/lib/x86_64-linux-gnu/libcap.so.2 -> libcap.so.2.22
/lib/x86_64-linux-gnu/libcap.so.2.22
Rich, I know that you've stated in the past that you don't do 'install' and
refer to the run scripts and the README file in response to problems
installing libguestfs on Ubuntu.
Should an install of libguestfs be considered as a "do at your own
risk" endeavor?
Putting it in the quasi-support realm?
And is the appliance trying to find libcap.so on the host or within
the appliance when it fails?
Skippy
11 years, 11 months
febootstrap's version problem
by 王健
Hi,Richard
When I installed Libguestfs with source code,it required the version of febootstrap.
But febootstrap had been installed beyond the version required.
Could you give me some suggestion?
Thanks.
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)
is intended only for the use of the intended recipient and may be confidential and/or privileged of
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is
not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying
is strictly prohibited, and may be unlawful.If you have received this communication in error,please
immediately notify the sender by return e-mail, and delete the original message and all copies from
your system. Thank you.
---------------------------------------------------------------------------------------------------
11 years, 11 months
Re: [Libguestfs] redhat 6.2 "libguestfs" for help
by Richard W.M. Jones
On Mon, Dec 31, 2012 at 09:56:51AM +0800, Aiping Liu wrote:
> Dear Mr rjones,
> My name is aiping.liu ,nice to meet you. I am from china.
> Yesterday,i am build a libguestfs package with the OS
> RHEL6.2(32bit),like this : rpmbuild -ba libguestfs.spec .I use a common
> user.But then i get some errors follow:
> ...........................
> + febootstrap -i augeas-libs -i btrfs-progs -i cryptsetup-luks -i diffutils
> -i e2fsprogs -i e4fsprogs -i gfs-utils -i gfs2-utils -i hfsplus-tools -i
> iputils -i kernel -i MAKEDEV -i nilfs-utils -i ntfsprogs -i ntfs-3g -i
> reiserfs-utils -i libselinux -i udev -i util-linux-ng -i vim-minimal -i xz
> -i zfs-fuse -i acl -i attr -i bash -i binutils -i coreutils -i dosfstools
> -i file -i gawk -i grub -i jfsutils -i lsof -i lvm2 -i module-init-tools -i
> net-tools -i parted -i procps -i scrub -i strace -i xfsprogs -i zerofree -u
> none rhel-6 initramfs file:///home/cacti/rpmbuild/
> BUILD/libguestfs-1.7.17/repo
> febootstrap
> | 1.3 kB 00:00 ...
> febootstrap/primary
> | 206 B 00:00 ...
> Setting up Install Process
> No package augeas-libs available.
> No package btrfs-progs available.
> No package cryptsetup-luks available.
> No package diffutils available.
> No package e2fsprogs available.
> No package e4fsprogs available.
> No package gfs-utils available.
> No package gfs2-utils available.
> No package hfsplus-tools available.
> No package iputils available.
> No package kernel available.
> No package MAKEDEV available.
> No package nilfs-utils available.
> No package ntfsprogs available.
> No package ntfs-3g available.
> No package reiserfs-utils available.
> No package libselinux available.
> No package udev available.
> No package util-linux-ng available.
> No package vim-minimal available.
> No package xz available.
> No package zfs-fuse available.
> No package acl available.
> No package attr available.
> No package bash available.
> No package binutils available.
> No package coreutils available.
> No package dosfstools available.
> No package file available.
> No package gawk available.
> No package grub available.
> No package jfsutils available.
> No package lsof available.
> No package lvm2 available.
> No package module-init-tools available.
> No package net-tools available.
> No package parted available.
> No package procps available.
> No package scrub available.
> No package strace available.
> No package xfsprogs available.
> No package zerofree available.
> Error: Nothing to do
> chroot: failed to run command `rm': No such file or directory
> chroot: failed to run command `rm': No such file or directory
> make[2]: *** [../initramfs/fakeroot.log] Error 1
> make[2]: Leaving directory
> `/home/cacti/rpmbuild/BUILD/libguestfs-1.7.17/appliance'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/cacti/rpmbuild/BUILD/libguestfs-1.7.17'
> make: *** [all] Error 2
> error: Bad exit status from /var/tmp/rpm-tmp.viluyK (%build)
>
>
> RPM build errors:
> Bad exit status from /var/tmp/rpm-tmp.viluyK (%build)
>
> I am looking forward for your answers.Thank you.
See:
http://libguestfs.org/guestfs-faq.1.html#why-do-i-get-an-error-when-i-try...
Please send questions to the libguestfs mailing list, or if you've
got Red Hat support, through Red Hat support.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
11 years, 11 months
err from guestfs_launch
by Skippy VonDrake
This error is with libguestfs 1.20.
Calling guestfs_launch() with tracing on:
supermin helper [00065ms] finished creating appliance
libguestfs: checksum of existing appliance:
2bd6811426e14b6fb661b4d52cebd6c21a41df1a068e8acf6a7a08e3b3bd4ada
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/var/tmp"
libguestfs: [00071ms] begin building supermin appliance
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/var/tmp"
libguestfs: [00071ms] run febootstrap-supermin-helper
libguestfs: command: run: febootstrap-supermin-helper
libguestfs: command: run: \ --verbose
libguestfs: command: run: \ --copy-kernel
libguestfs: command: run: \ -f ext2
libguestfs: command: run: \ /usr/local/lib/guestfs/supermin.d
libguestfs: command: run: \ x86_64
libguestfs: command: run: \ /var/tmp/guestfs.lQs0RL/kernel
libguestfs: command: run: \ /var/tmp/guestfs.lQs0RL/initrd
libguestfs: command: run: \ /var/tmp/guestfs.lQs0RL/root
febootstrap-supermin-helper: unrecognized option '--copy-kernel'
febootstrap-supermin-helper: build the supermin appliance on the fly
Usage:
febootstrap-supermin-helper [-options] inputs [...] host_cpu kernel initrd
<snip>
Same code works on a different system. Both systems are Ubuntu 12.04.
However the system that works is using Linux 3.6.4-pv whereas the system
that fails is Linux 3.5.4-pv.
Do I need to upgrade the kernel?
11 years, 11 months