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 at redhat.com>; ????: 2012?5?11?(???) ??1:19 ???: "Nok"<leolc_2749 at qq.com>; ??: "libguestfs"<libguestfs at 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libguestfs/attachments/20120511/5d488c90/attachment.htm>
Richard W.M. Jones
2012-May-11 07:34 UTC
[Libguestfs] Re: Re: guestfs_mount_local* api undefined symbols
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
Possibly Parallel Threads
- 回复: guestfs_mount_local* api undefined symbols
- guestfs_mount_local* api undefined symbols
- guestfs_mount_local api test: have to 'mount' before calling it?
- Bug in lm.wfit with zero weights in 0.63.3 (PR#136)
- Computing stats on common parts of multiple dataframes