On Sat, 2004-10-30 at 13:01 -0700, Neil Watkiss wrote: > Brian Millett [12/10/04 14:53 -0500]: > > Hello, I have an inline::c app that works just fine on a 32-bit linux > > box. The problem I have is trying to get it installed/working on a > > x86-64 SuSE 9.1 pro box. The inline::c app is a wrapper around a > > 32-bit third party library (closed source) > > I've never had the pleasure of playing on a 64-bit Linux machine, but my > desktop at work is a 64-bit Solaris 9 machine. It can build and run both 32- > and 64-bit code, but not in the same application. IOW, a 64-bit perl cannot > load a 32-bit shared library. > > We had very much the same problem as you, it seems: we had a third-party > 32-bit library and a 64-bit perl, and we were trying to get them to talk. In > the end, Sun documentation convinced us it was impossible, and we gave up. > > We now talk through a socket. We have a tiny 32-bit C executable linked > against the library that implements a socket and an accept() loop. On the > other side is our 64-bit perl, with a correspondingly tiny perl module doing > a connect/send loop. > > If you have the luxury of requiring an additional 32-bit perl installation, > you could always write the bindings in the 32-bit perl, and talk through a > socket to the 64-bit perl. That makes it slightly simpler.
Neil, thanks for the reply. What I ended up doing, was to make a hybrid out of my SuSE 9.1 perl. On the x86_64 box, the perl @INC has '/usr/lib/perl5/5.8.3/x86_64-linux-thread-multi. On a i586 SuSE 9.1 box, it has '/usr/lib/perl5/5.8.3/i586-linux-thread-multi'. Since the x86_64 box will execute i586 code, I copied the perl from the i586 box to /usr/bin/perl32 on the x86_64 box. Then I copied the /usr/lib/perl5/5.8.3/i586-linux-thread-multi from the i586 box to the x86_64 box /usr/lib/perl5/5.8.3/i586-linux-thread-multi. So I can run perl32 or perl and the inline::c works great. I elected to use XMLRPC::Lite and setup a server running the 32 bit code which I can call from the 64 bit code with no problem. I love perl. -- Brian Millett - [ Elric (to Londo), "The Geometry of Shadows"] "I'm afraid you're going to have to spend the rest of your life paying for your mistakes."
signature.asc
Description: This is a digitally signed message part
