Bug#1066437: libast: FTBFS: snprintf.c:45:22: error: unknown type name ‘size_t’
On Wed, 13 Mar 2024 13:03:27 +0100 Lucas Nussbaum <lucas@debian.org> wrote:
Source: libast
Version: 0.7-9.1
During a rebuild of all packages in sid, your package failed to build
on amd64.
> snprintf.c:45:22: error: unknown type name ‘size_t’
> 45 | vsnprintf(char *str, size_t count, const char *fmt, va_list args)
> | ^~~~~~
This was so far the worst case of -Werror=implicit-function-declaration
I encountered:
- a missing #include <stdlib.h> (for exit()) caused a configure test to fail
- that didn't cause the configure step to fail (or silently disable some
feature)
- but enabled a fallback codepath which had tons of errors triggering on
-Werror=implicit-function-declaration
;-)
Perhaps you could add to your wiki entry about this bug class that there
may be non-obvious problems during the configure step caused by
-Werror=implicit-function-declaration that might
- silently disable features (because detection failed)
- enable unwanted fallback codepaths for "missing" (becuase misdetected)
features
Andreas
Reply to: