[Top][All Lists]

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

Re: Installing modules on AIX

From: Wayne Stewart
Subject: Re: Installing modules on AIX
Date: Thu, 13 Mar 2003 09:49:21 -0800 (PST)

Thanks, Robert.  Yes, that does help - to an extent.  I guess there is
an "impedance mismatch" here, since Tcl (and Perl also I believe) by
default builds, installs, and expects to open '.so' files for its
dynamically loadable extensions on AIX.  However, libtool seems to be
saying that for "modules" the '.a' file is always good enough.

Also I'm still confused by the following passage from the libtool
documentation, since in my case (AIX) the 'dlname' in the '.la' for my
module (library) refers to the '.so' file and not the '.a' file:

|Finding the correct name to dlopen
|   After a library has been linked with `-module', it can be dlopened.
|Unfortunately, because of the variation in library names, your package
|needs to determine the correct file to dlopen.
|   The most straightforward and flexible implementation is to determine
|the name at runtime, by finding the installed `.la' file, and searching
|it for the following lines:
|     # The name that we can `dlopen'.
|     dlname='DLNAME'

I'd rather not do something kludgey like grepping through the '.la'
library file to get the DLNAME when installing my module.  It would
be preferable if libtool understool (via the -module option) that
I'm trying to build/install a module, and hence libtool would
install what it has for the DLNAME.  Or, if AIX is a special case,
maybe it could install BOTH the '.a' and '.so' on this platform?


On Wed, 12 Mar 2003, Robert Boehne wrote:

> Wayne,
> Under AIX 4.3 shared libraries do have flienames that end
> with ".a", however these are also dlopen'able.  Under AIX
> there are also "System V compatability" shared libraries
> or rtl (run time linking) libraries that have filenames
> ending with ".so".
> HTH,
> Robert Boehne
> Wayne Stewart wrote:
> >
> > Hi,
> >
> > I'm not sure if you would classify this as a 'bug' or an
> > enhancement request.
> >
> > Background:
> >
> > I am using libtool 1.4.3 (with automake 1.7.3 & autoconf 2.57) on
> > IBM AIX 4.3.2 (PowerPC).  As you know, shared libraries end in '.a'
> > on AIX, whereas dlopen'able modules end in '.so'.  I'm trying to
> > build the latter (a dlopen'able module - actually a Tcl extension,
> > which is essentially the same thing).  I use the following libtool
> > options in my Makefile.am: -module -no-undefined -avoid-version.
> >
> > Issue:
> >
> > When I 'make install' my module, only the '.a' (& .la) library
> > gets installed.  I've already specified that I'm trying to build
> > a module (via the -module option), so I don't understand why my
> > desired end-item (the .so file) does not get installed.
> >
> > Thanks,
> > ----
> >     Wayne
> >
> > _______________________________________________
> > Bug-libtool mailing list
> > address@hidden
> > http://mail.gnu.org/mailman/listinfo/bug-libtool

reply via email to

[Prev in Thread] Current Thread [Next in Thread]