in reply to XCOFF32 object files are not allowed in 64-bit mode

Please help me resolve this compatibility issue FYI- $perl -V:ptrsize ptrsize='4';

Did you specifically want a 32-bit perl ?
If not, I would try building a 64-bit perl - just give configure the -Dcc="gcc -m64" arg (or whatever is equivalent for your particular case - maybe -Dcc="cc -q64" by the looks of it).

I kept on striking problems with my 32-bit builds of perl on Debian (though they *do* build Digest-SHA-5.95 ok). In the end I just settled for 64-bit builds of perl, which was my preferred option anyway.

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: XCOFF32 object files are not allowed in 64-bit mode
by snemmal (Novice) on Feb 02, 2016 at 13:43 UTC
    Thanks much for looking at this.. is there any alternative which dont make me remove perl 32 and install perl 64 and solve this situation... Also, if i had to move to perl 64., how can i get all my installed modules in 32-bit env.. again i need to install them?

      According to this random manpage for ld, maybe you can/have to add -b32 to the LD= line in Makefile to make ld work in 32-bit mode.

      If that works, you can either explicitly reconfigure and recompile your perl (and all modules) to have the -b32 parameter in the LD invocation or you can try patching lib/Config_heavy.pl and add the -b32 there and pray that everything still works.

        Thanks Guys for your help.. Finally i got one solution... instead of using perl modules that are built with 'C' language, i now use built-in perl module... in this case it is "Digest::SHA::PurePerl module." Now there is no overhead of 32-bit/64-bit... (may be this solution is bit slow, but satisfied my hunger from last 2 days) :-)