Building with clang-16 fails with > ../zlib-1.2.13/crc32.c:126:16: error: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype] > local z_word_t byte_swap(word) > ^
Upstream PR: https://github.com/madler/zlib/pull/779
Created attachment 851250 [details, diff] zlib-1.2.13-clang16.patch Patch for ~zlib-1.2.13
Created attachment 851252 [details] build.log
Created attachment 851254 [details] emerge --info
Note that -Wdeprecated-non-prototype is not an error by default with Clang 16, I believe, just a warning. >=sys-devel/clang-common-16[stricter] enables _stricter_ defaults than Clang 16 ships with. So, normally, to test for Clang 16 preparedness, people want either <sys-devel/clang-common-16[stricter] or >=sys-devel/clang-16. But the bug is still valid, of course. It'll be broken when things switch to -std=c23 by default.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7b87a81b27f0d176d42fcb96747e5ecc72d62c6 commit b7b87a81b27f0d176d42fcb96747e5ecc72d62c6 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-08-18 10:09:13 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-08-18 10:11:04 +0000 sys-libs/zlib: add 1.3 Closes: https://bugs.gentoo.org/894598 Signed-off-by: Sam James <sam@gentoo.org> sys-libs/zlib/Manifest | 2 + sys-libs/zlib/zlib-1.3.ebuild | 185 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 187 insertions(+)