bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: test-copy-file build error on CentOS 6


From: Bruno Haible
Subject: Re: test-copy-file build error on CentOS 6
Date: Thu, 18 May 2017 22:23:06 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-75-generic; KDE/5.18.0; x86_64; ; )

Hello Tom,

> I just noticed that I am unable to build a gnulib snapshot with tests on 
> CentOS 6:
> 
> gcc -std=gnu99  -g -O2 -Wall   -o test-copy-file test-copy-file.o 
> ../gllib/libgnu.a -lacl  -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm
> ../gllib/libgnu.a(gettime.o): In function `gettime':
> /home/tgc/projects/gnulib/build/gllib/gettime.c:36: undefined reference 
> to `clock_gettime'
> 
> 
> The last commit to build successfully was e48f55fd7.

Thanks for the report! The cause is that I added a dependency to module
'utimens' on 2017-05-01. This patch should fix it:


2017-05-18  Bruno Haible  <address@hidden>

        copy-file tests: Fix link error (regression from 2017-05-01).
        Reported by Tom G. Christensen <address@hidden>.
        * modules/copy-file-tests (Makefile.am): Link test-copy-file with
        $(LIB_CLOCK_GETTIME).

diff --git a/modules/copy-file-tests b/modules/copy-file-tests
index c6eaf70..299d49f 100644
--- a/modules/copy-file-tests
+++ b/modules/copy-file-tests
@@ -17,4 +17,4 @@ Makefile.am:
 TESTS += test-copy-file.sh test-copy-file-1.sh test-copy-file-2.sh
 TESTS_ENVIRONMENT += USE_ACL=$(USE_ACL)
 check_PROGRAMS += test-copy-file
-test_copy_file_LDADD = $(LDADD) $(LIB_ACL) @LIBINTL@
+test_copy_file_LDADD = $(LDADD) $(LIB_ACL) $(LIB_CLOCK_GETTIME) @LIBINTL@




reply via email to

[Prev in Thread] Current Thread [Next in Thread]