On Wed, Nov 08, 2000 at 10:59:28PM -0600, Sam TH wrote: > > NSS is now compiled statically (i.e. seperate from libc.a), so if your > > program requires lookup calls (those that work with NSS), then you need to > > do this: > > > > gcc -o temp temp.c /usr/lib/libc.a -lnss_files -lnss_dns > > > > I might revert this, but then static compilations really aren't static > > anymore (your static app will still dlopen NSS modules, possibly from a > > different version of libc). > > I've investigated this further, and it appears that abiword never uses > NSS. At least, the string "nss" never appears in the code. Yet it still > gives the errors I previously reported when I tried to statically link. > > I shouldn't have to change the link line if I don't use those libraries, > right? Or is there something I'm missing here? Abiword is linked to the X libraries, right? They certainly reference NSS functions within code that is used by abiword (e.g., connecting to an X server). I don't think the linker is smart enough to know that the X libraries require the NSS libraries, so you need to specify both at link time. -- - mdz
Attachment:
pgp_9BttfKZa_.pgp
Description: PGP signature