libdw.a contains an undefined reference to "error"
I stumbled on this compiling makedumpfile, which uses elfutils and defaults to building static:
/usr/lib/gcc/aarch64-alpine-linux-musl/11.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: \
/usr/lib/gcc/aarch64-alpine-linux-musl/11.2.1/../../../../lib/libdw.a(libdw_alloc.o): \
in function `__libdw_oom': libdw_alloc.c:(.text+0x27c): undefined reference to `error'
For my usecase I'm happy just building it dynamically, but a quick look suggests that they have an error function in their lib/error.c but it's not used because musl provides err.h although it doesn't provide error.h and error()
itself.
We can probably just adjust the configure check to check for error()
instead of the headers. I'm actually not sure why it works in the dynamic version...
Anyway, I'll leave this out for whoever cares -- I might have a stab at some point™ but that will be after playing with kexec-tools/makedumpfile and writing some simple kdump handler and that already is rock bottom priority so no promise!