[Top][All Lists]

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

AIX library creation for dynamic loading

From: Don Anderson
Subject: AIX library creation for dynamic loading
Date: Fri, 24 May 2002 01:17:14 -0400 (EDT)


I seek your advice on some weirdness I've noticed with AIX 4.3.3.  I
want to create a shared library for dynamic loading using libtool with
the -module option.  When the AIX linker (or something in the compiler
chain) creates the shared library, it is put into a .a file.  That is,
it creates libfoo.a, a static archive of one element, which is, and that shared object has an SONAME of
Apparently, the linker knows how to link and run against that animal
if you just wanted to link.  But if you want to dynamically load it
(say from java or Tcl), these programs cannot dlopen the .a.  So I
need to do a post-install step like this:

   $ ar xv libfoo.a
   x -
   $ ln -s

This gives me a that I can dlopen directly.

Anybody understand AIX?  Am I missing something basic here?
Do I need a post install step to accomplish my mission?

I don't think this is related, but I needed to patch libtool
to use the linker's -qmkshrobj rather than -Wl,-Bexport:foo.exp.
That's in order to all the symbols I needed exported.  I'll
submit that patch in a separate message.

- Don


        Don Anderson                    address@hidden
        Sleepycat Software Inc.         +1-978-287-4781
        118 Tower Rd.         
        Lincoln, MA 01773

reply via email to

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