On 11/15/20 10:01 AM, Tom G. Christensen wrote:
Undefined                       first referenced
  symbol                             in file
clock_gettime                       ../gllib/libgnu.a(tempname.o)
ld: fatal: symbol referencing errors. No output written to test-getumask
collect2: error: ld returned 1 exit status
make[3]: *** [test-getumask] Error 1

This issue looks to be generic. It fails similarly on CentOS 6.

I fixed this issue by installing the attached. Thanks for reporting it.



/usr/include/iso/string_iso.h:92:20: note: previous declaration 'const char* 
std::strchr(const char*, int)'
92 | extern const char *strchr(const char *, int);

This sort of error (there were several) seems to be a C++-ism so I hope a C++ expert can chime in.


For Solaris 9 and older which need libintl from GNU gettext there are these additional errors:

Oracle doesn't support Solaris 9 and older, so these issues are low priority for Gnulib.
>From 065b9a04c6d5ac1fea6b776fe4faa650d385e187 Mon Sep 17 00:00:00 2001
From: Paul Eggert <egg...@cs.ucla.edu>
Date: Sun, 15 Nov 2020 19:54:33 -0800
Subject: [PATCH] getumask-tests: port to Solaris 10 etc.

Problem reported by Tom Christensen in:
https://lists.gnu.org/r/bug-gnulib/2020-11/msg00062.html
* modules/getumask-tests (test_getumask_LDADD):
Add $(LIB_CLOCK_GETTIME).
---
 ChangeLog              | 8 ++++++++
 modules/getumask-tests | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 70e2f9dd2..8c4342fe5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2020-11-15  Paul Eggert  <egg...@cs.ucla.edu>
+
+	getumask-tests: port to Solaris 10 etc.
+	Problem reported by Tom Christensen in:
+	https://lists.gnu.org/r/bug-gnulib/2020-11/msg00062.html
+	* modules/getumask-tests (test_getumask_LDADD):
+	Add $(LIB_CLOCK_GETTIME).
+
 2020-11-15  Akim Demaille  <a...@lrde.epita.fr>
 
 	bitset: use ffsl to accelerate iterations over set bits
diff --git a/modules/getumask-tests b/modules/getumask-tests
index 2968f37c5..efded3428 100644
--- a/modules/getumask-tests
+++ b/modules/getumask-tests
@@ -10,4 +10,4 @@ configure.ac:
 Makefile.am:
 TESTS += test-getumask
 check_PROGRAMS += test-getumask
-test_getumask_LDADD = $(LDADD) $(LIB_GETRANDOM)
+test_getumask_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME) $(LIB_GETRANDOM)
-- 
2.25.1

Reply via email to