Is there a way to build python without 'posixmodule' ?

mrstephengross mrstephengross at hotmail.com
Tue Feb 21 12:02:53 EST 2006


I'm working on building python 2.4.2 with the mingw compiler (on
cygwin). It runs into problems with Modules/posixmodule.c, because the
mingw compiler does *not* provide complex process management
functionality. I can exclude posixmodule.c from the python build
process, but gcc still fails when it tries to link together the python
executable:

(Error message follows)
=================================
gcc -mno-cygwin  -Wl,--out-implib=libpython2.4.dll.a -o python.exe \
                Modules/python.o \
                libpython2.4.a    -lm
libpython2.4.a(pystate.o)(.text+0x1e0): In function
`PyThreadState_New':
C:/cygwin/home/Administrator/sgross/sage/installer/python/i386-mingw-gcc/Python-2.4.2/Python/pystate.c:191:
undefined reference to `_PyGILState_NoteThreadState'
===================================

It would seem that the python executable is looking for the process
management functionality that *would* have been supplied by
posixmodule.o.

Is there a way around this? Can I build the python executable without
building posixmodule.o?

Thanks,
--Steve (mrstephengross at hotmail.com)




More information about the Python-list mailing list