From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2064 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Clash between 'netinet/if_ether.h' and 'linux/if_ether.h' Date: Mon, 8 Oct 2012 19:33:07 -0400 Message-ID: <20121008233307.GP254@brightrain.aerifal.cx> References: <5073577D.5010000@embtoolkit.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1349739713 25552 80.91.229.3 (8 Oct 2012 23:41:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Oct 2012 23:41:53 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-2065-gllmg-musl=m.gmane.org@lists.openwall.com Tue Oct 09 01:41:59 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1TLMxR-0006lW-31 for gllmg-musl@plane.gmane.org; Tue, 09 Oct 2012 01:41:57 +0200 Original-Received: (qmail 20377 invoked by uid 550); 8 Oct 2012 23:41:50 -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 20369 invoked from network); 8 Oct 2012 23:41:50 -0000 Content-Disposition: inline In-Reply-To: <5073577D.5010000@embtoolkit.org> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:2064 Archived-At: On Tue, Oct 09, 2012 at 12:45:17AM +0200, Abdoulaye Walsimou GAYE wrote: > Hello, > While trying to compile busybox-1.20.2, the following issue raised: > > CC networking/ifplugd.o > In file included from /home/walsimou/embtoolkit.git/sysroot-armel-linux-arm920t/usr/include/net/ethernet.h:10:0, > from networking/ifplugd.c:41: > /home/walsimou/embtoolkit.git/sysroot-armel-linux-arm920t/usr/include/netinet/if_ether.h:75:8: error: redefinition of 'struct ethhdr' > /home/walsimou/embtoolkit.git/sysroot-armel-linux-arm920t/usr/include/linux/if_ether.h:127:8: note: originally defined here > > Note that uClibc strategy here is to include linux/if_ether.h It's a bug to be including linux/if_ether.h, and there's no way to work around this without depending on kernel headers, which musl will not do for two reasons: 1. We can't control conformance issues and/or breakage if they expose crap into the namespace that they shouldn't be exposing, and this tends to vary by version. 2. It makes it so you can't build or use musl without kernel headers. It should be a one-line patch to fix ifplugd. Rich