NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: libstdc++.so.7 is missing



On Thu, 17 Jan 2019, at 14:43:18 +0100, Marc Baudoin wrote:
> Martin Husemann <martin%duskware.de@localhost> écrit :
> > On Thu, Jan 17, 2019 at 02:35:34PM +0100, Pedro Pinho wrote:
> > > Nope, this was/is 8.0 from the start.
> > 
> > And you did not have any pkgs pre-installed?
> > 
> > The problem is that 8.0 had libstdc++.so.8.0, and nothing compiled for 8.0
> > should ever refer to libstdc++.so.7.
> 
> It depends where this libstdc++.so.7 is.  On my system (8.0 from
> the start also), gcc packages install several versions of
> libstdc++.so.7:
> 
> /usr/pkg/gcc6/lib/libstdc++.so.7
> /usr/pkg/gcc6/lib/libstdc++.so.7.22
> /usr/pkg/gcc6/lib/libstdc++.so.7.22-gdb.py
> /usr/pkg/gcc6/x86_64--netbsd/lib/libstdc++.so.7
> /usr/pkg/gcc6/x86_64--netbsd/lib/libstdc++.so.7.22
> /usr/pkg/gcc6/x86_64--netbsd/lib/libstdc++.so.7.22-gdb.py
> /usr/pkg/gcc8/lib/libstdc++.so.7
> /usr/pkg/gcc8/lib/libstdc++.so.7.25
> /usr/pkg/gcc8/lib/libstdc++.so.7.25-gdb.py

Yes, for NetBSD 7 and 8, firefox needs a newer version of GCC than the
base system provides, so you will end up with something like:

ldd /usr/pkg/lib/firefox/firefox

/usr/pkg/lib/firefox/firefox:
        -lpthread.1 => /usr/lib/libpthread.so.1
        -lc.12 => /usr/lib/libc.so.12
        -lstdc++.7 => /usr/pkg/gcc6/x86_64--netbsd/lib/./libstdc++.so.7
        -lm.0 => /usr/lib/libm.so.0
        -lgcc_s.1 => /usr/pkg/gcc6/x86_64--netbsd/lib/./libgcc_s.so.1

So perhaps what happened is the necessary gcc-libs package (e.g., in my
example above, gcc6-libs) didn't get pulled in for some reason.

Dave




Home | Main Index | Thread Index | Old Index