For Programmers: Free Programming Magazines  


Home > Archive > PERL Miscellaneous > October 2004 > Calling 32 bit libraries on an x86_64 in 64 bit mode









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Calling 32 bit libraries on an x86_64 in 64 bit mode
Alan

2004-10-28, 3:56 am


I have a set of proprietary libraries that are i386 compiled code under
Linux. They are called from a perl module.

This worked fine until we moved to a dual AMD64 system. Now it is choking
in DynamicLoader.pm.

Is there a clean way to call a 32 bit shared library from a 64 bit version
of Perl? Is there some sort of option to get XS to emulate a 32 bit mode
or is it just bjorken?

Michael Vilain

2004-10-28, 3:56 am

In article <pan.2004.10.28.03.44.48.936286@fnordora.org>,
Alan <alan@fnordora.org> wrote:

> I have a set of proprietary libraries that are i386 compiled code under
> Linux. They are called from a perl module.
>
> This worked fine until we moved to a dual AMD64 system. Now it is choking
> in DynamicLoader.pm.
>
> Is there a clean way to call a 32 bit shared library from a 64 bit version
> of Perl? Is there some sort of option to get XS to emulate a 32 bit mode
> or is it just bjorken?


No, there isn't. Leastways, this is a restriction on Solaris. You have
to compile the libraries in 64-bit mode or build perl as a 32-bit
application to get compatibility.

Mixing the modes probably won't work.

--
DeeDee, don't press that button! DeeDee! NO! Dee...



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com