[Bug general/21002] Incompatible with MUSL libc
luizluca at gmail dot com
Sat Mar 10 02:23:00 GMT 2018
--- Comment #7 from Luiz Angelo Daros de Luca <luizluca at gmail dot com> ---
I'm back with news.
I manage to compile all elfutils for OpenWrt, not just libs.
As expected, obstack and fts were missing. I managed to build using:
I created patches for elfutils allowing it to look for a libfts.so or
libobstack.so. It builds but I feel I got too much/too little usage of both in
At least for obstack, I need to merge some Makefile.am changes that got into
I'll update soon.
As expected, the error_message_count used in some programs did break the build.
They are very few cases, most of them looks like could be replaced even with a
local variable. Maybe it would be better to simply get rid of it.
Some missing macros: ACCESSPERMS, ALLPERMS, DEFFILEMODE.
qsort_r() is not provided in MUSL
Some elfutils programs (arlib, elfcmp, elfcompress, findtextrel, unstrip, ) do
not include system.h. So, all ifdefs that solves some musl incompatibility
where not present. I simply added them.
fnmatch() does not support FNM_EXTMATCH in musl (just 3 uses).
src/unstrip.c:void warn (const char *msg) might be using a too generic name. It
collides with err.h warn. I simply renamed it.
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Elfutils-devel