Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

failed to build XML::Parser on AIX x64 machine ( bad magic at ../../AIX5.3_64/perl-5.8.8/lib/XSLoader.pm l ine 70. )

by sridhar84 (Novice)
on Oct 16, 2012 at 10:25 UTC ( #999278=perlquestion: print w/ replies, xml ) Need Help??
sridhar84 has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks, Need your help to resolve the following issue. We are not able to build XML:Parser module on Aix 6.1.0.0 x64 system(going fine on other platforms)

Compiler versions.

$ lslpp -l all|grep xlC

xlC.adt.include 11.1.0.0 COMMITTED C Set ++ Application

xlC.aix61.rte 11.1.0.1 COMMITTED XL C/C++ Runtime for AIX 6.1

xlC.cpp 9.0.0.0 COMMITTED C for AIX Preprocessor

xlC.msg.en_US.rte 11.1.0.1 COMMITTED XL C/C++ Runtime

xlC.rte 11.1.0.1 COMMITTED XL C/C++ Runtime

Can't load '../../AIX5.3_64/perl-5.8.8/lib/auto/File/Glob/Glob.so' for + module Fi le::Glob: readExports: bad magic at ../../AIX5.3_64/perl-5.8.8/lib/XSL +oader.pm l ine 70. at ../../AIX5.3_64/perl-5.8.8/lib/File/Glob.pm line 96 Compilation failed in require at ../../AIX5.3_64/perl-5.8.8/lib/ExtUti +ls/Command .pm line 61. BEGIN failed--compilation aborted at ../../AIX5.3_64/perl-5.8.8/lib/Ex +tUtils/Com mand.pm line 61. Compilation failed in require. BEGIN failed--compilation aborted. make: The error code from the last command is 255.

Comment on failed to build XML::Parser on AIX x64 machine ( bad magic at ../../AIX5.3_64/perl-5.8.8/lib/XSLoader.pm l ine 70. )
Download Code
Re: failed to build XML::Parser on AIX x64 machine ( bad magic at ../../AIX5.3_64/perl-5.8.8/lib/XSLoader.pm l ine 70. )
by syphilis (Canon) on Oct 16, 2012 at 10:35 UTC
    This looks like a problem with File::Glob, rather than a problem with XML::Parser.
    Can you successfully run a script that contains nothing other than use File::Glob;

    Cheers,
    Rob

      Hi Rob, Its successfully ran File::Glob. No errors reported.

Re: failed to build XML::Parser on AIX x64 machine ( bad magic at ../../AIX5.3_64/perl-5.8.8/lib/XSLoader.pm l ine 70. )
by Tanktalus (Canon) on Oct 17, 2012 at 21:53 UTC

    This looks odd to me. First you say you're running AIX 6.1, which is evidenced by the fact that xlC.aix61.rte is installed on your system (IIRC, it won't install on a 5.3 system).

    And then your paths have "AIX5.3_64" in there. Which means that this can't be the system perl. (And AIX 5.3 seems to have come with perl 5.8.2.) The system perl would be:

    $ /usr/opt/perl5/bin/perl5.8.8_64bit -le 'print for @INC' /usr/opt/perl5/lib64/5.8.8/aix-thread-multi-64all /usr/opt/perl5/lib64/5.8.8 /usr/opt/perl5/lib64/site_perl/5.8.8/aix-thread-multi-64all /usr/opt/perl5/lib64/site_perl/5.8.8 /usr/opt/perl5/lib64/site_perl .
    (Actually, until about 5 minutes ago, I didn't even realise there was a 64-bit perl installed, so thanks.)

    What this means is that I'm not sure I'm going to be able to replicate your issue very easily. On the other hand, my first suggestion is always to stop using the system perl anyway, and compile your own copy for your own use. It looks like you've already done that. I wonder if you recompiled the stack on AIX 6 if that would solve your problem. On the other hand, I'd suggest going to something a bit more recent ;-) - I have perl 5.16.1 passing all tests on AIX 7, I suspect this should work on AIX 6, too.

    What does "file ../../AIX5.3_64/perl-5.8.8/lib/auto/File/Glob/Glob.so" say? For the system perl, I get:

    $ file /usr/opt/perl5/lib64/5.8.8/aix-thread-multi-64all/auto/File/Glo +b/Glob.so /usr/opt/perl5/lib64/5.8.8/aix-thread-multi-64all/auto/File/Glob/Glob. +so: 64-bit XCOFF executable or object module not stripped
    so we'd want to compare here.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://999278]
Approved by sundialsvc4
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (12)
As of 2014-08-27 19:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (250 votes), past polls