mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: "W. Michael Petullo" <mike@flyn.org>
Cc: musl@lists.openwall.com
Subject: Re: strerror_r and _GNU_SOURCE
Date: Sat, 4 Aug 2018 21:04:55 -0400	[thread overview]
Message-ID: <20180805010455.GQ1392@brightrain.aerifal.cx> (raw)
In-Reply-To: <20180805005408.GA17226@imp.flyn.org>

On Sat, Aug 04, 2018 at 08:54:08PM -0400, W. Michael Petullo wrote:
> 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?

No, musl explicitly does not suppore the GNU interfaces that conflict
with standard interfaces by the same name.

Rich


      reply	other threads:[~2018-08-05  1:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-05  0:54 W. Michael Petullo
2018-08-05  1:04 ` Rich Felker [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180805010455.GQ1392@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=mike@flyn.org \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).