On 10/24/07, Danek Duvall <danek.duvall at sun.com> wrote:
> On Tue, Oct 23, 2007 at 01:54:44PM -0400, Sebastien Roy wrote:
>
> > /usr/lib/libexpect5.43.so Shared lib
>
> I neglected to notice this before. Is this the actual library, or the link
> to the versioned object?
It is the library (actual file)
> If the former, why isn't it versioned?
I have followed the default installation. Tcl & Tk's libs already had
the same convention and I kept it the same. This can be changed to the
below form with very little impact (see answer to next question).
/usr/lib/libexpect.so -> /usr/lib/libexpect.so.5.43.0
/usr/lib/libexpect.so.5.43 -> /usr/lib/libexpect.so.5.43.0
/usr/lib/libexpect.so.5.43.0
> How is it used?
>
It can be used in two ways
1. tcl scripts that get executed via tclsh can load it dynamically
using "package require Expect" (something like importing it)
2. A developer may write c programs using the libraries exposed by the
lib. Man page for the lib provides these details.
Changing to the versioned scheme will mean installing the lib with a
different name and installing 2 links to the lib.
The manpage suggest linking to -lexpect5.43. A text update in the man
page to reflect the new name. If we can keep libexpect5.43.so as the
versioned name, then no change to man page but just installing 2
links.
regards
Shiv