Subject: Re: 3rd-party app linked with libstdc++.so.4, which isn't in NetBSD 2.0.2
To: None <netbsd-help@netbsd.org>
From: Marc Tooley <netbsdMLpostNO@spam.quake.ca>
List: netbsd-help
Date: 07/14/2005 16:48:46
On Wednesday 13 July 2005 12:30, Adam Fineman wrote:
> On 7/13/05, Jeremy C. Reed <reed@reedmedia.net> wrote:
> > On Wed, 13 Jul 2005, Adam Fineman wrote:
> > > I am trying to run a 3rd-party closed-source app on NetBSD 2.0.2.
> > >  It is linked with libstdc++.so.4, which is not present on my
> > > system.  Is there a compatibility package somewhere that I can
> > > install?
> >
> > libstdc++.so.4 is from NetBSD 1.6.x
>
> Thanks.  I did find it there, but I'm not sure of the best way to
> install it on 2.0.x.

Install /usr/pkgsrc/emulators/compat16

... and then you *may* have to:

ln -s /usr/pkg/emul/netbsd16/usr/lib/libstdc++.so.4.0 \
/usr/lib/libstdc++.so.4

> It is only needed if one wants to run an app that is dynamically
> linked with it, which is true in my case.

Unfortunately, it doesn't look like the NetBSD compatibility translation 
stuff works for these libraries via the compat16 package. I think that 
those just install the files: sometimes actually using them requires 
symlinks.. unfortunately.

> Also, is there some utility in NetBSD that would allow me to search
> for a package that provides a particular file?

pkg_info -F /path/to/file

... might give you what you're looking for.