From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3817 Path: news.gmane.org!not-for-mail From: Kirk Terrell Newsgroups: gmane.linux.lib.musl.general Subject: Re: Embedded distro Date: Sun, 04 Aug 2013 17:57:50 -0700 Message-ID: <51FEF88E.3070902@mybluelight.com> References: <51FD2D8A.5060402@mybluelight.com> <20130803164312.GJ25714@port70.net> <51FD4870.1000902@mybluelight.com> <20130803195756.GU221@brightrain.aerifal.cx> <51FDC2E3.7010807@mybluelight.com> <20130804114012.GX221@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1375664280 21305 80.91.229.3 (5 Aug 2013 00:58:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Aug 2013 00:58:00 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3821-gllmg-musl=m.gmane.org@lists.openwall.com Mon Aug 05 02:58:03 2013 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 1V697a-0001G2-V2 for gllmg-musl@plane.gmane.org; Mon, 05 Aug 2013 02:58:03 +0200 Original-Received: (qmail 30220 invoked by uid 550); 5 Aug 2013 00:58:02 -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 30209 invoked from network); 5 Aug 2013 00:58:02 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mybluelight.com; s=alpha; t=1375664268; bh=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=; l=0; h=Message-ID:Date:From:To:Subject:Content-Type; b=fbYCKjccyBI6ar56iNPxjmSux2L/efhuVpxz5/taF8Uy9SNLBo1P/Qb6xfFqRdK5S 3HAr2iIJ41KVGhXnnB5e3Ol2r0HU+cb1N83W92SN8d3UNrzxrf1JYthzF+SWbB3xAy Lea0WQivjQXwj0FhB3ZTmy4tqcRabcHrW390XXuI= X-UOL-TAGLINE: true User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120827 Thunderbird/15.0 In-Reply-To: <20130804114012.GX221@brightrain.aerifal.cx> X-UNTD-BodySize: 2746 X-ContentStamp: 26:13:638434559 X-UNTD-OriginStamp: Ow32KLW1sdAwxi2Cm1J3JhVv/eaupHX8EWR6cIPt3bOvm6QImgzmVBd0O5KNmBch X-UNTD-Peer-Info: 10.181.42.31|smtpout01.vgs.untd.com|smtpout01.vgs.untd.com|knjterrell@mybluelight.com Xref: news.gmane.org gmane.linux.lib.musl.general:3817 Archived-At: On 08/04/2013 04:40 AM, Rich Felker wrote: > On Sat, Aug 03, 2013 at 07:56:35PM -0700, Kirk Terrell wrote: >>>>> what needs these header hacks? >>>>> >>>>> cp ${CLFS}/usr/include/linux/if_slip.h ${CLFS}/usr/include/net/if_slip.h >>>>> cp ${CLFS}/usr/include/net/if_arp.h ${CLFS}/usr/include/linux/if_arp.h >>>>> >>>> I did this because busybox complained about header locations - these >>>> are headers from the kernel, not from Musl. This issue did not >>>> present when building a similar system using uClibc. >>> I wasn't aware of these issues. Which files are they in? Maybe we >>> should look into getting this fixed upstream... >>> >> The headers were to address the following issues that occurred while >> compiling busybox1.18.4. I'm using GCC-4.6.0 and Musl 0.9.11. I've >> passed the extra cflags -D_GNU_SOURCE -Dfdprintd=dprintf. My target >> is armel-unknown-linux-gnueabi. While compiling busybox I got the >> following errors: >> >>> CC networking/ifconfig.o >>> networking/ifconfig.c:43:26: fatal error: net/if_slip.h: No such >>> file or directory >>> compilation terminated. >> After turning off ifconfig I get the following: >> >>> networking/libiproute/ll_types.c:11:26: fatal error: >>> linux/if_arp.h: No such file or directory >>> compilation terminated. >> Since these headers come from the kernel and not Musl I suspect its >> a busybox issue. Any insight would be appreciated. > Like John said in his reply to you, you're using an ancient version of > Busybox with lots of known bugs, some of which are especially > problematic if you'll be using the busybox utilities in place of > coreutils when running programs' configure scripts and building > software. I would recommend upgrading to latest busybox. As far as I > know, it has all the issues against musl fixed, as well as having > fixes for the bugs I just mentioned. > > Rich > > I tried the most recent version of busybox and had the same issue, and so I looked a little further: > excerpt from busybox networking/ifconfig.c > if ENABLE_FEATURE_IFCONFIG_SLIP > # include > #endif > > clfs-kanj:~/sources/musl-0.9.11/include/net$ ls > ethernet.h if.h if_arp.h route.h > > clfs-kanj:~/sources/uClibc-0.9.31/include/net$ ls > ethernet.h if_arp.h if_ppp.h if_slip.h ppp_defs.h > if.h if_packet.h if_shaper.h ppp-comp.h route.h > > from sabatoge-master/KEEP/busybox.patch > > #if ENABLE_FEATURE_IFCONFIG_SLIP > -# include > +# include > #endif > To me it appears that uClibc is installing headers, that busybox expects to see, that Musl does not install. I am attempting to use Musl as far as possible as drop in replacement. I will update to a recent version of Busybox. Kirk ____________________________________________________________ Stand With Our President Show your support for raising the minimum wage. Sign the petition! http://thirdpartyoffers.netzero.net/TGL3341/51fef88b8b830788a3f5fst01vuc