From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8623 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:09:15 +0200 Message-ID: References: <5612925A.4070402@landley.net> <20151006014426.GL8645@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 1444147802 9031 80.91.229.3 (6 Oct 2015 16:10:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Oct 2015 16:10:02 +0000 (UTC) Cc: Rob Landley , Aboriginal Linux , musl To: Rich Felker Original-X-From: musl-return-8635-gllmg-musl=m.gmane.org@lists.openwall.com Tue Oct 06 18:10:02 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 1ZjUoL-0002kL-7u for gllmg-musl@m.gmane.org; Tue, 06 Oct 2015 18:09:53 +0200 Original-Received: (qmail 27916 invoked by uid 550); 6 Oct 2015 16:09:51 -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 27872 invoked from network); 6 Oct 2015 16:09:46 -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=6mKdcX69aizVzKvH2sNHydYZgEPvdoh/e4iDIeoZgik=; b=k02jDCACrfSw8F/ewQ6s8Hh5wLcLrvOYJTeHQ+xA5s6ArgavG720FG4rTYqz708pOu 8iK1k4oJQLiSLh7lfUEsSa2w9UTh5MRSHIPrqJCDz9Z6rEqZpQGYwnmB2HsKsA72K0ZJ b61RQhw7r3Cb0AVw4gK1ReXOWYnxt5kOZ85Z1Onqk9IOy7PDWmBV8MTH7wE74MSiiJLp iP+fWltMB/l4pHZ3neG87bpF0usSPfZ+bhcx8OfEDeSYOaQyegJDMm9IIg70PULq1qSO TRfqgcCJoA2OQDUEqAj2AlCjDmgNT1SQ1Qk7+oWf8spLvQ+CwuPbRBzvgUS/SYOmmPwR aOoA== X-Received: by 10.55.221.22 with SMTP id n22mr1790980qki.60.1444147775329; Tue, 06 Oct 2015 09:09:35 -0700 (PDT) In-Reply-To: <20151006014426.GL8645@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:8623 Archived-At: On Tue, Oct 6, 2015 at 3:44 AM, Rich Felker wrote: >> > >> > #include >> > #include >> > results in: >> > In file included from /usr/include/linux/if_bridge.h:18, >> > from networking/brctl.c:67: >> > /usr/include/linux/in6.h:32: error: redefinition of 'struct in6_addr' >> > /usr/include/linux/in6.h:49: error: redefinition of 'struct sockaddr_in6' >> > /usr/include/linux/in6.h:59: error: redefinition of 'struct ipv6_mreq' >> > >> > and >> > >> > #include >> > #include >> > results in: >> > In file included from /usr/include/net/ethernet.h:10, >> > from networking/ifplugd.c:41: >> > /usr/include/netinet/if_ether.h:96: error: redefinition of 'struct ethhdr' >> > >> >> That I leave to Rich. :) > > Including kernel headers is just really problematic. These days they > try to make it work on glibc with a complex dance between glibc's > headers and the kernel headers. You're likely to have the best luck by > including the libc headers first. brctl.c was including after