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

Hello Parag,

Sorry for this late anwser.

I don't think the problem comes from libxml2.
On AIX, the .a is an archive that contains "objects".
These objects can be shared (it's what you call a shared library) or
static. Actually, it seems your libxml2.a contains a shared objects that is
named . To know what's inside your libxml2.a, run dump -ov libxml2.a.
Look at the field 'Flags'. If it contains SHROBJ, then your libxml2.a contains
shared object(s).

So, what is happening on your system is (I think) that your executable 'tv' has
been linked dynamically against libxml2.a and the dynamic linker doesn't find
libxml2.a. So, try setting the variable LIBPATH to the place where libxml2.a is
and run tv again.



Selon Daniel Veillard <veillard redhat com>:

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.


Daniel Veillard      | Red Hat Desktop team
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine
xml mailing list, project page
xml gnome org

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