From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8622 Path: news.gmane.org!not-for-mail From: Denys Vlasenko Newsgroups: gmane.linux.lib.musl.general Subject: Re: musl and kernel headers [was Re: system-images 1.4.2: od is broken; bzip2 is missing] Date: Tue, 6 Oct 2015 18:05:52 +0200 Message-ID: References: <5612925A.4070402@landley.net> <20151006014426.GL8645@brightrain.aerifal.cx> <561330C1.8070205@landley.net> <20151006143018.GN8645@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1444147598 5293 80.91.229.3 (6 Oct 2015 16:06:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Oct 2015 16:06:38 +0000 (UTC) Cc: Rob Landley , Aboriginal Linux , musl To: Rich Felker Original-X-From: musl-return-8634-gllmg-musl=m.gmane.org@lists.openwall.com Tue Oct 06 18:06:37 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1ZjUl5-0000KM-5N for gllmg-musl@m.gmane.org; Tue, 06 Oct 2015 18:06:31 +0200 Original-Received: (qmail 24532 invoked by uid 550); 6 Oct 2015 16:06:28 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 24459 invoked from network); 6 Oct 2015 16:06:23 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=jrKwOdq9Ude7cAHNACIKsS+G7nkxyaH8T2F4MoVFfhA=; b=Udr+/3OQ+8YB5/KvrL+UptjwJfyRXv30HbVllXc5u4Mr+hrrD0uP7FIktoEbKBpdY4 Y8WciD/9EGyjUwmWOlVQEVkLof+zQSXVfXNF4Q/S9ECoUfZ35yDHDzdj60NYntmxJj+G iuFnALyE80FWA7SWURlMpKx47QAwtybZPLT1yZdqEFevohIWd0v/UwfkqJEhybd6w0ro RGoQxtI04yt5CWGbF1yfXfU0ahOM35eu84VKPpe7PKCNh62vTK2+wxiXVDi9OtBgLJ+Y US27/eFgqaw1nubEZPrdc63nKOBdPck+ccfQfkNRK+EQJm1olhRgWOvugiYUyEdmC20H Ot9w== X-Received: by 10.140.235.147 with SMTP id g141mr47857027qhc.22.1444147571571; Tue, 06 Oct 2015 09:06:11 -0700 (PDT) In-Reply-To: <20151006143018.GN8645@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:8622 Archived-At: On Tue, Oct 6, 2015 at 4:30 PM, Rich Felker wrote: > On Mon, Oct 05, 2015 at 09:24:01PM -0500, Rob Landley wrote: >> On 10/05/2015 08:44 PM, Rich Felker wrote: >> > The cleaner approach is just avoiding including both the kernel >> > headers and libc/userspace headers for the same things in the same >> > file. In theory this may be hard in some cases, but I find that I can >> > almost always fix these sorts of errors during a build by commenting >> > out one or two #include lines. >> >> I am _deeply_ curious how you'd get linux/loop.h on a platform where you >> need the 32 bit loopback structure definition without including the >> kernel header. > > Sorry I wasn't clear on this; the meaning I intended to convey was > including both kernel and libc/userspace headers for the same things. > Network is the main area affected here. The kernel headers have fixed > up all the gratuitous conflicts with userspace, but the big remaining > ones are places where they want to define types with the exact same > names, which mostly happens in network. So what I was trying to say is > that programs using kernel network headers (legitimately for > linux-specific stuff) are going to best avoid the risk of clashes by > not including libc network headers in the same files. For me as a libc user, the gist of the story is: I switch to musl, things break. Apart from linux/* includes, utmp/wtmp also broke.