amonroy has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problems with ExpatXS in Solaris 9
by Anonymous Monk on May 28, 2005 at 12:05 UTC | |
|
Re: Problems with ExpatXS in Solaris 9
by blahblahblah (Priest) on May 28, 2005 at 14:09 UTC | |
|
Re: Problems with ExpatXS in Solaris 9
by tchatzi (Acolyte) on May 28, 2005 at 10:33 UTC |