From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7883 Path: news.gmane.org!not-for-mail From: John Mudd Newsgroups: gmane.linux.lib.musl.general Subject: C++ questions Date: Fri, 5 Jun 2015 17:34:52 -0400 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8f8388f52f7f350517cc1141 X-Trace: ger.gmane.org 1433540143 16298 80.91.229.3 (5 Jun 2015 21:35:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Jun 2015 21:35:43 +0000 (UTC) Cc: John Mudd To: musl Original-X-From: musl-return-7896-gllmg-musl=m.gmane.org@lists.openwall.com Fri Jun 05 23:35:38 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Z0zH0-0007Y3-02 for gllmg-musl@m.gmane.org; Fri, 05 Jun 2015 23:35:30 +0200 Original-Received: (qmail 12180 invoked by uid 550); 5 Jun 2015 21:35:28 -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 12139 invoked from network); 5 Jun 2015 21:35:24 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:cc:content-type; bh=sSlxNQt8vT/Tuy6Z9a5/ELi61YXjPsls75x7/vdjtYo=; b=x2RHdlkYpz54JN1SxGis6vP2IwKAk8zA9YsIQ+aCLlqoqrZoMZv7m31s/EKOtvNIv/ EFkuLC0h0Y1KJlMfVXRV28hrFRBg3ejxEK6JAdQ8XnOx1Hw8Zf5lJ2NGJ/6SC5sKR1M3 2XCn5Yc7r7Dqw3fvk+3jD7CohDcmp9JbnOhhnDOlzXVRS3MMHIRbXHnZt8q0dAPRgS9Q c2U3/tDr/f6ZE0qfgkIDWURP/JEQUwV9PM1lGxKNQVpTAakwl5w2mNeed3MTm6Ta8/0i tttqFoCMwjL5H2qbeAi/QJpycO6G9STO6nt9kJnFRBneR+PNlZVXbBlU7TM8fNxmccye mLgw== X-Received: by 10.50.43.137 with SMTP id w9mr449557igl.30.1433540112627; Fri, 05 Jun 2015 14:35:12 -0700 (PDT) Xref: news.gmane.org gmane.linux.lib.musl.general:7883 Archived-At: --e89a8f8388f52f7f350517cc1141 Content-Type: text/plain; charset=UTF-8 I've been building an app with musl and it worked well for years. Recently one of the proprietary libs that I use has been updated to include C++ code along with the usual C code. In the past (in a non-musl environment) I've gotten this to work by loading libstdc++.so. I tried that again but I get the following error when trying to load libstdc++.so. Error loading shared library ld-linux.so.2: No such file or directory (needed by /usr/lib/i386-linux-gnu/libstdc++.so.6) I looked at the notes about C++ in the musl faqs. For that I decided it might help if I built gcc in musl. Then everything will be musl-ized? I built gmp, mpfr and mpc. Started building gcc but got the following error. /home/mudd/musl/gcc-4.9.2.obj/gcc/../../gcc-4.9.2/gcc/plugin.c:579: undefined reference to `dlopen' Before I go further, any opinions if I'm even headed in the right direction? John --e89a8f8388f52f7f350517cc1141 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I've been building an app with musl and it worked well= for years. Recently one of the proprietary libs that I use has been update= d to include C++ code along with the usual C code.

In th= e past (in a non-musl environment) I've gotten this to work by loading= =C2=A0libstdc++.so. I tried that again but I get the following error when t= rying to load=C2=A0libstdc++.so.

Error loadin= g shared library ld-linux.so.2: No such file or directory (needed by /usr/l= ib/i386-linux-gnu/libstdc++.so.6)

I looked a= t the notes about C++ in the musl faqs. For that I decided it might help if= I built gcc in musl. Then everything will be musl-ized? I built gmp, mpfr = and mpc. Started building gcc but got the following error.

/home/mudd/musl/gcc-4.9.2.obj/gcc/../../gcc-4.9.2/gcc/plugin.= c:579: undefined reference to `dlopen'

B= efore I go further, any opinions if I'm even headed in the right direct= ion?

John
--e89a8f8388f52f7f350517cc1141--