From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5889 Path: news.gmane.org!not-for-mail From: "piranna@gmail.com" Newsgroups: gmane.linux.lib.musl.general Subject: Re: Bug on fstat()? Date: Sun, 24 Aug 2014 23:23:27 +0200 Message-ID: References: <20140824210539.GT12888@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 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1408915446 16530 80.91.229.3 (24 Aug 2014 21:24:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Aug 2014 21:24:06 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5895-gllmg-musl=m.gmane.org@lists.openwall.com Sun Aug 24 23:24:00 2014 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 1XLfGZ-0006q7-F6 for gllmg-musl@plane.gmane.org; Sun, 24 Aug 2014 23:23:59 +0200 Original-Received: (qmail 17933 invoked by uid 550); 24 Aug 2014 21:23:58 -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 17925 invoked from network); 24 Aug 2014 21:23:58 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=XR+3bWsOBYImEvJlKead02JgVB/a5202s82hRdJpRDM=; b=sgFZf9ZL1I7B+zqERqhV8mUE5PY5HgN82AHSwPM8dca+o5Ef1yeRpzsRJMJNEuaQij Ue+xmeXT4rUHUerEWIbvTiNC4SRPKC502tMtOI/it7CFPCh7aMp9o4JaDSzxD53ceRoK 5bJypL1ZmHG9OpsfrNTCwEezSDKkO9zE2jVtnqT+AfM6IuIXZiwKxAqcHmaGy1zeqnIx Pu/RgMDExMDEGEUdVfKt+83Q+l0QrfVeg0IRpNgh+OCdc3LK98dj3qvWr5EmhIKAaGqh OtgCxSqzAH8wlMtPlH37K65sfzCCZacMzAThWhCALjEDrbBfD5f9J034tg9pV2Dz87Qc 6New== X-Received: by 10.180.208.111 with SMTP id md15mr2840711wic.3.1408915427499; Sun, 24 Aug 2014 14:23:47 -0700 (PDT) In-Reply-To: <20140824210539.GT12888@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:5889 Archived-At: > What prefix is musl-gcc installed in? I'm using the musl packages availables on Ubuntu Unicorn, musl-gcc is available at /usr/bin/musl-gcc and musl includes are at /usr/include/i386-linux-musl > And have you done anything to modify it or added additional include paths= for it? The above symlinks don't make sense for a typical out-of-the-box i= nstallation. I've not modified musl source code, only modifications have been to add that symlinks for linux, asm & asm-generic includes so they are available to Node.js during compilation. I didn't found a cleaner way to do it. They are not required by Node.js itself, but instead by libuv. > I suspect you've somehow gotten -I/usr/include added to the CFLAGS during= build > (either doing it yourself, or as a result of a broken build script) if > adding symlinks to /usr/include made a difference, in which case you > may be using glibc's headers, not musl's, and thus getting broken > results. The build scripts are generated by GYP and the Node.js build process, that I'm generating with CC=3Dmusl-gcc ./configure --fully-static --without-ssl (--fully-static is a flag that I've patched that adds '-static' to gcc call= ) /usr/include should not be referenced, if so, I wouldn't need to add the symlinks for /usr/include/linux and /usr/include/asm-generic :-/ Anyway, I'll review the full build process. --=20 "Si quieres viajar alrededor del mundo y ser invitado a hablar en un monton de sitios diferentes, simplemente escribe un sistema operativo Unix." =E2=80=93 Linus Tordvals, creador del sistema operativo Linux