[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnulib/tests/utimecmp.c:183: undefined reference to `hash_insert'
From: |
Jim Meyering |
Subject: |
Re: gnulib/tests/utimecmp.c:183: undefined reference to `hash_insert' |
Date: |
Mon, 18 Jun 2012 11:53:01 +0200 |
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?
- gnulib/tests/utimecmp.c:183: undefined reference to `hash_insert', Richard W.M. Jones, 2012/06/18
- Re: gnulib/tests/utimecmp.c:183: undefined reference to `hash_insert', Richard W.M. Jones, 2012/06/18
- Re: gnulib/tests/utimecmp.c:183: undefined reference to `hash_insert',
Jim Meyering <=
- Re: gnulib/tests/utimecmp.c:183: undefined reference to `hash_insert', Richard W.M. Jones, 2012/06/18
- Re: gnulib/tests/utimecmp.c:183: undefined reference to `hash_insert', Jim Meyering, 2012/06/18
- Re: gnulib/tests/utimecmp.c:183: undefined reference to `hash_insert', Richard W.M. Jones, 2012/06/18
- Re: gnulib/tests/utimecmp.c:183: undefined reference to `hash_insert', Jim Meyering, 2012/06/18
- Re: gnulib/tests/utimecmp.c:183: undefined reference to `hash_insert', Richard W.M. Jones, 2012/06/18
- Re: gnulib/tests/utimecmp.c:183: undefined reference to `hash_insert', Richard W.M. Jones, 2012/06/18
- Re: gnulib/tests/utimecmp.c:183: undefined reference to `hash_insert', Richard W.M. Jones, 2012/06/18