]> The Tcpdump Group git mirrors - tcpdump/commit
Mend "make check" on Solaris 9 (Autoconf only).
authorDenis Ovsienko <[email protected]>
Sun, 25 Jul 2021 13:29:02 +0000 (14:29 +0100)
committerDenis Ovsienko <[email protected]>
Sun, 25 Jul 2021 13:44:03 +0000 (14:44 +0100)
commitfbd44158e0d5e6bb0c9b05671f702ebcf68cc56d
tree0f679179112e0151d3bac195807def62b08a0fe1
parenta917017bc0e68fa600e5d5fd1a724456053f9e4b
Mend "make check" on Solaris 9 (Autoconf only).

Sun C 5.9 does not support C99. GCC 4.6.4 recognizes -std=gnu99, but
does not support the z length modifier in printf(3). In either case 18
tests fail in the following manner:

<     [...]: domain [length 0 < 12] (invalid)
---
>     [...]: domain [length 0 < zu] (invalid)

Make these tests conditional and disable them when HAVE_NO_PRINTF_Z is
defined. Modify the Autoconf leg of the build process to define the
macro when printf() does not handle %zu as expected. The CMake leg looks
broken on Solaris 9 with 2.8.9 now, so leave it be for now.
CHANGES
config.h.in
configure
configure.ac
tests/TESTLIST
tests/printf_z.tests [new file with mode: 0644]