Are both your installed LibXML and perl 64bit builds? One of the problems on AIX is that you cannot see from the presence of a lib if it is a 32bit lib or a 64bit lib.

If e.g. you are using a 64bit perl build which once worked with a libxml2.a that contained a 64bit set of objects, and then "upgraded" LibXML to a newer version that only shipped a 32bit set of objects (or you installed it by hand and thereby unknowingly removed the 64bit set of objects), then you will not be able to get this to work.

$ file libxml2.a libxml2.a: archive (big format) $ ar -X32 -tv libxml2.a $ ar -X64 -tv libxml2.a rwxrwxrwx 203/200 2822289 May 12 13:23 2012 libxml2.so.2 $

In this example, my libxml2.a *only* contains 64bit objects.

You can check if everything would theoretically be able to load:

$ perl -MV=XML::LibXML XML::LibXML /pro/lib/perl5/site_perl/5.14.2/aix-64all/XML/LibXML.pm: 2.010 +3 $ ldd /pro/lib/perl5/site_perl/5.14.2/aix-64all/auto/XML/LibXML/LibXML +.so /pro/lib/perl5/site_perl/5.14.2/aix-64all/auto/XML/LibXML/LibXML.so ne +eds: /usr/lib/libc.a(shr_64.o) /pro/local/lib/libxml2.a(libxml2.so.2) /unix /usr/lib/libcrypt.a(shr_64.o) /usr/lib/libiconv.a(shr4_64.o) /usr/lib/libpthread.a(shr_xpg5_64.o) $

Note the added /auto/. If ldd does not report any problems, chances are you will be able to use XML::LibXML.


Enjoy, Have FUN! H.Merijn

In reply to Re^3: LibXML version by Tux
in thread LibXML version by sathya83aa

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.