Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAGDMk9Ebt-LiFW_AiP0H3_w=ZJuTkptFzZm6caJg8bNzCL3f=g@mail.gmail.com>
Date: Tue, 9 Jun 2015 16:17:11 -0400
From: John Mudd <johnbmudd@...il.com>
To: musl <musl@...ts.openwall.com>, John Mudd <johnbmudd@...il.com>
Subject: Re: C++ questions

On Fri, Jun 5, 2015 at 5:56 PM, Szabolcs Nagy <nsz@...t70.net> wrote:

> * John Mudd <johnbmudd@...il.com> [2015-06-05 17:34:52 -0400]:
> > Error loading shared library ld-linux.so.2: No such file or directory
> > (needed by /usr/lib/i386-linux-gnu/libstdc++.so.6)
> >
>
> create an empty ld-linux.so.2
>
>  gcc -o ld-linux.so.2 -xc -shared - </dev/null
>
> (nowadays toolchains sometimes add the dynamic linker to
> elf DT_NEEDED, i dont know why, it's not really needed)
>
> > 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'
> >
>
> you have to patch gcc and use certain options to make it work
>
> musl-cross build scripts take care of if
> (there are prebuilt toolchains too)
>
> > Before I go further, any opinions if I'm even headed in the right
> direction?
> >
>
> you may get away without building
>


Thanks again. Adding the empty ld-linux.so.2 helped. I also had to
add libgcc_s.so.1 and the following _chk stubs.

http://pastebin.com/TeieBKCE

John

Content of type "text/html" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.