Subject: Re: Zoularis, lang/gcc: libstdc++.so not found
To: Ingolf Steinbach <ingolf.steinbach@jena-optronik.de>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: tech-pkg
Date: 06/18/2002 16:28:02
--s/l3CgOIzMHHjg/5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

hi,

On Tue, Jun 18, 2002 at 09:39:49AM +0200, Ingolf Steinbach wrote:
> % g++ -c hello.cpp -o hello.o
> % g++ -o hello hello.o
> % ./hello
> ld.so.1: ./hello: fatal: libstdc++.so.2.10.0nb1: open failed: No such fil=
e or directory
> Killed
> % ldd ./hello
>         libstdc++.so.2.10.0nb1 =3D>        (file not found)
>         libm.so.1 =3D>     /usr/lib/libm.so.1
>         libc.so.1 =3D>     /usr/lib/libc.so.1
>         libdl.so.1 =3D>    /usr/lib/libdl.so.1
>         /usr/platform/SUNW,UltraAX-i2/lib/libc_psr.so.1
>=20
> Am I missing something? Should Zoularis/gcc depend on
> binutils?

libstdc++ is in /usr/pkg/lib, did you add /usr/pkg/lib to your
/var/ld/ld.config or do you have LD_LIBRARY_PATH set?

[~]> g++ -c hello.cpp -o hello.o  =20
[~]> g++ -o hello hello.o
[~]> ./hello
Hello World!
[~]> ldd ./hello
        libstdc++.so.2.10.0nb1 =3D> /usr/pkg/lib/libstdc++.so.2.10.0nb1
        libm.so.1 =3D>     /usr/lib/libm.so.1
        libc.so.1 =3D>     /usr/lib/libc.so.1
        libdl.so.1 =3D>    /usr/lib/libdl.so.1


regards,

--=20
-- Lubomir Sedlacik <salo@Xtrmntr.org>   ASCII Ribbon campaign against  /"\=
 --
--                  <salo@silcnet.org>   e-mail in gratuitous HTML and  \ /=
 --
--                                       Microsoft proprietary formats   X =
 --
-- PGPkey: http://Xtrmntr.org/salo.pgp                                  / \=
 --
-- Key Fingerprint: DBEC 8BEC 9A90 ECEC 0FEF  716E 59CE B70B 7E3B 70E2     =
 --

--s/l3CgOIzMHHjg/5
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (NetBSD)

iD8DBQE9D0NyWc63C347cOIRAgqFAKCuprKcgj0Y2q+4lqqUvqexExWbMACg4HZ6
OetWWvmN03qN6w4ORJpvG8U=
=dIqb
-----END PGP SIGNATURE-----

--s/l3CgOIzMHHjg/5--