On FreeBSD 12, in C++ mode, the getrandom() function is declared with C++
linkage. This leads to a compilation error in test-sys_random-c++:
In file included from ../../gltests/test-sys_random-c++.cc:22:
../gllib/sys/random.h:594:19: error: declaration of 'getrandom' has a different
language
On FreeBSD 13.0, I get this compilation error:
In file included from ../../gltests/test-math-c++2.cc:20:
/usr/include/c++/v1/cmath:325:7: error: no member named 'rpl_isnan' in the
global namespace; did you mean 'gnulib::rpl_isnan'?
using ::isnan;
^~
../gllib/math.h:3104:43: note:
On Hurd, I'm seeing this test failure:
test-strerror_r.c:112: assertion 'ret == ERANGE || ret == EINVAL' failed
FAIL test-strerror_r (exit status: 134)
This patch fixes it.
2022-09-02 Bruno Haible
strerror_r-posix: Fix for Hurd.
* lib/strerror_r.c (strerror_r): Interpret
Paul Eggert wrote:
> > +# if __GLIBC__ >= 2
> > _GL_CXXALIASWARN (strtol);
> > +# endif
>
> Would it make sense to move the __GLIBC__ >= 2 check into
> _GL_CXXALIASWARN so that we needn't worry about making these sorts of
> patches? How much benefit to non-glibc ports do we obtain from
On Debian GNU/Hurd, the test-ptsname and test-ptsname_r programs no longer
terminate the current tty session. They merely fail now. And it's easy to
fix the failures.
2022-09-02 Bruno Haible
ptsname tests, ptsname_r tests: Fix test failures on Hurd.
* tests/test-ptsname.c
On 9/2/22 13:37, Bruno Haible wrote:
+# if __GLIBC__ >= 2
_GL_CXXALIASWARN (strtol);
+# endif
Would it make sense to move the __GLIBC__ >= 2 check into
_GL_CXXALIASWARN so that we needn't worry about making these sorts of
patches? How much benefit to non-glibc ports do we obtain from
A gnulib testdir also produces these compilation errors on Solaris 11 OmniOS:
../gllib/stdlib.h:1918:1: error: 'long int strtol(const char*, char**, int)'
conflicts with a previous declaration
1918 | _GL_CXXALIASWARN (strtol);
| ^~~~
In file included from
A gnulib testdir produces a compilation error on Solaris 11 OmniOS:
In file included from /usr/include/sys/time.h:489,
from ../gllib/sys/time.h:39,
from /usr/include/sys/select.h:53,
from ../gllib/sys/select.h:36,
from
A gnulib testdir produces a compilation error on Solaris 11 OmniOS and
Solaris 11 OpenIndiana:
In file included from /usr/include/sys/time.h:489,
from ../gllib/sys/time.h:39,
from /usr/include/sys/select.h:53,
from ../gllib/sys/select.h:36,
A testdir that contains both the 'termcap' and 'terminfo' modules fails
to build on systems that don't have libncurses nor libtermcap:
gcc-10 -Wno-error -g -O2 -L/home/bruno/inst-x86_64-64/lib -o test-termcap
test-termcap.o libtests.a ../gllib/libgnu.a libtests.a ../gllib/libgnu.a
libtests.a
10 matches
Mail list logo