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 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/ _______________________________________________ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo/libguestfs