X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mail-qt0-f193.google.com (mail-qt0-f193.google.com [209.85.216.193]) by lists.alpinelinux.org (Postfix) with ESMTP id ABAD05C4220 for ; Tue, 31 Jan 2017 18:50:26 +0000 (GMT) Received: by mail-qt0-f193.google.com with SMTP id h53so24697051qth.3 for ; Tue, 31 Jan 2017 10:50:26 -0800 (PST) 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=rAaDtl0gCMDTft1PX2QAMe+pMW0UGwYd7ePhnyqp7fT7ZFAYFFttEktwsX+4zoZZkn andRsEWXZ0ddX23oMhl2+WQo6KOmQe6/NXZ96riLQq5lnaSH+/dkJMtP88M+mpvaPkFL ZKO0dGkj+94o9aLnrh+g+EFcK1RKqY1zrgs8F3kDDC4BGuqYJ4a3Tcdc6tmofp88ebJ1 Sb/Q8Txf4/hGHomwduugb+vPD+azg2EsvJHm//yY9lH2q0PitYVwpjXVXKnUdDySeeQ7 1afrVCwJ2HNDBxrf3mraOpi1UByjzcDQJlaxT+46Vq85cr9o7lD/JRjOgoDcCPQFLGCN gjzg== X-Gm-Message-State: AIkVDXKKTxJEAv91QwmfCfuWSov+2pnC3G+etLA66bHcm10mFMmNvviqGi+0N7p7TN/TEiC3MOEiyRkOkWO2ag== X-Received: by 10.200.41.153 with SMTP id 25mr25679854qts.108.1485888626165; Tue, 31 Jan 2017 10:50:26 -0800 (PST) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Received: by 10.200.33.176 with HTTP; Tue, 31 Jan 2017 10:50:25 -0800 (PST) In-Reply-To: <717ca2a3-d579-4ab6-ace2-1bc0dbbb111c@skogtun.org> 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> From: William Pitcock Date: Tue, 31 Jan 2017 12:50:25 -0600 Message-ID: Subject: Re: [alpine-devel] Non-standard C library To: Harald Arnesen Cc: alpine-dev , musl@lists.openwall.com Content-Type: text/plain; charset=UTF-8 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 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---