Subject: Re: Why no DT_NEEDED tags in libs?
To: Jason Thorpe <thorpej@shagadelic.org>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-userlevel
Date: 03/16/2006 15:23:14
--oj4kGyHlBMXGt3Le
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Mar 16, 2006 at 11:44:19AM -0800, Jason Thorpe wrote:
>=20
> On Mar 16, 2006, at 9:17 AM, Jukka Salmi wrote:
>=20
> >Hi,
> >
> >I noticed a [1]problem with firefox on a -current NetBSD/i386 system:
> >it fails to load the base system's GSSAPI library, but it succeeds to
> >load the one built using pkgsrc (security/heimdal). I noticed that
> >relinking the base system's libgssapi.so adding `-lkrb5 -lcrypto -=20
> >lasn1
> >-lroken -lcrypt' to the linker options, thus forcing creation of
> >DT_NEEDED tags, solves the problem.
> >
> >So, who's the culprit? Is it firefox, not knowing how to correctly
> >load the library, or is it the Makefile in src/lib/libgssapi, not
> >specifying LIBDPLIBS?
>=20
> I personally think we SHOULD be adding the DT_NEEDED tags in our =20
> libs.  I consider this to be a bug in NetBSD.

Is there a reason we don't, other than that we didn't used to?

I thought that even our a.out code handled this now. ??

Take care,

Bill

--oj4kGyHlBMXGt3Le
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFEGfNiWz+3JHUci9cRApz1AJ0SO1rxNs9dzUO7/pNI/BNaNJJWaACgiA7Z
TH/a8pJkvOOTgptM5iWxfE4=
=pISQ
-----END PGP SIGNATURE-----

--oj4kGyHlBMXGt3Le--