Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 917642 - sys-devel/gettext-0.22.4 fails to compile: po-error.c:39:5: error: use of undeclared identifier 'error_at_line'
Summary: sys-devel/gettext-0.22.4 fails to compile: po-error.c:39:5: error: use of und...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-20 19:31 UTC by topological-automata
Modified: 2023-11-26 00:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info,19.74 KB, text/plain)
2023-11-20 19:35 UTC, topological-automata
Details

Note You need to log in before you can comment on or make changes to this bug.
Description topological-automata 2023-11-20 19:31:56 UTC
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
Comment 1 topological-automata 2023-11-20 19:35:12 UTC
gettext's build.log:
https://gist.github.com/formula-spectre/7b0b4420f51c0265abec5a2a1b0c4167
Comment 2 topological-automata 2023-11-20 19:35:25 UTC
Created attachment 875257 [details]
emerge --info
Comment 3 Eli Schwartz 2023-11-21 01:43:23 UTC
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?
Comment 4 topological-automata 2023-11-23 19:24:34 UTC
>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?
Comment 5 topological-automata 2023-11-24 05:08:12 UTC
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
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-26 00:24:57 UTC
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.