From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9815 Path: news.gmane.org!not-for-mail From: Masanori Ogino Newsgroups: gmane.linux.lib.musl.general Subject: AM_GNU_GETTEXT without referring internal symbols? Date: Fri, 1 Apr 2016 21:56:34 +0900 Message-ID: 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 1459515456 25704 80.91.229.3 (1 Apr 2016 12:57:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Apr 2016 12:57:36 +0000 (UTC) Cc: musl@lists.openwall.com To: bug-gnu-gettext@gnu.org Original-X-From: musl-return-9828-gllmg-musl=m.gmane.org@lists.openwall.com Fri Apr 01 14:57:28 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 1alydk-000467-1T for gllmg-musl@m.gmane.org; Fri, 01 Apr 2016 14:57:28 +0200 Original-Received: (qmail 28539 invoked by uid 550); 1 Apr 2016 12:57:25 -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 28361 invoked from network); 1 Apr 2016 12:56:46 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:cc; bh=rPocq2krkTHievkxuZH4BCbVyAqzQt8SI5j7O6iE+/Q=; b=zQZKXY1z1evTk383lRC7f9HPLIQ5duk0A5d+oXM5i7oL+PLOuiZwDoSgMO2XziZelM DCIm+vTSOgauR8hztMeSnz5t7k/J5JzKTI9YL/+trJqL1ZscV1QdCZAzl1xV8MOxrG3O z9apWIjk2956W6YKP3A+q6N0SD3GPYVfbO/X+mWwyLCkLlblSeUGled1FVaVTfuIkZS5 j0tLmXOycSMpz5ZkWI+omkZ39valuVCnEnojTMQilg4ifijQvl+YqCudnMYqentGIwZH KKFmBBld7TBsVBZodcYNxa7p1zvA5qiIk+4BjV4NhSnvPw093eLCnhp5vEHYKiD7xG3d dvxw== 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:date:message-id:subject:from :to:cc; bh=rPocq2krkTHievkxuZH4BCbVyAqzQt8SI5j7O6iE+/Q=; b=AZEW58l0Uxxy3G1Dgy2SPpzRCBy+bS4ANgxmXJLLY/UtuVl2ApHOzoIy9tpOWErU5u hLfEcFdiT2NKEMfNDrMNLxfU0/QBoncvJUpzmzfk2sGqYqQgno+NqJ0mg2DSFACrPPZ5 RWjThQmNb4c3IX8nHTGSp579E3mlSugVT+Do3KKJl8wRiRgP161Vfv8psxNbEVxo7H5Q 9t5zu4Quq27A7LgMSdiLEH+64xrZaQISvGcSX8Boc/Ic+/guORDBgWyG4ozW9UdZG0Tl F+aQEUTHiWimWwe8jWJLReOchyJ6Y0GqPFcrMLqNn5C4cufA9sTLV7R1M9yCZ6ewOKfB kX3g== X-Gm-Message-State: AD7BkJKaI5d42BYDXXZgacO/VRJfiBaS0G8GQM2Yz5v3PgeMcLBps6RML9KD/Q2q0IL6rEklGnrzzYpZr5h+Yw== X-Received: by 10.157.9.243 with SMTP id 48mr2724856otz.94.1459515394463; Fri, 01 Apr 2016 05:56:34 -0700 (PDT) Original-Sender: masanoriogino@gmail.com X-Google-Sender-Auth: Yt54keWaI929Oa43gsd1iQB-kBs Xref: news.gmane.org gmane.linux.lib.musl.general:9815 Archived-At: Hello, Now AM_GNU_GETTEXT uses _nl_msg_cat_cntr and _nl_expand_alias to check whether the implementation is compatible with GNU gettext. However, the symbols don't appear in libintl.h so it seems that they are not part of the public API. Actually, musl libc implements libintl features and the score of gettext-tools' testsuite is equal to that with the internal libintl, using a modified AM_GNU_GETTEXT. The musl's libintl.h even defines __USE_GNU_GETTEXT and __GNU_GETTEXT_SUPPORTED_REVISION, but it does not imitate private symbols. I had checked the archive and I've found some discussions: https://lists.gnu.org/archive/html/bug-gnu-utils/2006-03/msg00011.html http://lists.gnu.org/archive/html/bug-gettext/2015-11/msg00015.html So, if the goal of the macro is check if the implementation is compatible with GNU gettext, why don't we check the public API rather than using internal symbols? Is it possible to check if the implementation is not one of known "broken" implementations and/or it is really compatible? Regards, -- Masanori Ogino