Re: [PATCH] perf build: Fix a compiler error in util/libbfd.c

From: Namhyung Kim

Date: Fri Jul 17 2026 - 13:47:02 EST


On Wed, 15 Jul 2026 17:43:36 -0700, Namhyung Kim wrote:
> The bfd_boolean type was gone and converted to the standard bool type
> but we have some old code that uses the type. It caused a failure in
> the build test.
>
> util/libbfd.c: In function 'slurp_symtab':
> util/libbfd.c:94:9: error: unknown type name 'bfd_boolean'
> 94 | bfd_boolean dynamic = FALSE;
> | ^~~~~~~~~~~
> util/libbfd.c:94:31: error: 'FALSE' undeclared (first use in this function)
> 94 | bfd_boolean dynamic = FALSE;
> | ^~~~~
> util/libbfd.c:94:31: note: each undeclared identifier is reported only once for each function it appears in
> util/libbfd.c:102:27: error: 'TRUE' undeclared (first use in this function)
> 102 | dynamic = TRUE;
> | ^~~~
>
> [...]
Applied to perf-tools-next, thanks!

Best regards,
Namhyung