This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients bobatkins, jackjansen, jprante, lemburg, loewis, pitrou, rpetrov, sergiodj, spacey
Date 2009-10-30.22:12:11
SpamBayes Score 1.0340184e-10
Marked as misclassified No
Message-id <1256940735.19.0.0584004423161.issue1628484@psf.upfronthosting.co.za>
In-reply-to
Content
First, the current patch doesn't apply cleanly to trunk. The following
patch should be ok (some of the changes of the original patch apparently
have been committed separately in the meantime).

Second, the patch allows me to do a 32-bit build (under 64-bit Linux) by
doing:
  CFLAGS=-m32 LDFLAGS=-m32 ./configure
rather than:
  CC="gcc -m32" ./configure
However, if I omit LDFLAGS it doesn't work, I don't know if it's intended.

Third, while the 32-bit build does work, the shared objects are still
placed in a directory called "lib.linux-x86_64-2.7", which I suppose is
wrong:

$ ./python
Python 2.7a0 (trunk:75966:75967M, Oct 30 2009, 22:55:18) 
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import _socket
>>> _socket.__file__
'/home/antoine/cpython/__svn__/build/lib.linux-x86_64-2.7/_socket.so'

$ file /home/antoine/cpython/__svn__/build/lib.linux-x86_64-2.7/_socket.so
/home/antoine/cpython/__svn__/build/lib.linux-x86_64-2.7/_socket.so: ELF
32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically
linked, not stripped
History
Date User Action Args
2009-10-30 22:12:15pitrousetrecipients: + pitrou, lemburg, loewis, jackjansen, bobatkins, sergiodj, spacey, rpetrov, jprante
2009-10-30 22:12:15pitrousetmessageid: <1256940735.19.0.0584004423161.issue1628484@psf.upfronthosting.co.za>
2009-10-30 22:12:13pitroulinkissue1628484 messages
2009-10-30 22:12:12pitroucreate