From: Jean-Paul C. <ex...@di...> - 2008-09-24 18:14:27
|
On Tue, 23 Sep 2008 21:31:23 -0700 (PDT), Pravin Sinha <pks...@ya...> wrote: >Hi, > >PyOpenSSL, built on 32 bit Linux does not work on 64 bit Linux and vice-versa. I have a requirement where I should be able to share the lib built on one machine(either 32bit or 64 bit, whichever works) to work with both. Any Idea if I can achieve this. > >The error which I am getting while importing OpenSSL in python is: > >>>> import OpenSSL >Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "/test/OpenSSL/__init__.py", line 11, in ? > import rand, crypto, SSL, tsafe >ImportError: /test/OpenSSL/rand.so: cannot open shared object file: No such file or directory >_____________________________________________________________________ > >Appreciate your time and help >Regards, >-Pravin. > I don't think this is an issue unique to pyOpenSSL. This is how ELF shared objects work. I looked around a bit to try to find some documentation on a way to build a combined 32/64 bit ELF library but I didn't find much. I'm not even sure it's possible; you may want to investigate that further. If you can figure out how to do it, then you can try building pyOpenSSL's extension modules manually however is appropriate. `setup.py build_ext´ allows a little customization, but I suspect not enough for this. Jean-Paul |