Re: Re: guestfs_mount_local* api undefined symbols
the 'hivex' had been installed actually, hivex.x86_64 0:1.2.4-3.el6 and perl-hivex.x86_64 0:1.2.4-3.el6, however it just could not be detected.Maybe i should compile one rather than just yum. I`m not familiar with hivex,as far as i know, it can be used to modify windows registry, but why the inspection API had been binded with hivex when we might use inspection api solely with linux os instance image? Nok ------------------ 原始邮件 ------------------ 发件人: "Richard W.M. Jones"<rjones@redhat.com>; 发送时间: 2012年5月11日(星期五) 凌晨1:19 收件人: "Nok"<leolc_2749@qq.com>; 抄送: "libguestfs"<libguestfs@redhat.com>; 主题: Re: 回复: [Libguestfs] guestfs_mount_local* api undefined symbols On Fri, May 11, 2012 at 01:03:26AM +0800, Nok wrote:
I checked the version and found that it printed an old 1.17.17 version which was deployed before. But I remembered i did check the version in guestfish shell and it said 1.17.40 before that,then i totally ignored the fact i had another version involved.
Local builds act a bit differently because they contain a hidden 'RPATH' ELF entry: $ eu-readelf -d ./fish/.libs/lt-guestfish | grep RPATH RPATH Library rpath: [/home/rjones/d/libguestfs/src/.libs:/usr/local/lib] This RPATH entry overrides LD_LIBRARY_PATH: $ LD_LIBRARY_PATH=/usr/lib64 ./fish/.libs/lt-guestfish --version guestfish 1.17.40 For the builds that we provide in Fedora and RHEL, we strip out RPATH: $ eu-readelf -d /usr/bin/guestfish | grep RPATH $ /usr/bin/guestfish --version /usr/bin/guestfish 1.17.36fedora=17,release=2.fc17
I`ve changed the LD_LIBRARY_PATH and the "undefined symbol" error disappeared.But some "inspection API not available because of compiled without hivex library" pops up.I`ll check this out later.
Install the 'hivex-devel' and 'libvirt-devel' packages (from RHEL) before ./configure && make. You may be able to do 'yum-builddep libguestfs' to install all the dependencies; or else read the libguestfs.spec file (BuildRequire lines). Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v +1close closepinpinsearchminimizeforwardbackViewTextzoomoutzoominzoomin
On Fri, May 11, 2012 at 10:13:49AM +0800, Nok wrote:
the 'hivex' had been installed actually, hivex.x86_64 0:1.2.4-3.el6 and perl-hivex.x86_64 0:1.2.4-3.el6, however it just could not be detected.
You need 'hivex-devel'.
I`m not familiar with hivex,as far as i know, it can be used to modify windows registry, but why the inspection API had been binded with hivex when we might use inspection api solely with linux os instance image?
Because the ./configure test is very simplistic, hivex is required even if you're only going to inspect Linux guests. In any case, hivex(-devel) is a simple C library which is very widely available so this is not really a problem. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones New in Fedora 11: Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 70 libraries supprt'd http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
I think all the problems occurred above are mainly because of the uncleaned environment of an old version before the installation . Maybe I should uninstall and remove all the *guestfs* stuff and figure it out. And concerning the 'hivex-devel',I really should`ve noticed that there was no 'hivex-devel' in my yum repo when i yum install '*hivex*'.Then i solved this with rpm package. Thank you Rich On 05/11/2012 03:34 PM, Richard W.M. Jones wrote:
On Fri, May 11, 2012 at 10:13:49AM +0800, Nok wrote:
the 'hivex' had been installed actually, hivex.x86_64 0:1.2.4-3.el6 and perl-hivex.x86_64 0:1.2.4-3.el6, however it just could not be detected. You need 'hivex-devel'.
I`m not familiar with hivex,as far as i know, it can be used to modify windows registry, but why the inspection API had been binded with hivex when we might use inspection api solely with linux os instance image? Because the ./configure test is very simplistic, hivex is required even if you're only going to inspect Linux guests. In any case, hivex(-devel) is a simple C library which is very widely available so this is not really a problem.
Rich.
I don't want to discourage you from compiling from source. But is there a particular feature of libguestfs 1.17.40 that you need which isn't in libguestfs 1.16.19 from here? http://people.redhat.com/~rjones/libguestfs-RHEL-6.3-preview/ Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v
On Fri, May 11, 2012 at 10:15:17AM +0100, Richard W.M. Jones wrote:
I don't want to discourage you from compiling from source. But is there a particular feature of libguestfs 1.17.40 that you need which isn't in libguestfs 1.16.19 from here?
http://people.redhat.com/~rjones/libguestfs-RHEL-6.3-preview/
OK, 'mount-local' I guess, given the subject line :-) We should probably make RHEL 6 builds (RPMs) available routinely. It wouldn't be too hard to add to the automated build system ... Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v
On 05/11/2012 05:18 PM, Richard W.M. Jones wrote:
On Fri, May 11, 2012 at 10:15:17AM +0100, Richard W.M. Jones wrote:
I don't want to discourage you from compiling from source. But is there a particular feature of libguestfs 1.17.40 that you need which isn't in libguestfs 1.16.19 from here?
http://people.redhat.com/~rjones/libguestfs-RHEL-6.3-preview/ OK, 'mount-local' I guess, given the subject line :-)
We should probably make RHEL 6 builds (RPMs) available routinely. It wouldn't be too hard to add to the automated build system ...
Rich.
Looking forward to it! And before that i guess i have to find a way to survive a series of errors and warning.:-[ Nok
Actually there is a particular feature that i wannt try out--- the mount_local api. And i remembered it was added from 1.17.22. As a result i had to gave up the 1.17.17 which had long been installed but not supportive , and after trials and errors compiling , i decided to pick up the latest devel version. And that`s the whole story with this thread :( At the time it`s not likely to change the rhel6.1 environment to later version. any suggestion? On 05/11/2012 05:15 PM, Richard W.M. Jones wrote:
I don't want to discourage you from compiling from source. But is there a particular feature of libguestfs 1.17.40 that you need which isn't in libguestfs 1.16.19 from here?
http://people.redhat.com/~rjones/libguestfs-RHEL-6.3-preview/
Rich.
On Fri, May 11, 2012 at 05:29:04PM +0800, Nok wrote:
Actually there is a particular feature that i wannt try out--- the mount_local api. And i remembered it was added from 1.17.22. As a result i had to gave up the [1.7.17] which had long been installed but not supportive , and after trials and errors compiling , i decided to pick up the latest devel version. And that`s the whole story with this thread :( At the time it`s not likely to change the rhel6.1 environment to later version.
We can probably backport the mount-local API for RHEL 6.4 (around Dec 2012 though). File a bug at http://bugzilla.redhat.com ... Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top
participants (2)
-
Nok -
Richard W.M. Jones