Re: [xml] AIX 5.1: libxml2 linked statically, yet complains of missing ?

On Fri, Nov 12, 2004 at 04:49:48AM -0500, Daniel Veillard wrote:
On Thu, Nov 11, 2004 at 03:04:02PM -0600, Albert Chin wrote:
On Mon, Nov 01, 2004 at 10:20:24AM -0500, Parag Chandra wrote:
I don?t understand why it would be trying to load what appears to be
the shared library when I have linked against libxml2.a. In fact, I
cannot even locate the shared library; it doesn?t seem like it was
built. After doing a ?make install?, all I see in the lib/ subdir
are the following 4 files: libxml2.a,, pkgconfig,

The default shared library extension on AIX is `.a'. Look at /usr/lib.
You won't find many `.so' files. To have libtool create a `.so'
extension, set LDFLAGS="-Wl,-brtl" in your environment before

  hum, you mean that by default automake + libtools doesn't generate
AIX shared library correctly ? If yes that's scary. Might depend on
the version of AIX and tools too I assume.

        Last time I had a chance to play with AIX it wasn't libtool that had
the problem, at least not once I managed to get the right version of libtool
on the machine (sorry, I don't remember which one that is).
        However, there _is_ a problem if you happen to be using gnu binutils.
Unless a recent version fixed it, when building on AIX you need to use
the AIX linker, even if you're using gcc.
        btw, If you look closely enough there actually _are_ .so files.  They're
inside the .a's.  (at least for libtool built libraries.  system libraries
don't follow that convention)


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