From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9574 Path: news.gmane.org!not-for-mail From: Masanori Ogino Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] Add `intl` to EMPTY_LIB_NAMES. Date: Fri, 11 Mar 2016 16:13:31 +0900 Message-ID: References: <1457416251-26134-1-git-send-email-masanori.ogino@gmail.com> <20160311045850.GV9349@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1457680432 9704 80.91.229.3 (11 Mar 2016 07:13:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Mar 2016 07:13:52 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-9587-gllmg-musl=m.gmane.org@lists.openwall.com Fri Mar 11 08:13:46 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1aeHGb-00014o-SU for gllmg-musl@m.gmane.org; Fri, 11 Mar 2016 08:13:45 +0100 Original-Received: (qmail 3268 invoked by uid 550); 11 Mar 2016 07:13:43 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 3247 invoked from network); 11 Mar 2016 07:13:42 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to; bh=6DewaWP/mL/lvVfDfw+NJsd+kRU5+rL0s8GBjbs2mQ8=; b=0QMbO5VxF9pgO0nMV9YUZF3sNrvTl5f8QNUQb4la5Rn1+cYVsP7CWJDdSFQlzhV9zz R0Ph2V7uRaLPEr4gNfsSBGkCGfo10jmkKXGJIxyANtkWac/t6kO1kWHCmPu5dbeG8MYC AaNTg0ZCNDOF7L90ZdZxWLqNHQzV7KWqW5wqFv1R3iJE/5hZp4uMkpRJBXtcwrlU3+WS V/PslqOqfuDuKyhNYggvTUI3R0PrveEFMzzBnQ7lK2OGQS33KyOav8L7v37fKtCrRmpw dJJITZ1yq1MvQuGKg0zNRiJ/QRZxFoisIGQkVveptPRjm1QUPNfmvr1UiekV3Ce0d7kt WIDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to; bh=6DewaWP/mL/lvVfDfw+NJsd+kRU5+rL0s8GBjbs2mQ8=; b=k7W3D4vok4FxcNTXNB/jBUg22+LY0ODDwEIDPxsEuDFuLOOp92NnmITLYOawsGViIz 0dsq9RKAOr8tzRa+Obj4DjJThLJNlvCtqeNuApHTqCdVTlYz+/gQvOpvqAxMgIafC44w STFTBbGtT2gOEvr0zeOgTWqr1QZ+shiZBQUV/9tsatLQZD1oSngObzmbQfnrj1FFKcnn Y8sQFSt+ZjP3I6ndAaOaFRG0eUhyh/p8FYRi5aTiUZR4TMQnVlHplXfoFrT0Eg+GdIpy ST3TQmISKcM47TDx/hjeeNiPEu1cxzm/Aq/N+OY7A+wR/Iw6GKX6SUvR1UocQfnic8Et 1ZCw== X-Gm-Message-State: AD7BkJJGoofdpH/m/niEKq+Pf3wFbjaXRryMYbPDTllpdMpcjrIO1xX/hnQeqOAIMOd7/nEHHoVLG5qRWgz5eg== X-Received: by 10.107.18.21 with SMTP id a21mr9509268ioj.116.1457680411116; Thu, 10 Mar 2016 23:13:31 -0800 (PST) Original-Sender: masanoriogino@gmail.com In-Reply-To: <20160311045850.GV9349@brightrain.aerifal.cx> X-Google-Sender-Auth: HDR8em2CxhutCHclDSU9LRCLMOw Xref: news.gmane.org gmane.linux.lib.musl.general:9574 Archived-At: 2016-03-11 13:58 GMT+09:00 Rich Felker : > On Tue, Mar 08, 2016 at 02:50:51PM +0900, OGINO Masanori wrote: >> It makes programs that depend on libintl work with musl. >> >> Signed-off-by: OGINO Masanori >> --- >> Makefile | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/Makefile b/Makefile >> index ec54880..394b32f 100644 >> --- a/Makefile >> +++ b/Makefile >> @@ -60,7 +60,7 @@ GENERIC_INCLUDES = $(wildcard $(srcdir)/arch/generic/bits/*.h) >> INCLUDES = $(wildcard $(srcdir)/include/*.h $(srcdir)/include/*/*.h) >> ALL_INCLUDES = $(sort $(INCLUDES:$(srcdir)/%=%) $(GENH:obj/%=%) $(ARCH_INCLUDES:$(srcdir)/arch/$(ARCH)/%=include/%) $(GENERIC_INCLUDES:$(srcdir)/arch/generic/%=include/%)) >> >> -EMPTY_LIB_NAMES = m rt pthread crypt util xnet resolv dl >> +EMPTY_LIB_NAMES = m rt pthread crypt util xnet resolv dl intl >> EMPTY_LIBS = $(EMPTY_LIB_NAMES:%=lib/lib%.a) >> CRT_LIBS = $(addprefix lib/,$(notdir $(CRT_OBJS))) >> STATIC_LIBS = lib/libc.a > > Sorry for not responding to this sooner. No problem. Thank you for the reply. > I think we need more information to know if this is a good idea. The other libs in > EMPTY_LIBS are standard names specified by POSIX, whereas libintl is a > GNU thing, and I think some distros are using GNU libintl alongside > musl (mainly for legacy reasons). Adding this might break things for > them. OK, I understood. I use Gentoo Linux (its musl userland uses musl's libintl) and found that a package failed to link to libintl with musl, so I sent the patch. The failure was actually a bug of the distro, though. > From what I remember, the core problem here is that the autoconf > tests for gettext wrongly detect that musl does not have a suitable > gettext (because they probe for glibc-internal symbols) and these > packages are trying to use an external GNU libintl instead. Perhaps > someone who's followed the issue closely could link to the old threads > on it, or bugtracker items? > > Rich Now I got them thanks to Google: http://www.openwall.com/lists/musl/2015/04/16/1 http://www.openwall.com/lists/musl/2015/04/16/2 http://www.openwall.com/lists/musl/2015/04/16/3 http://www.openwall.com/lists/musl/2015/04/16/4 http://savannah.gnu.org/bugs/?46436 http://lists.gnu.org/archive/html/bug-gettext/2015-11/msg00015.html >From the last link: > According to the post linked from the above, the check seems to be there > to exclude incompatible implementations of gettext(), like Solaris 7 and > NetBSD: > https://lists.gnu.org/archive/html/bug-gnu-utils/2006-03/msg00011.html > > If musl's gettext implementation is compatible with GNU gettext, I guess > we could adjust the check to accept it. However, I have no idea which > symbols or macros can be used for the check. It would be helpful if > musl people could chime in and give us a hint. -- Masanori Ogino