From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7F2283858C66; Mon, 25 Sep 2023 02:50:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7F2283858C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1695610235; bh=qBBfUrUiaTgncW0yxxqGRVgr6i5YEWIawyoPAVq2xRE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=WCfRp/JXofJ3BQdGks3khvBG1ZwuIDJN1JDBxY1rx7HlbfHUbFz1XJrQjnOBy1SSY Z+LZpoacdP4BMHkUm7qB0fVpLdPsxah16MPs87Yrvas/PTxj1vb2y3q2SD1H7VuSm6 xKifXib/7tChf0VJ7l7+DU96t+3qq0v1lVqWMXlc= From: "lienze at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug build/30878] Alpine Linux: libinproctrace: undefined reference to libintl_gettext Date: Mon, 25 Sep 2023 02:50:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: build X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: lienze at sourceware dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30878 Enze Li changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lienze at sourceware dot o= rg --- Comment #1 from Enze Li --- (In reply to Jan Kratochvil from comment #0) > e7bb5090cb094ab9d9d13c1852a7cd7e65128b66 =3D 2023-09-19 >=20 > $ cat /etc/alpine-release=20 > 3.17.5 > $ ./configure;make > ... > make[2]: Entering directory '/home/azul/azul/gdb-clean/gdbserver' > CXXLD libinproctrace.so > /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-li= nux- > musl/bin/ld: ax-ipa.o: in function `ax_printf(unsigned long, unsigned lon= g, > char const*, int, unsigned long*)': > ax.cc:(.text+0x291): undefined reference to `libintl_gettext' > /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-li= nux- > musl/bin/ld: ax.cc:(.text+0x5a6): undefined reference to `libintl_gettext' > /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-li= nux- > musl/bin/ld: ax-ipa.o: in function > `gdb_eval_agent_expr(eval_agent_expr_context*, agent_expr*, unsigned long= *)': > ax.cc:(.text+0x1a8b): undefined reference to `libintl_gettext' > /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-li= nux- > musl/bin/ld: gdbsupport/common-utils-ipa.o: in function `xstrvprintf(char > const*, __va_list_tag*)': > common-utils.cc:(.text+0x157): undefined reference to `libintl_gettext' > /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-li= nux- > musl/bin/ld: gdbsupport/common-utils-ipa.o: in function `xsnprintf(char*, > unsigned long, char const*, ...)': > common-utils.cc:(.text+0x282): undefined reference to `libintl_gettext' > /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-li= nux- > musl/bin/ld: gdbsupport/common-utils-ipa.o:common-utils.cc:(.text+0xe81): > more undefined references to `libintl_gettext' follow > collect2: error: ld returned 1 exit status >=20 > --disable-inprocess-agent will workaround it It seems to me that the Native Language Support is not present by default on Alpine Linux. Without NLS support, you may get error messages like that wh= en building. BTW, I use --disable-nls to workaround it. --=20 You are receiving this mail because: You are on the CC list for the bug.=