attached build.log and emerge --info, but the error is this: libtool: compile: x86_64-gentoo-linux-musl-clang -DLOCALEDIR=\"/usr/share/locale\" -DBISON_LOCALEDIR=\"\" -DLOCALE_ALIAS_PATH=\"/usr/share/locale\" -DUSEJAVA=0 -DGETTEXTJAR=\"/usr/share/gettext/gettext.jar\" -DLIBDIR=\"/usr/lib\" -DGETTEXTDATADIR=\"/usr/share/gettext\" -DPROJECTSDIR=\"/usr/share/gettext/projects\" -DEXEEXT=\"\" -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-devel/gettext-0.22.4/work/gettext-0.22.4/gettext-tools/src -I.. -I. -I/var/tmp/portage/sys-devel/gettext-0.22.4/work/gettext-0.22.4/gettext-tools/src -I.. -I/var/tmp/portage/sys-devel/gettext-0.22.4/work/gettext-0.22.4/gettext-tools -I/var/tmp/portage/sys-devel/gettext-0.22.4/work/gettext-0.22.4/gettext-tools/libgrep -I../gnulib-lib -I/var/tmp/portage/sys-devel/gettext-0.22.4/work/gettext-0.22.4/gettext-tools/gnulib-lib -I../../gettext-runtime/intl -I/var/tmp/portage/sys-devel/gettext-0.22.4/work/gettext-0.22.4/gettext-tools/../gettext-runtime/intl -I///usr/include/libxml2 -flto=thin -O3 -pipe -D_LARGEFILE64_SOURCE -c /var/tmp/portage/sys-devel/gettext-0.22.4/work/gettext-0.22.4/gettext-tools/src/po-error.c -fPIC -DPIC -o .libs/libgettextsrc_la-po-error.o /var/tmp/portage/sys-devel/gettext-0.22.4/work/gettext-0.22.4/gettext-tools/src/po-error.c:39:5: error: use of undeclared identifier 'error_at_line' 39 | = error_at_line; | ^ 1 error generated. make[5]: *** [Makefile:4456: libgettextsrc_la-po-error.lo] Error 1
gettext's build.log: https://gist.github.com/formula-spectre/7b0b4420f51c0265abec5a2a1b0c4167
Created attachment 875257 [details] emerge --info
This feels like a strange error. The undeclared identifier is declared in glibc's own error.h, but on musl systems, gettext will detect that error.h and error_at_line don't exist, and define its own. In your logs, I see this: checking whether error_at_line is declared... yes Where is this coming from?
>This feels like a strange error. The undeclared identifier is declared in glibc's own >error.h, but on musl systems, gettext will detect that error.h and error_at_line don't >exist, and define its own. >In your logs, I see this: >checking whether error_at_line is declared... yes >Where is this coming from? it comes from this file: https://termbin.com/nzoi what I did is I stole the ebuild from here: https://github.com/12101111/overlay/tree/master/sys-libs/musl-legacy-compat and added error.h, to mantain the compability. maybe it's this crutch that is causing the issue?
UPDATE: using musl-legacy-compat form https://github.com/12101111/overlay/tree/master/sys-libs/musl-legacy-compat makes gettext compile fine.. even though error.h is missing? before I close I would like an explanation. /x/ explain pls
You have junk on your system you need to diagnose. I don't know why you have random headers but they're going to confuse configure tests.