Created attachment 13907 [details] 0001-Include-libgen.h-in-tools-abisym.cc-for-basename-3.patch Ran in to this building and using libabigail on Alpine Linux, which is a musl-based distribution. I included libgen.h to pick up the basename(3) definition. Musl provides the POSIX basename(3) and not the GNU variant, but the usage in abisym.cc seems to be within the scope of the POSIX basename(3).
Hello David, dcantrell at redhat dot com via Libabigail <libabigail@sourceware.org> a écrit: [...] > Created attachment 13907 [details] > --> https://sourceware.org/bugzilla/attachment.cgi?id=13907&action=edit > 0001-Include-libgen.h-in-tools-abisym.cc-for-basename-3.patch commit a37ee8f7da8d0b83ae4004269f71ea5b3c233e33 Author: David Cantrell <dcantrell@redhat.com> Date: Fri Jan 14 12:04:01 2022 -0500 Include <libgen.h> in tools/abisym.cc for basename(3) Support building on non-glibc systems, such as musl, by including libgen.h for basename(3). Signed-off-by: David Cantrell <dcantrell@redhat.com> Applied to master. Thanks! [...] Cheers,
patch applied to master.