[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fix compilation errors of C++ tests on Solaris 10 with Sun C++
From: |
Bruno Haible |
Subject: |
Fix compilation errors of C++ tests on Solaris 10 with Sun C++ |
Date: |
Sun, 04 Sep 2022 02:04:13 +0200 |
Building a testdir on Solaris 10 with the Sun C/C++ compilers, I get these
link errors:
CC -xarch=generic64 -O -g -L/home/haible/prefix-x86_64/lib -o test-string-c++
test-string-c++.o test-string-c++2.o libtests.a ../gllib/libgnu.a libtests.a
../gllib/libgnu.a libtests.a /home/haible/prefix-x86_64/lib/libintl.so
/home/haible/prefix-x86_64/lib/libiconv.so -R/home/haible/prefix-x86_64/lib
-lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm
Undefined first referenced
symbol in file
uc_width ../gllib/libgnu.a(wcwidth.o)
ld: fatal: symbol referencing errors. No output written to test-string-c++
gmake[4]: *** [Makefile:19860: test-string-c++] Error 1
CC -xarch=generic64 -O -g -L/home/haible/prefix-x86_64/lib -o test-wchar-c++
test-wchar-c++.o test-wchar-c++2.o test-wchar-c++3.o libtests.a
../gllib/libgnu.a libtests.a ../gllib/libgnu.a libtests.a
/home/haible/prefix-x86_64/lib/libintl.so
/home/haible/prefix-x86_64/lib/libiconv.so -R/home/haible/prefix-x86_64/lib
-lrt -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm
Undefined first referenced
symbol in file
uc_width ../gllib/libgnu.a(wcwidth.o)
ld: fatal: symbol referencing errors. No output written to test-wchar-c++
gmake[4]: *** [Makefile:21804: test-wchar-c++] Error 1
The following patch fixes it.
2022-09-03 Bruno Haible <bruno@clisp.org>
Fix compilation errors of C++ tests on Solaris 10 with Sun C++.
* modules/string-c++-tests (Makefile.am): Link test-string-c++ with
$(LIBUNISTRING).
* modules/wchar-c++-tests (Makefile.am): Link test-wchar-c++ with
$(LIBUNISTRING).
diff --git a/modules/string-c++-tests b/modules/string-c++-tests
index bd813bd892..10d117fa90 100644
--- a/modules/string-c++-tests
+++ b/modules/string-c++-tests
@@ -16,5 +16,5 @@ if ANSICXX
TESTS += test-string-c++
check_PROGRAMS += test-string-c++
test_string_c___SOURCES = test-string-c++.cc test-string-c++2.cc
-test_string_c___LDADD = $(LDADD) $(LIBINTL) $(LIBTHREAD)
+test_string_c___LDADD = $(LDADD) $(LIBUNISTRING) $(LIBINTL) $(LIBTHREAD)
endif
diff --git a/modules/wchar-c++-tests b/modules/wchar-c++-tests
index a91e43aec4..93135d5347 100644
--- a/modules/wchar-c++-tests
+++ b/modules/wchar-c++-tests
@@ -17,5 +17,5 @@ if ANSICXX
TESTS += test-wchar-c++
check_PROGRAMS += test-wchar-c++
test_wchar_c___SOURCES = test-wchar-c++.cc test-wchar-c++2.cc
test-wchar-c++3.cc
-test_wchar_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP) $(LIB_EACCESS)
$(LIBTHREAD)
+test_wchar_c___LDADD = $(LDADD) $(LIBUNISTRING) $(LIBINTL) $(LIB_NANOSLEEP)
$(LIB_EACCESS) $(LIBTHREAD)
endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Fix compilation errors of C++ tests on Solaris 10 with Sun C++,
Bruno Haible <=