On Mon, Jun 18, 2012 at 11:53:01AM +0200, Jim Meyering wrote: > 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? > > Hi Rich, > > Thanks for the report. > I've just run gnulib's stand-alone test of the futimens module > (along with all of its dependent modules): > > # Run this from a gnulib source directory. > ./gnulib-tool --create-testdir --with-tests --test futimens > > and all tests linked and passed on Fedora 17, RHEL6.3, and RHEL5.5: > (all x86_64) > > PASS: test-alloca-opt > PASS: test-bitrotate > PASS: test-dup > PASS: test-errno > PASS: test-fcntl-h > PASS: test-fdopen > PASS: test-fgetc > PASS: test-float > PASS: test-fputc > PASS: test-fread > PASS: test-fstat > PASS: test-futimens > PASS: test-fwrite > PASS: test-getcwd-lgpl > PASS: test-gettimeofday > PASS: test-hash > PASS: test-ignore-value > PASS: test-intprops > PASS: test-inttostr > PASS: test-inttypes > PASS: test-lstat > PASS: test-memchr > PASS: test-pathmax > PASS: test-sleep > PASS: test-snprintf > PASS: test-stat > PASS: test-stat-time > PASS: test-stdbool > PASS: test-stddef > PASS: test-stdint > PASS: test-stdio > PASS: test-string > PASS: test-symlink > PASS: test-sys_stat > PASS: test-sys_time > PASS: test-sys_types > PASS: test-init.sh > PASS: test-time > PASS: test-unistd > PASS: test-usleep > PASS: test-utimens > PASS: test-vasnprintf > PASS: test-verify > PASS: test-verify.sh > PASS: test-wchar > > If that also fails for you, would you please post the full output?
That test does pass, although it skips the specific test we're interested in: skipping test: setting symlink time not supported on this file system SKIP: test-utimens Here's the kernel and filesystem: $ uname -a Linux builder-rhel5 2.6.18-274.el5 #1 SMP Fri Jul 8 17:36:59 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux $ /sbin/blkid -o value -s TYPE /dev/mapper/VolGroup00-LogVol00 ext3 Still investigating ... 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