Subject: Re: Why no DT_NEEDED tags in libs?
To: Jukka Salmi <j+nbsd@2006.salmi.ch>
From: Jason Thorpe <thorpej@shagadelic.org>
List: tech-userlevel
Date: 03/16/2006 11:44:19
On Mar 16, 2006, at 9:17 AM, Jukka Salmi wrote:

> 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 - 
> 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?

I personally think we SHOULD be adding the DT_NEEDED tags in our  
libs.  I consider this to be a bug in NetBSD.

>
>
> Regards, Jukka
>
> [1] http://mail-index.netbsd.org/pkgsrc-users/2006/03/14/0002.html
>
> -- 
> bashian roulette:
> $ ((RANDOM%6)) || rm -rf ~

-- thorpej