doug has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to get ARSperl to work with with the 64 bit perl that came with RHEL5. ARSperl has an XS wrapper to a proprietary .so that the vendor only releases as 32 bit. The ARSperl mailing list indicates that the work around is to compile a 32 bit version of perl, but I'd rather stick with the perl came with RHEL5. Are there any tricks to getting XS to these conversions?

Any ideas would be appreciated.

Replies are listed 'Best First'.
Re: using 32 bit .so with 64 bit perl
by almut (Canon) on Oct 01, 2008 at 19:02 UTC

    Unfortunately, you generally can't mix 32-bit and 64-bit code in one process, which means that a 64-bit Perl binary (or the respective XS code) simply isn't able to load a 32-bit shared library.  In other words, there is no (or no sensibly easy) way around having to use a 32-bit Perl.