Compile 32bit C-lib on 64 bit
Benjamin Kaplan
benjamin.kaplan at case.edu
Sun May 1 22:15:20 EDT 2011
On Sun, May 1, 2011 at 4:14 PM, Hegedüs Ervin <airween at gmail.com> wrote:
> Hello,
>
> this is not a "clear" Python question - I've wrote a module in C,
> which uses a 3rd-party lib - it's a closed source, I just get the
> .so, .a and a header file.
>
> Looks like it works on 32bit (on my desktop), but it must be run
> on 64bit servers.
>
>
> When I'm compiling it on 64bit, gcc says:
>
> /usr/bin/ld: skipping incompatible /lib32/lib3rdpartyCrypt.so when searching for -l3rdpartyCrypt
>
> There _is_ the .so in /lib32 directory:
>
> ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV),
> dynamically linked, stripped
>
>
> What is the correct solution?
>
>
> thank you:
>
>
> a.
You cannot link a 64-bit binary against a 32- bit library. It just
won't work. If you can't get a 64-bit copy of that library, you'll
have to compile everything (including Python and all its dependencies)
as 32-bit.
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
More information about the Python-list
mailing list