From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10996 Path: news.gmane.org!.POSTED!not-for-mail From: William Pitcock Newsgroups: gmane.linux.lib.musl.general,gmane.linux.distributions.alpine.devel Subject: Re: [alpine-devel] Non-standard C library Date: Tue, 31 Jan 2017 12:50:25 -0600 Message-ID: References: <20170126112655.44ad5c0e@vostro.util.wtbts.net> <4EDA0683-3991-44D0-882C-C34FBD4C38B2@jirutka.cz> <5blaf1.okfi73.2tnq26-qmf@gmx.com> <5890704A.8090402@mail.com> <717ca2a3-d579-4ab6-ace2-1bc0dbbb111c@skogtun.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1485888642 29651 195.159.176.226 (31 Jan 2017 18:50:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2017 18:50:42 +0000 (UTC) Cc: alpine-dev , musl@lists.openwall.com To: Harald Arnesen Original-X-From: musl-return-11011-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jan 31 19:50:38 2017 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 1cYdVk-0007Sp-Gb for gllmg-musl@m.gmane.org; Tue, 31 Jan 2017 19:50:36 +0100 Original-Received: (qmail 32332 invoked by uid 550); 31 Jan 2017 18:50:39 -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 32299 invoked from network); 31 Jan 2017 18:50:37 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dereferenced-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=uKmm0q9eDL4muhy8XFi0t/hz0TN+9VCmUs418LOS+GQ=; b=0lnjUIO1Qi84yzGwSANqsqGE+Q3u+/gWCNl3IbuhOah8Eq01PoUs7YPGNFC6kFuHeY Pnr7gqLvVavOhkNjl4rNflQLfK9FO5OrPr7k7GXIDa1fdhY0Vcp13KM2/Aa934mrYXmk iTPkpcXs9cgAdKwchmQyEM4++/YedFV0vG0DXDARZm4mAfB+OmmdPlU6YQcQjzFa71Sd rAcq6zY2rOLJlf7SYnu3B1/yYhB70o2E6jpuyWPOzPJd2+v9ifeHOjO1zrYPOLA9llKe yonE8A5ZnZM9q8dlZtaKh+sLcRIRGpB0LQXT8Z4ltl7yWUe899VnyNOZ4FY6MuUES3H9 /NaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=uKmm0q9eDL4muhy8XFi0t/hz0TN+9VCmUs418LOS+GQ=; b=UdeJUsXsX7n5f/ur/vaEZS7VLpST+lbIBKuwImAtFxG1ZjgMmynDGCyOe8ThdWtwcS uFdUvRM1THX7sBf4bcqGR2rHoBQWMtDKgsOrMYz9acfco0qwmSIp4TCngl4PsUN7G+0o jMyiOM2iiT/a91gX3Nz/QydxDBueZ4PYWUYAy1vQbKMjXGMa1XfcXkJDLZwgBWn6Volf QevZUv9atGTGRhqG9GQ6tgtQ4/veKuZGIh7Bf+0GwWJGQmMuoRvpBdeCDX/wH26fK9MC OyYzb7ACnfHSUYAg9f0RajbHtzXTkO+nu8sdPlcyXuHbDw3NeuCeLH/L9elFi8hM51ud GdYw== X-Gm-Message-State: AIkVDXJzdgFjZVdBmwMijG9K+XEO13YqcEJ85rEwuu1kKcFrgBAvG4PQ0TNRYB0/va33IsMXrYW8ZnLANsrDvQ== X-Received: by 10.200.41.153 with SMTP id 25mr25679854qts.108.1485888626165; Tue, 31 Jan 2017 10:50:26 -0800 (PST) In-Reply-To: <717ca2a3-d579-4ab6-ace2-1bc0dbbb111c@skogtun.org> Xref: news.gmane.org gmane.linux.lib.musl.general:10996 gmane.linux.distributions.alpine.devel:3741 Archived-At: Hello, On Tue, Jan 31, 2017 at 12:22 PM, Harald Arnesen wrote: > musl defines "IPPORT_RESERVED" in "netdb.h", while both GNU libc and BSD > libc define it in "netinet/in.h". And I can't find an e-mail address for > a musl developer without subscribing to their mailing list. > > > This is from a conversation with Snobol maintainer Phil Budne: > >> > This one is from an old Asus EeePC 900, running AlpineLinux, which uses >> > the musl libc instead of glibc. A compile error ('IPPORT_RESERVED' >> > undeclared) in 'lib/auxil/bindresvport.c' was fixed by >> > '#include ' > > Thanks! > > I'd report it as a bug in libc.... IPPORT_RESERVED is a property of > on the wire protocol (or at least the local TCP stack), while > is the interface for hostname lookups. > > Linux and BSD agree the constant comes from netinet/in.h > > And charmingly, they refuse to define an ifdef so you can tell > you're using their broken library (because they're never wrong): > > http://wiki.musl-libc.org/wiki/FAQ#Q:_why_is_there_no_MUSL_macro_.3F > > I've put this in after #include : > > #if !defined(IPPORT_RESERVED) && !defined(__GLIBC__) > /* > * could be using broken musl libc! > * they refuse to identify themselves: > * http://wiki.musl-libc.org/wiki/FAQ#Q:_why_is_there_no_MUSL_macro_.3F > */ > #include > #endif I checked on both a Debian and FreeBSD machine and indeed, they both have it in netinet/in.h. What shall we do? William