I have encountered numerous problems trying to install ExpatXS on Sun Solaris 9. I Have successfully installed XML-NamespaceSupport-1.08 and XML-Parser-2.34 (also installed expat-1.95.8) booth my perl and expat are installed into a non-default directory and seem to be working.

I have been doing most of my tests on version 1.04 since I am using that version currently under Linux but have confirmed the same errors trying to install version 1.08. When I run perl Makefile.PL I get the following

>perl Makefile.PL Note (probably harmless): No library found for -lexpat Do you want to alter ParserDetails.ini? [Y] Writing Makefile for XML::SAX::ExpatXS

Running make produces the following

> make gcc -c -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS= +64 -O -DVERSION=\"1.08\" -DXS_VERSION=\"1.08\" -fPIC "-I/mypath/pro +duct/perl-5.8.2/lib/5.8.2/sun4-solaris/CORE" ExpatXS.c ExpatXS.xs:21:19: expat.h: No such file or directory ExpatXS.xs:51: parse error before "XML_Parser" ExpatXS.xs:51: warning: no semicolon at end of struct or union … make: *** [ExpatXS.o] Error 1

While the perl Makefile.PL looks ok I thought the Note line might be the problem (not finding my expat so I also modified the Makefile.PL and changed  LIBS => '-lexpat' to LIBS => '-L/mypath/expat-1.95.8/lib' unforutunelty it did not help.

If I copy expat.h and expat_external.h to /mypath/product/perl-5.8.2/lib/5.8.2/sun4-solaris/CORE then make compiles but “make test” fails all the test with the following

PERL_DL_NONLAZY=1 /mypath/product/bin/perl "-MExtUtils::Command::MM" " +-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00basic.............Can't load '/mypath/test/XML-SAX-ExpatXS-1.08/bl +ib/arch/auto/XML/SAX/ExpatXS/ExpatXS.so' for module XML::SAX::ExpatXS +: ld.so.1: /mypath/product/bin/perl: fatal: relocation error: file /m +ypath/test/XML-SAX-ExpatXS-1.08/blib/arch/auto/XML/SAX/ExpatXS/ExpatX +S.so: symbol XML_GetErrorCode: referenced symbol not found at /mypath +/product/perl-5.8.2/lib/5.8.2/sun4-solaris/DynaLoader.pm line 229. at t/00basic.t line 4 Compilation failed in require at t/00basic.t line 4. BEGIN failed--compilation aborted at t/00basic.t line 4. # Failed test 1 in t/00basic.t at line 3 # t/00basic.t line 3 is: END { ok($loaded) } t/00basic.............dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED test 1

Any help getting ExaptXS to compile under Sun would be appreciated.


In reply to Problems with ExpatXS in Solaris 9 by amonroy

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.