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

M

mrstephengross

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 ([email protected])
 
D

Donn Cave

"mrstephengross said:
libpython2.4.a(pystate.o)(.text+0x1e0): In function
`PyThreadState_New':
C:/cygwin/home/Administrator/sgross/sage/installer/python/i386-mingw-gcc/Pytho
n-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.

Why would it seem that? Look for a recent thread here about
porting Python to LynxOS.

Donn Cave, (e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,158
Latest member
Vinay_Kumar Nevatia
Top