tcpdump mailing list archives
[tcpdump] About HAVE_NO_PRINTF_Z
From: Francois-Xavier Le Bail via tcpdump-workers <tcpdump-workers () lists tcpdump org>
Date: Thu, 12 Jan 2023 07:44:07 +0100
--- Begin Message --- From: Francois-Xavier Le Bail <devel.fx.lebail () orange fr>
Date: Thu, 12 Jan 2023 07:44:07 +0100
Hello, The commit fbd44158e0d5e6bb0c9b05671f702ebcf68cc56d was: ------------------------------------------------------------------------------- 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. ------------------------------------------------------------------------------- I think that if a compiler builds a tcpdump that outputs "zu" when it must output "12", it's an error and this compiler must be tag "unsupported". Thus I propose to revert this commit and the cherry-picked one in 4.99 branch. (We have been requesting support from C99 since 2018.) -- Francois-Xavier
--- End Message ---
_______________________________________________ tcpdump-workers mailing list tcpdump-workers () lists tcpdump org https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers
Current thread:
- [tcpdump] About HAVE_NO_PRINTF_Z Francois-Xavier Le Bail via tcpdump-workers (Jan 11)
- Re: [tcpdump] About HAVE_NO_PRINTF_Z Guy Harris via tcpdump-workers (Jan 11)
- Re: [tcpdump] About HAVE_NO_PRINTF_Z Guy Harris via tcpdump-workers (Jan 12)
- Re: [tcpdump] About HAVE_NO_PRINTF_Z Denis Ovsienko via tcpdump-workers (Jan 12)
- Message not available
- Re: [tcpdump] About HAVE_NO_PRINTF_Z Denis Ovsienko via tcpdump-workers (Jan 14)
- Re: [tcpdump] About HAVE_NO_PRINTF_Z Denis Ovsienko via tcpdump-workers (Jan 30)
- Re: [tcpdump] About HAVE_NO_PRINTF_Z Denis Ovsienko (Feb 16)
- Re: [tcpdump] About HAVE_NO_PRINTF_Z Guy Harris via tcpdump-workers (Jan 12)
- Re: [tcpdump] About HAVE_NO_PRINTF_Z Guy Harris via tcpdump-workers (Jan 11)
- Message not available
- Re: [tcpdump] About HAVE_NO_PRINTF_Z Francois-Xavier Le Bail via tcpdump-workers (Jan 12)