From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5910 Path: news.gmane.org!not-for-mail From: "piranna@gmail.com" Newsgroups: gmane.linux.lib.musl.general Subject: Re: Bug on fstat()? Date: Tue, 26 Aug 2014 21:05:17 +0200 Message-ID: References: <20140824210539.GT12888@brightrain.aerifal.cx> <53FA5A8A.3040503@gentoo.org> <20140825094902.GU22308@port70.net> <20140825154811.GW12888@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 1409079968 9559 80.91.229.3 (26 Aug 2014 19:06:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Aug 2014 19:06:08 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5916-gllmg-musl=m.gmane.org@lists.openwall.com Tue Aug 26 21:06:03 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 1XMM3x-0006OW-DU for gllmg-musl@plane.gmane.org; Tue, 26 Aug 2014 21:05:49 +0200 Original-Received: (qmail 22049 invoked by uid 550); 26 Aug 2014 19:05:48 -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 22041 invoked from network); 26 Aug 2014 19:05:48 -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=cziWEDHV8pkN0HHAvkPFvXH5iKjh+4EOY49lxCQmjG0=; b=SdCuev3x7G4GCPNusS+26XLKVMGZEriuPlrP2EeX/iilS9sV+aFSDYCTXbVxwdjnhK mTQYg3jLKprYOd3GsYvDEVOhJR0vAQvZ4C/4DuBJbALnAibtCpMEH3zgVm1LzyLtLIQz okOO+9EUoSBvblFCP6GPcTd9B+twKqAe5PaomcukFRIOaRA5nxuYXA3B9LzgwbHmWqXE aunMUVIcjfrHCzCsUnENyyPs8Vtb4iE/RrRt9/eUvn/+YTjwEj3e3hqh6btRAOkif4k9 Fjvi1CdCJ901k/+D7spYdQ3YjVuV4X7Q479P4Nar3jOE2CHaJ8IJXZYZF0x2dFb7fD5g PAIQ== X-Received: by 10.194.219.193 with SMTP id pq1mr31728017wjc.5.1409079937134; Tue, 26 Aug 2014 12:05:37 -0700 (PDT) In-Reply-To: <20140825154811.GW12888@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:5910 Archived-At: Sorry for the delay. Ok, I must to say it: the cross-compiler did the trick :-D I downloaded one of the pre-compiled ones and didn't understand too much how to use it, so I clone the repository and build and install it by hand thinking it would help me to understand how it worked, but didn't :-( Lucklily, I found a Node.js install script from alpinelinux (http://git.alpinelinux.org/cgit/aports/tree/main/nodejs/APKBUI= LD) and a cross-compiler helper script for Parrot AR drone (https://github.com/felixge/node-cross-compiler/blob/master/platforms/ardro= ne2.sh) that gave me some inspiration and I was able to finally compile the static build :-) I needed to disable OpenSSL support because it gave a strange error: /opt/cross/i686-linux-musl/bin/i686-linux-musl-g++ '-DOPENSSL_NO_SSL2=3D1' '-DV8_TARGET_ARCH_IA32' '-DENABLE_DISASSEMBLER' '-DV8_USE_DEFAULT_PLATFORM' -I../deps/v8/src -pthread -Wall -Wextra -Wno-unused-parameter -m32 -fno-strict-aliasing -m32 -O3 -ffunction-sections -fdata-sections -fno-tree-vrp -fno-omit-frame-pointer -fdata-sections -ffunction-sections -O3 -fno-rtti -fno-exceptions -MMD -MF /home/piranna/Dropbox/Proyectos/NodeOS/NodeOS-QEmu/Layer2-nodejs/deps/node/= out/Release/.deps//home/piranna/Dropbox/Proyectos/NodeOS/NodeOS-QEmu/Layer2= -nodejs/deps/node/out/Release/obj.target/mksnapshot.ia32/deps/v8/src/mksnap= shot.o.d.raw -c -o /home/piranna/Dropbox/Proyectos/NodeOS/NodeOS-QEmu/Layer2-nodejs/dep= s/node/out/Release/obj.target/mksnapshot.ia32/deps/v8/src/mksnapshot.o ../deps/v8/src/mksnapshot.cc /home/piranna/Dropbox/Proyectos/NodeOS/NodeOS-QEmu/Layer2-nodejs/deps/node/= out/Release/obj.target/deps/openssl/libopenssl.a(eng_all.o): En la funci=C3=B3n `ENGINE_load_builtin_engines': eng_all.c:(.text.ENGINE_load_builtin_engines+0x46): referencia a `ENGINE_load_padlock' sin definir eng_all.c:(.text.ENGINE_load_builtin_engines+0x4b): referencia a `ENGINE_load_gost' sin definir collect2: error: ld returned 1 exit status deps/openssl/openssl-cli.target.mk:193: recipe for target '/home/piranna/Dropbox/Proyectos/NodeOS/NodeOS-QEmu/Layer2-nodejs/deps/node= /out/Release/openssl-cli' failed Seems to be that OpenSSL command line executable is trying to find this references. I have tried to disable the generation of that target from GYP but seems more difficult to do that what I though. I know OpenSSL has some issues with musl, but anyone knows how to fix this? Seems OpenSSL support is required so NPM can work and to be able to install packages... :-/ Otherwise, the Node.js static build is working flawlessly and the problem with fstat() has been fixed with the cross-compiler :-D I'm having some issues with compiled modules, but probably they are dues to compile them outside the custom environment (with the current Node.js version and glibc instead of the development one and musl), I'll try to make it work from inside them :-) --=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