How to compile a 32 bit version python on a 64 bit linux platform
alexdboy at citiz.net
Sun Oct 28 10:54:10 CET 2007
I'm trying to build a 32 bit version Python from the source of Python 2.4.2 (later version is O.K. too) on a 64 bit platform "SUSE Linux Entrprise Server 10(x86_64) - Kernel 220.127.116.11-0.8-smp(5)".
I followed the common routine "1)./configure --enable-shared --with-threads 2)make clean; make". I succeeded in building Python.
The problem is that the resulting .h file and libraries are incompatible with my main program which was compiled using the gcc flag "-m32".
I've tried modifying the pyconfig.h (changing the size of void * from 8 to 4) and Makefile (adding -m32 to the CFLAGS) generated by running configure script, and then makeing. But this didn't work. Are there any flags I can use when running the ./configure to achieve the target. Any advice will be appreciated. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list