Building and linking shared libaries formultipledifferentversions of UNIX

Richard Sharpe sharpe at ns.aus.com
Wed May 16 16:02:04 GMT 2001


At 11:12 AM 5/16/01 -0400, David Collier-Brown wrote:
>Richard Sharpe wrote:
>> 
>> OK, great explanation. What action do I need to take when I install
>> libsmbclient.so.x.0?
>> 
>> Do I need to run ldconfig, and then create the link if it doesn't already
>> exist?
>
>	I think you do that in the opposite order, actually..
>	ldconfig updates an in-memory table in older SunOSs
>	(I don't have one on my Solaris 8 system).

Well, Under Linux, it seems that ldconfig makes the symbolic link from the
soname to the real name ... that is, if I copy libsmbclient.so.1.0 to
$(LIBDIR) and then run ldconfig (and $(LIBDIR) is in /etc/ld.so.conf),
ldconfig creates the symbolic link from libsmbclient.so.1 to
libsmbclient.so.1.0 ...

Regards
-------
Richard Sharpe, sharpe at ns.aus.com
Samba (Team member, www.samba.org), Ethereal (Team member, www.ethereal.com)
Contributing author, SAMS Teach Yourself Samba in 24 Hours
Author, Special Edition, Using Samba






More information about the samba-technical mailing list