From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5893 Path: news.gmane.org!not-for-mail From: "piranna@gmail.com" Newsgroups: gmane.linux.lib.musl.general Subject: Re: Bug on fstat()? Date: Mon, 25 Aug 2014 11:18:08 +0200 Message-ID: References: <20140824210539.GT12888@brightrain.aerifal.cx> <53FA5A8A.3040503@gentoo.org> 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 1408958331 3811 80.91.229.3 (25 Aug 2014 09:18:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Aug 2014 09:18:51 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5899-gllmg-musl=m.gmane.org@lists.openwall.com Mon Aug 25 11:18:45 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 1XLqQD-0006cM-60 for gllmg-musl@plane.gmane.org; Mon, 25 Aug 2014 11:18:41 +0200 Original-Received: (qmail 17509 invoked by uid 550); 25 Aug 2014 09:18:40 -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 17501 invoked from network); 25 Aug 2014 09:18:40 -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=DtCLH11SFcj3lkQfYD8VvLzCgZ7BxrJJnSs6M96x4W0=; b=E9k4xh3E3yjGOmdX/Zp/GC6/2GKPQk2SeOVVmzoAe/uz/h89bJfpreDMLUNDwOz53W 93WhYTQml8EIi7l7aqg9XXbyWxrUTv1EBBIGt+L7Ilry9tC1N1t5l3ttV7LgOJsaSvP2 6azolYMVCiW4hWE+MFCICBnqq4a8HCkXV9felD21MsW/FJjxQguaE+1OPMQJ7fBObOmO sIV21PiZTO2Lno5zbUd4eO+pAAqyNjEar+kxNT9tct0bFv5SHJbEfrawan/8qDWFJR8u Zmsn4Rhlug/zzb5B1Jf6495e6XES5SFcUymvg5K9Nva5S0vvtog1IbfoyWvL/G83JHUg agOQ== X-Received: by 10.194.103.200 with SMTP id fy8mr1051702wjb.123.1408958308932; Mon, 25 Aug 2014 02:18:28 -0700 (PDT) In-Reply-To: <53FA5A8A.3040503@gentoo.org> Xref: news.gmane.org gmane.linux.lib.musl.general:5893 Archived-At: > Make sure everything picks up the correct compiler and include paths. I've review the compilation output and in the last command, I have seen it's using g++ for linking and in fact is throwing the same errors about "Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking" (I've missed them because since all the compilation was being done by musl-gcc and exit status was ok, I though everything was compiled correctly. My fault). I have reviewed the generated makefiles and found this paragraph regarding th g++ linking: # C++ apps need to be linked with g++. # # Note: flock is used to seralize linking. Linking is a memory-intensive # process so running parallel links can often lead to thrashing. To disabl= e # the serialization, override LINK via an envrionment variable as follows: # # export LINK=3Dg++ # # This will allow make to invoke N linker processes as specified in -jN. LINK ?=3D flock $(builddir)/linker.lock $(CXX.target) So, is g++ mandatory for compilation? Is there any solution? I'll try to set CXX to musl-gcc too, but didn't see anything about this and I'm not sure if it would work... If it doesn't work, would I need to create a musl-g++ wrapper? --=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