From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B23673858C2D; Sun, 26 Nov 2023 09:42:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B23673858C2D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1700991732; bh=yyvtGaG9taXjDCQw0p6PRTrRYvYawhg9I2i1MMTIrEo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=nbGcJJuB9+/EmqeExMX25x8XcWptshkjlj6JgMOtk7fp/h09fJP+ZRpA9zeBprbuQ IhvKE8dYBVkdIaIBL7gJmI66eNi3eC2uRJmDALb7LD5QFmJ3bNbmv1biSQNZJjdlmj lljXfDKLjVLOq3mvdghTfMvn4pcFDAZ2XfkQIoyE= From: "larserik at netix dot se" To: gdb-prs@sourceware.org Subject: [Bug build/30878] Alpine Linux: libinproctrace: undefined reference to libintl_gettext Date: Sun, 26 Nov 2023 09:42:10 +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: larserik at netix dot se 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 Lars-Erik Wessman changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |larserik at netix dot se --- Comment #3 from Lars-Erik Wessman --- I also had this problem and tried to add intl lib LDFLAGS LDFLAGS=3D"-lintl" ./configure But that did not work because in gdbserver/Makefile.in target $(IPA_LIB) the $(INTERNAL_LDFLAGS) is before the "-o" g++ docs tells that libraries "must be listed after the object or source fi= les that contain calls to their functions" https://www.cs.bu.edu/fac/gkollios/cs113/Usingg++.html INTERNAL_LDFLAGS is defined as $(LDFLAGS) IPA_LIB is set to libinproctrace.so Suggested solution: Move $(INTERNAL_LDFLAGS) so it comes after "-o $(IPA_LIB)" in gdbserver/Makefile.in in target $(IPA_LIB) Source https://sourceware.org/git/?p=3Dbinutils-gdb.git;a=3Dblob_plain;f=3Dgdbserv= er/Makefile.in;hb=3DHEAD IPA_LIB =3D libinproctrace.so $(IPA_LIB): $(sort $(IPA_OBJS)) ${CDEPS} $(SILENCE) rm -f $(IPA_LIB) $(ECHO_CXXLD) $(CC_LD) -shared -fPIC -Wl,--soname=3D$(IPA_LIB) \ -Wl,--no-undefined $(INTERNAL_CFLAGS) $(INTERNAL_LDFLAGS) \ $(CXXFLAGS) \ -o $(IPA_LIB) ${IPA_OBJS} $(LIBIBERTY_FOR_SHLIB) -ldl -pthr= ead --=20 You are receiving this mail because: You are on the CC list for the bug.=