On Mon, Jun 18, 2012 at 10:26:57AM +0100, Richard W.M. Jones wrote: > > With gnulib from around May 25th, I get this error when compiling > on RHEL 5. > > bash ../../libtool-kill-dependency_libs.sh ../../libtool --tag=CC --mode=link > gcc -g -O2 -o test-futimens test-futimens.o libtests.a > ../../gnulib/lib/libgnu.la libtests.a -lrt > gcc -g -O2 -o test-futimens test-futimens.o ../../gnulib/lib/.libs/libgnu.a > libtests.a -lrt > libtests.a(utimecmp.o): In function `utimecmp': > /home/rjones/d/libguestfs/gnulib/tests/utimecmp.c:183: undefined reference to > `hash_insert' > /home/rjones/d/libguestfs/gnulib/tests/utimecmp.c:200: undefined reference to > `hash_lookup' > /home/rjones/d/libguestfs/gnulib/tests/utimecmp.c:171: undefined reference to > `hash_initialize' > collect2: ld returned 1 exit status > make[3]: *** [test-futimens] Error 1 > > I tried to add 'hash' as a dependency of the utimens-tests module, but > that didn't appear to make a difference. Perhaps something is missing > in the 'Link:' section of the module?
The module I should have been looking at is 'utimecmp'. However this module already depends on 'hash'. Is some other mechanism required to make it link to these hash functions? 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