Hi, I'm trying to compile hivex library that I just discovered. I'd use binaries but I only have an i386 ubuntu and debian so I tryied to compile. ./configure finished with incouraging:: ----------------------------------------------------------- Thank you for downloading hivex 1.3.3 This is how we have configured the optional components for you today: OCaml bindings ...................... no Perl bindings ....................... yes Python bindings ..................... yes Ruby bindings ....................... no If any optional component is configured 'no' when you expected 'yes' then you should check the preceeding messages. Please report bugs back to the mailing list: http://www.redhat.com/mailman/listinfo/libguestfs Next you should type 'make' to build the package, then 'make check' to run the tests. ------------------------------------------------------------ but then compilation end badly:: Making all in xml make[2]: Entering directory `/tmp/hivex-1.3.3/xml' CCLD hivexml hivexml-hivexml.o: In function `main': /tmp/hivex-1.3.3/xml/hivexml.c:96: undefined reference to `rpl_getopt' /tmp/hivex-1.3.3/xml/hivexml.c:110: undefined reference to `rpl_optind' /tmp/hivex-1.3.3/xml/hivexml.c:154: undefined reference to `rpl_optind' collect2: ld returned 1 exit status make[2]: *** [hivexml] Error 1 make[2]: Leaving directory `/tmp/hivex-1.3.3/xml' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/hivex-1.3.3' make: *** [all] Errore 2 And I'm not enought skilled to understand it. The error is on ubuntu 10.04. A complete log can be viewd at http://pastebin.com/0s9UnxPh thanks for any possible hints sandro *:-) PS: I dont have libguestfs as I just need to batch modify (preferably via Python) some profile NTUSER.DAT. My understanding is that hivex does not depend on libguestfs.
On Sun, Mar 11, 2012 at 08:43:56PM +0100, Alessandro Dentella wrote:> Hi, > > I'm trying to compile hivex library that I just discovered. I'd use binaries > but I only have an i386 ubuntu and debian so I tryied to compile. > > ./configure finished with incouraging:: > > ----------------------------------------------------------- > Thank you for downloading hivex 1.3.3 > > This is how we have configured the optional components for you today: > > OCaml bindings ...................... no > Perl bindings ....................... yes > Python bindings ..................... yes > Ruby bindings ....................... no > > If any optional component is configured 'no' when you expected 'yes' > then you should check the preceeding messages. > > Please report bugs back to the mailing list: > http://www.redhat.com/mailman/listinfo/libguestfs > > Next you should type 'make' to build the package, > then 'make check' to run the tests. > ------------------------------------------------------------ > > > but then compilation end badly:: > > Making all in xml > make[2]: Entering directory `/tmp/hivex-1.3.3/xml' > CCLD hivexml > hivexml-hivexml.o: In function `main': > /tmp/hivex-1.3.3/xml/hivexml.c:96: undefined reference to `rpl_getopt' > /tmp/hivex-1.3.3/xml/hivexml.c:110: undefined reference to `rpl_optind' > /tmp/hivex-1.3.3/xml/hivexml.c:154: undefined reference to `rpl_optind' > collect2: ld returned 1 exit status > make[2]: *** [hivexml] Error 1 > make[2]: Leaving directory `/tmp/hivex-1.3.3/xml' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/tmp/hivex-1.3.3' > make: *** [all] Errore 2 > > > And I'm not enought skilled to understand it. The error is on ubuntu 10.04. > A complete log can be viewd at http://pastebin.com/0s9UnxPhI don't understand why you see the error, but it comes from gnulib. Is gnulib/lib/libgnu.a getting built and does it contain the rpl_getopt symbol? You shouldn't need that symbol though, because getopt should be defined in glibc. Maybe you don't have the libc6-dev package installed?> thanks for any possible hints > > > sandro > *:-) > > > PS: I dont have libguestfs as I just need to batch modify (preferably via > Python) some profile NTUSER.DAT. My understanding is that hivex does not > depend on libguestfs.hivex doesn't depend on libguestfs. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/
Please keep replies on the list. On Mon, Mar 12, 2012 at 12:05:58AM +0100, Alessandro Dentella wrote:> On Sun, Mar 11, 2012 at 09:50:35PM +0000, Richard W.M. Jones wrote: > > On Sun, Mar 11, 2012 at 08:43:56PM +0100, Alessandro Dentella wrote: > > > Hi, > > > > > > I'm trying to compile hivex library that I just discovered. I'd use binaries > > > but I only have an i386 ubuntu and debian so I tryied to compile. > > > > > > ./configure finished with incouraging:: > > > > > > ----------------------------------------------------------- > > > Thank you for downloading hivex 1.3.3 > > > > > > This is how we have configured the optional components for you today: > > > > > > OCaml bindings ...................... no > > > Perl bindings ....................... yes > > > Python bindings ..................... yes > > > Ruby bindings ....................... no > > > > > > If any optional component is configured 'no' when you expected 'yes' > > > then you should check the preceeding messages. > > > > > > Please report bugs back to the mailing list: > > > http://www.redhat.com/mailman/listinfo/libguestfs > > > > > > Next you should type 'make' to build the package, > > > then 'make check' to run the tests. > > > ------------------------------------------------------------ > > > > > > > > > but then compilation end badly:: > > > > > > Making all in xml > > > make[2]: Entering directory `/tmp/hivex-1.3.3/xml' > > > CCLD hivexml > > > hivexml-hivexml.o: In function `main': > > > /tmp/hivex-1.3.3/xml/hivexml.c:96: undefined reference to `rpl_getopt' > > > /tmp/hivex-1.3.3/xml/hivexml.c:110: undefined reference to `rpl_optind' > > > /tmp/hivex-1.3.3/xml/hivexml.c:154: undefined reference to `rpl_optind' > > > collect2: ld returned 1 exit status > > > make[2]: *** [hivexml] Error 1 > > > make[2]: Leaving directory `/tmp/hivex-1.3.3/xml' > > > make[1]: *** [all-recursive] Error 1 > > > make[1]: Leaving directory `/tmp/hivex-1.3.3' > > > make: *** [all] Errore 2 > > > > > > > > > And I'm not enought skilled to understand it. The error is on ubuntu 10.04. > > > A complete log can be viewd at http://pastebin.com/0s9UnxPh > > > > I don't understand why you see the error, but it comes from gnulib. > > Is gnulib/lib/libgnu.a getting built and does it contain the > > no, it's not thereIf you're compiling from git, did you run ./autogen.sh? Did it run successfully? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org
Please keep replies on the list, otherwise how can future readers benefit from the permanent record of answers? On Tue, Mar 13, 2012 at 03:43:07PM +0100, Alessandro Dentella wrote:> On Tue, Mar 13, 2012 at 02:33:13PM +0000, Richard W.M. Jones wrote: > > On Tue, Mar 13, 2012 at 02:33:40PM +0100, Alessandro Dentella wrote: > > > On Mon, Mar 12, 2012 at 08:36:32AM +0000, Richard W.M. Jones wrote: > > > > If you're compiling from git, did you run ./autogen.sh? Did it > > > > run successfully? > > > > > > no, I used the package at [1]. After you e-mail I also cloned the git repo > > > and run autogen.sh that ends with > > > > > > # Rerun the generator (requires OCaml interpreter). This is *not* for > > > # anything that is required at configure-time when configure is run > > > # from a distribution tarball. From those, nothing ocaml-related is > > > # required. > > > mkdir -p perl/lib/Win > > > ./generator/generator.ml > > > /usr/bin/env: ocaml: permission denied > > > > > > And I don't have/need ocaml > > > > You need if you want to build from git, but not from tarballs, > > although if you have Debian/Ubuntu you might as well just install the > > OCaml compiler. > > isn't it possible to avoid it?Yes, if you build from tarballs.> > > [1] http://libguestfs.org/download/hivex/hivex-1.3.3.tar.gz > > > > > > Any more hints? > > > > You didn't mention what version of Debian or Ubuntu you are using. > > I'm testing on Ubuntu 10.04. I'm not using .deb since they're just for amd > and I'm on i386.Yes, there is some problem with Ubuntu 10.04; I can reproduce it here, but it probably just requires updating gnulib. I'll try to see if that helps ... 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#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora
Reasonably Related Threads
- hivex-1.2.7 build failure on Ubuntu 10.04, rpl_getopt, rpl_optind
- [PATCH] hivexml
- [PATCH] hivex: Added gnulib includes from builddir, as suggested by the Gnulib documentation; link hivexml against libgnu.
- [PATCH 0/7] hivex + hivexml: Add byte runs for nodes and values
- [PATCH 0/3] hivex: Improve OS X support