473,398 Members | 2,113 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

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

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 (mr************@hotmail.com)

Feb 21 '06 #1
1 1557

mrstephengross wrote:
I'm working on building python 2.4.2 with the mingw compiler (on
cygwin).


Try following the instructions on the pyMinGW site:

http://jove.prohosting.com/iwave/ipython/pyMinGW.html

Ross Ridge

Feb 21 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Phil Frost | last post by:
Greetings all. I'm attempting to embed a python interpreter at a very low level in an OS I am writing. Currently I'm stuck with build issues. Firstly, as there is no working C compiler in our OS, I...
5
by: Heuguette Bostic | last post by:
I am attempting to compile Python 2-3.4 on Tru64 UNIX V4.0F. Whenever Iissue the make command, the following errors are output: -pthread -ieee -std -Olimit 1500 -DNDEBUG -O -I. -I./Include...
1
by: Jerald | last post by:
Running python 2.3.4 on valgrind (a tool like purify which checks the use of uninitialized memory, etc), gives a lot of errors. See below. jfj@cluster:~/> python -V Python 2.3.4...
6
by: smurphus | last post by:
Hi All- I'm trying to build Python 2.4.2 on OSX 10.4.3 (gcc ver. 3.3 apple build 1495) and have the following error when running 'make': gcc -fno-strict-aliasing -Wno-long-double...
1
by: Micheal.LeVine | last post by:
I have not succeeded to build Python 2.4.2 from the source distn for Cygwin on XP (cygwin1.dll version 1005.7.0.0, Cygwin POSIX Emulation DLL). I have applied the "bandaid solution" in README, ...
10
by: Larry Hastings | last post by:
I'm an indie shareware Windows game developer. In indie shareware game development, download size is terribly important; conventional wisdom holds that--even today--your download should be 5MB or...
5
by: mrstephengross | last post by:
Ok, I'm working on building python 2.4.2 on cygwin. I *think* it's version 3.0 or 3.1 (is there a quick way to find out what version of cygwin is running within a shell?) Anyway, it appears to...
1
by: mrstephengross | last post by:
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...
0
by: zhouyangpku | last post by:
Dear friends: I'm trying to install python on irix 6, the lab server. It fail at ' make ' procedure for Modules/posixmodule.c. I've just configured the prefix for my own path and no other option...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.