[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem with nsswitch and new libc



On Thu, Nov 09, 2000 at 12:19:31AM -0500, Matt Zimmerman wrote:
> 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.

Yes, AbiWord is linked against the X libraries.  (of course)

Thankfully, this change has now been reverted (thanks, ben) so I can 
build static apps on my machine again.  



           
	sam th		     
	sam@uchicago.edu
	http://www.abisource.com/~sam/
	GnuPG Key:  
	http://pgp5.ai.mit.edu:11371/pks/lookup?op=get&search=0xCABD33FC

Attachment: pgpa7W33_4jZC.pgp
Description: PGP signature


Reply to: