https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: sys-apps/sed-4.9 has implicit function declarations in configure logs (CLANG-17-SYSTEM). Discovered on: amd64 (internal ref: hardened_tinderbox) NOTE: (CLANG-17-SYSTEM) in the summary means that the bug was found on a machine that runs clang-17 but this bug MAY or MAY NOT BE related to the new compiler See also: https://bugs.gentoo.org/898488#c4.
Created attachment 856818 [details] build.log build log and emerge --info
The functions in question are alignof (_Alignof), MIN (macro), and free is attempting to be used without a prototype (!!!). The latter - the only actual issue - can be solved by adding #include <stdlib.h> to the file or by including the prototype, but that isn't our job.
It's also relatively clear that if a system has malloc(), *very rarely* will it not have free().
All the instances of `free` are caused by autoconf builtin logic, and is fixed by adding `eautoreconf` to src_prepare. The other solution is waiting for upstream to release a new dist tarball.