[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Build errors on Solaris
From: |
Bruno Haible |
Subject: |
Re: Build errors on Solaris |
Date: |
Mon, 16 Nov 2020 16:47:03 +0100 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-193-generic; KDE/5.18.0; x86_64; ; ) |
Tom G. Christensen wrote:
> In file included from test-list-c++.cc:23:
> ../gllib/string.h:1010:1: error: 'std::size_t strcspn(const char*, const
> char*)' conflicts with a previous declaration
> 1010 | _GL_WARN_ON_USE (strcspn, "strcspn cannot work correctly on
> character strings "
> | ^~~~~~~~~~~~~~~
> In file included from /usr/include/string.h:18,
> from ../gllib/string.h:41,
> from test-list-c++.cc:23:
> /usr/include/iso/string_iso.h:67:15: note: previous declaration
> 'std::size_t std::strcspn(const char*, const char*)'
> 67 | extern size_t strcspn(const char *, const char *);
> | ^~~~~~~
>
This is not something we can easily fix. You see that the cited
strcspn declarations are the same, yet they "conflict". I guess
problem is that the one in /usr/include/iso/string_iso.h is not
in the "C" namespace.
Generally, these C++ tests are supported on glibc systems with
modern GCC. For testing Solaris 10, try passing the option
'--without-c++-tests' to gnulib-tool.
Bruno