From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/13105 Path: news.gmane.org!.POSTED!not-for-mail From: "W. Michael Petullo" Newsgroups: gmane.linux.lib.musl.general Subject: strerror_r and _GNU_SOURCE Date: Sat, 4 Aug 2018 20:54:08 -0400 Message-ID: <20180805005408.GA17226@imp.flyn.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1533430340 9822 195.159.176.226 (5 Aug 2018 00:52:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 5 Aug 2018 00:52:20 +0000 (UTC) User-Agent: Mutt/1.10.1 (2018-07-13) To: musl@lists.openwall.com Original-X-From: musl-return-13121-gllmg-musl=m.gmane.org@lists.openwall.com Sun Aug 05 02:52:16 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1fm7HL-0002Tm-44 for gllmg-musl@m.gmane.org; Sun, 05 Aug 2018 02:52:15 +0200 Original-Received: (qmail 11845 invoked by uid 550); 5 Aug 2018 00:54:21 -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 11787 invoked from network); 5 Aug 2018 00:54:21 -0000 X-No-IP: flyn.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Content-Disposition: inline Xref: news.gmane.org gmane.linux.lib.musl.general:13105 Archived-At: When _GNU_SOURCE is defined, strerror_r should return a char *. Musl 1.1.19 declares strerror_r as: int strerror_r (int, char *, size_t) I have found that _GNU_SOURCE is defined when I build snort on OpenWrt (OpenWrt uses musl). This causes the build to fail because snort expects strerror_r to return a char * since _GNU_SOURCE is defined. Is this a bug in musl? -- Mike :wq