Subject: Why no DT_NEEDED tags in libs?
To: None <tech-userlevel@netbsd.org>
From: Jukka Salmi <j+nbsd@2006.salmi.ch>
List: tech-userlevel
Date: 03/16/2006 18:17:16
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?


Regards, Jukka

[1] http://mail-index.netbsd.org/pkgsrc-users/2006/03/14/0002.html

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~