*BSD News Article 75820


Return to BSD News archive

Newsgroups: comp.unix.bsd.netbsd.misc
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!howland.erols.net!vixen.cso.uiuc.edu!newsfeed.internetmci.com!hunter.premier.net!netnews.worldnet.att.net!cbgw2.att.com!oucsboss!news
From: bfriedma@jarok.cs.ohiou.edu (Boris A. Friedman)
Subject: yet another ldconfig question
X-Nntp-Posting-Host: jarok.cs.ohiou.edu
Message-ID: <blohkkz60u.fsf@jarok.cs.ohiou.edu>
Lines: 31
Sender: news@boss.cs.ohiou.edu (News Admin)
X-Nntp-Posting-Date: Fri Aug  9 15:55:49 1996
Organization: Ohio University Mathematics Department
X-Newsreader: Gnus v5.2.25/XEmacs 19.14
Date: Fri, 9 Aug 1996 19:55:45 GMT


I ran into an annoying problem with shared libraries after I installed
the beta release of xfree86 under netbsd1.1. This release added some
new minor versions of shared libraries to my /usr/X11R6/lib (e.g I
used to have only libXaw.so.6.0 but now I have both libXaw.so.6.0 and
libXaw.so.6.1). But when I run

ldconfig /usr/X11R6/lib

at startup, the only library added to the hints file is the latest
one. Thus, the applications that I compiled earlier do not run (they
report that libXaw.so.6.0 is not found). So now in order to run
ghostview I have to:

#X11R6.backup contains old release
ldconfig /usr/X11R6.backup/lib  #put libXaw.so.6.0 in the hints file
ghostview&
ldconfig /usr/X11R6/lib         #restore the original hints file

(and that as a root, because I don't have permissions to modify the
hints file as an ordinary user).

I tried to set LD_LIBRARY_PATH in all possible ways, tried to run
'ldconfig -m /usr/X11R6.backup/lib' and a bunch of other things of no
avail. 

Can anybody suggest a cure (please don't ask me to recompile all the
old applications though:-)

Thanks.
Boris.