After elfutils was updated to 0.190, iproute2 fails to build with this error: In file included from bpf_legacy.c:24: /usr/include/gelf.h:86:9: error: unknown type name 'Elf64_Relr' 86 | typedef Elf64_Relr GElf_Relr; | ^~~~~~~~~~ This appears to introduced with https://sourceware.org/git/?p=elfutils.git;a=commit;h=39f2c500542f69c2f1a13fd0ae4eaa5778d2ed8d which assumes that Elf64_Relr is typedef'ed if SHT_RELR is defined. This is not (yet) the case in musl libc.
Patch sent to musl: https://www.openwall.com/lists/musl/2023/11/06/3
This was fixed in musl with: commit 6be76895f6863100a311d474a42abdbb6466189d Author: Violet Purcell <vimproved@inventati.org> Date: Sat Nov 4 12:09:20 2023 -0400 elf.h: add typedefs for Elf64_Relr and Elf32_Relr These were overlooked when DT_RELR was added in commit d32dadd60efb9d3b255351a3b532f8e4c3dd0db1, potentially breaking software that treats presence of the DT_RELR macro as implying they exist.