Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

failed to build XML::Parser on AIX x64 machine ( bad magic at ../../AIX5.3_64/perl-5.8.8/lib/ 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 x64 system(going fine on other platforms)

Compiler versions.

$ lslpp -l all|grep xlC

xlC.adt.include COMMITTED C Set ++ Application

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

xlC.cpp COMMITTED C for AIX Preprocessor

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

xlC.rte COMMITTED XL C/C++ Runtime

Can't load '../../AIX5.3_64/perl-5.8.8/lib/auto/File/Glob/' for + module Fi le::Glob: readExports: bad magic at ../../AIX5.3_64/perl-5.8.8/lib/XSL l ine 70. at ../../AIX5.3_64/perl-5.8.8/lib/File/ 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 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/ l ine 70. )
  • Download Code

Replies are listed 'Best First'.
Re: failed to build XML::Parser on AIX x64 machine ( bad magic at ../../AIX5.3_64/perl-5.8.8/lib/ l ine 70. )
by syphilis (Chancellor) 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;


      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/ 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/" say? For the system perl, I get:

    $ file /usr/opt/perl5/lib64/5.8.8/aix-thread-multi-64all/auto/File/Glo +b/ /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?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://999278]
Approved by sundialsvc4
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2017-02-22 13:32 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (327 votes). Check out past polls.