On Tue, 2003-07-22 at 21:31, Todd Lyons wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> James Sparenberg wanted us to know:
> 
> >>   [EMAIL PROTECTED] ~]$ urpmf libaudio.so
> >>   libnas2:/usr/X11R6/lib/libaudio.so.2
> >>   libnas2:/usr/X11R6/lib/libaudio.so.2.3
> >>   libnas2-devel:/usr/X11R6/lib/libaudio.so
> >locate libaudio.so
> >/usr/X11R6/lib/libaudio.so.2.3
> >/usr/X11R6/lib/libaudio.so.2
> 
> Those two are the runtime libraries.  Note how they're provided by the
> libnas2 package.  When linking, it will use the "-laudio" flag which
> means it wants to look for libaudio.so.  It doesn't want the .2 or .2.3
> at the end.  It wants only lib + {link target} + .so and that's it.
> That file name convention is provided by the -devel package, in this
> case, libnas2-devel.
> 
> >Even though I have the rpm in question installed.  I don't have that 3rd
> >level of linking. Where so.2 and so link to so.2.3.  So what I've found
> >is often when I get the above error.  I have 3 steps.  One, the one you
> >took.  Two, make sure that that 3rd link (the libaudio.so one) is
> >there.  and finally I've had to add a bunch to ld.so.conf.  things like
> >/usr/lib/  even though the libs are there for reasons unknown some
> >builds don't pick it up unless I had the dir to ld.so.conf and re-run
> >ldconfig.  I know this isn't supposed to happen... but.  If it works
> >repeatedly I keep repeating it.   
> 
> I think there's something else going on here.  /lib and /usr/lib are
> default paths for ldconfig.  Witness another example:
> 
> [EMAIL PROTECTED] ~]$ locate libncurses\. | grep lib | grep -v "a$"
> /usr/lib/libncurses.so.5.3
> /usr/lib/libncurses.so.5
> /usr/lib/libncurses.so
> /lib/libncurses.so.5.3
> /lib/libncurses.so.5
> /lib/libncurses.so
> [EMAIL PROTECTED] ~]$ locate libncurses\. | grep lib | grep -v "a$" | xargs rpm
> - -qf
> libncurses5-5.3-1.20030215.1mdk
> libncurses5-5.3-1.20030215.1mdk
> libncurses5-devel-5.3-1.20030215.1mdk
> libncurses5-5.3-1.20030215.1mdk
> libncurses5-5.3-1.20030215.1mdk
> libncurses5-devel-5.3-1.20030215.1mdk
> 
> So libncurses.so is provided by the libncurses5-devel package and
> libncurses.so.* is provided by the libncurses5 package.  The first is
> the development package because it's used when compiling programs that
> will use ncurses.  The second is the runtime libraries because programs
> that are linked with ncurses need this library to be present to run.
> Unfortunately, I seem to be using a bit of circular logic, maybe someone
> else can explain it a bit better.

Todd I'm not questioning what you are saying, but actually agreeing....
but noting some inconsistent events in the latest MDK's   A fresh
install today had this for ld.so.conf
/usr/X11R6/lib
/var/lib

notably missing are /lib /usr/lib and /usr/local/lib (this 3rd one is
debatable as to need.) 

james


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to