X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mail-lf0-f67.google.com (mail-lf0-f67.google.com [209.85.215.67]) by lists.alpinelinux.org (Postfix) with ESMTP id 5F1EE5C49C5 for ; Tue, 31 Jan 2017 18:22:06 +0000 (GMT) Received: by mail-lf0-f67.google.com with SMTP id h65so34483448lfi.3 for ; Tue, 31 Jan 2017 10:22:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=qI/ONdEmpfDtm3Nhm60ITAGLrbURRxhqTRI5V7LHNk0=; b=sbrEzRRIZnpn7rQUYdXiTPN0gDIdvkrdLAVfBkt5iLYfqh4oSdzIseW/cvWE+JQqJF k+ErAjEa0Ex8WOsStynllbplSoKtoBCHVE80Gc3VvGe7OW6i67yMyoDdFHjpf1qFrCNF Ks37aghaC1E48SxZtv+qB7ZRlf91K/41iT/UR3HPKx/g1BxpX41LetBRr6hJ+qmiCpOc LxMD2VpkNS3gteOxaeA870VT99ncRAFw6wANeK8RJ4Fm1AHBBIobFy2aYifjYTWQV763 149A5XXCa0Q6pQdtZ2tiYUQPCfxh2PGIFTIXiBap3HJ/nc9TunqvbGF+Qasc46U+Onf8 oLOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=qI/ONdEmpfDtm3Nhm60ITAGLrbURRxhqTRI5V7LHNk0=; b=AFkD2tLtH1g2csxWKzInMDUtRi3Qa8sM1yDcCi49yFKXB9k4uK9tYknn4MOygYcmdV qQDIF9zwDLL+VxftYMCLu1XJVxwb0lfHWpFMKdsOHCOMWuDGlUz4JeNSqje7gtffV1rJ NJoRzSIw+FMeEb2D1Ojyp2Z7s4VhIC0evX8QfVqK6XSBIHVrBRQeRCY0QqYNh0VjVfsj eVJshqf0TuBkKRzfyA/VgheB3nfWrBPPU0T1eURoxHqf6jPWrHU+g+yTaz7lLIb1N9c3 toR2PAJcjIBZjEgDWrFu/kouKcrRNph3NYpFThim/yS/vwlrSjQu9oaKdjT6kGZRSvNx TkIg== X-Gm-Message-State: AIkVDXIB3xlXXPr+WyA0umInZDLUcL3qE2sCpbBMpUdYkctmxav5gr0V7kjEgSDO/RQ/8Q== X-Received: by 10.46.14.26 with SMTP id 26mr10112607ljo.59.1485886925092; Tue, 31 Jan 2017 10:22:05 -0800 (PST) Received: from ?IPv6:2001:4643:10eb:0:4637:e6ff:fe8c:42e6? ([2001:4643:10eb:0:4637:e6ff:fe8c:42e6]) by smtp.googlemail.com with ESMTPSA id 66sm4811640lfy.42.2017.01.31.10.22.03 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jan 2017 10:22:03 -0800 (PST) Sender: Harald Arnesen Subject: [alpine-devel] Non-standard C library To: alpine-devel@lists.alpinelinux.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> From: Harald Arnesen Message-ID: <717ca2a3-d579-4ab6-ace2-1bc0dbbb111c@skogtun.org> Date: Tue, 31 Jan 2017 19:22:37 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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 -- Hilsen Harald --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---