fix compilation errors in C++ mode on Haiku

2019-12-08 Thread Bruno Haible
On Haiku, a testdir built with --with-c++-tests produces the following errors: ../gllib/stdio.h:1736:1: error: 'vdprintf' was not declared in this scope _GL_CXXALIASWARN (vdprintf); ^ ../gllib/unistd.h: In member function 'gnulib::_gl_usleep_wrapper::operator gnulib::_gl_usleep_wrapper::type()

Re: fix compilation error in C++ mode on HP-UX 11

2019-12-08 Thread Bruno Haible
> On HP-UX 11, a testdir built with --with-c++-tests produces a number of > errors On HP-UX 11/ia64, in 32-bit mode, there is another set of errors: source='../../gltests/test-stdio-c++.cc' object='test-stdio-c++.o' libtool=no \ DEPDIR=.deps depmode=hp2 /bin/sh ../../build-aux/depcomp \ aCC -O -D

fix compilation error in C++ mode on HP-UX 11

2019-12-08 Thread Bruno Haible
On HP-UX 11, a testdir built with --with-c++-tests produces a number of errors about functions being undeclared. Which functions, depends on the compiler options. The least number of such undeclared function errors occur with the options -D_HPUX_SOURCE -D_XOPEN_SOURCE=600. In this case, one error r

fix compilation error in C++ mode on OpenBSD

2019-12-08 Thread Bruno Haible
On OpenBSD, a testdir created with --with-c++-tests produces this compilation error: depbase=`echo test-spawn-c++.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; g++ -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I../../gltests -I.. -DGNULIB_STRICT_CHECKING=1 -DIN_GNULIB_TESTS=1 -I. -I../../gltests -I.. -I../

fix compilation errors on HP-UX 11/ia64

2019-12-08 Thread Bruno Haible
On HP-UX 11.31/ia64 I'm seeing these errors: DEPDIR=.deps depmode=hp2 /bin/sh ../../build-aux/depcomp \ cc +DD64 -AC99 -D_XOPEN_SOURCE=500 -DHAVE_CONFIG_H -I. -I../../gllib -I.. -DGNULIB_STRICT_CHECKING=1 -I/home/haible/prefix-hpux113ia64-64-cc/include -g -c -o math.o ../../gllib/math.c "./mat

math tests: don't fail if isfinite, isinf, isnan, signbit is a macro.

2019-12-08 Thread Bruno Haible
On several platforms (macOS, FreeBSD, Solaris 11, Cygwin, mingw) I'm seeing these errors: c++ -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I../../gltests -I.. -DGNULIB_STRICT_CHECKING=1 -DIN_GNULIB_TESTS=1 -I. -I../../gltests -I.. -I../../gltests/.. -I../gllib -I../../gltests/../gllib -I/home/bruno/inclu

fix compilation errors in C++ mode on FreeBSD

2019-12-08 Thread Bruno Haible
In a testdir created with --with-c++-tests, on FreeBSD 12, I see these errors: depbase=`echo test-pthread-c++.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ c++ -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I../../gltests -I.. -DGNULIB_STRICT_CHECKING=1 -DIN_GNULIB_TESTS=1 -I. -I../../gltests -I.. -I../../gltest

fix compilation errors in C++ mode on macOS and FreeBSD

2019-12-08 Thread Bruno Haible
On macOS 10.13, with a testdir built with --with-c++-tests, I'm seeing these errors: depbase=`echo test-math-c++2.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I../../gltests -I.. -DGNULIB_STRICT_CHECKING=1 -DIN_GNULIB_TESTS=1 -I. -I../../gltests -I.. -I