473,406 Members | 2,816 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,406 software developers and data experts.

Building python 2.4.2 on Cygwin

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 'configure' fine, but gcc reports a compile error
when it gets to posixmodule.c. Here's the first few lines of the error
message:

==============================
gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I.
-I./Include -DPy_BUILD_CORE -c ./Modules/posixmodule.c -o
Modules/posixmodule.o
Modules/posixmodule.c:308: warning: function declaration isn't a
prototype
Modules/posixmodule.c: In function `posix_ttyname':
Modules/posixmodule.c:1162: warning: implicit declaration of function
`ttyname'
Modules/posixmodule.c:1162: warning: assignment makes pointer from
integer without a cast
Modules/posixmodule.c: In function `posix_mkdir':
Modules/posixmodule.c:1791: too many arguments to function `mkdir'
==============================

I've researched this a bit, and it sounds like cygwin gets all confused
about system includes and so on. Is there a good, comprehensive
explanation somewhere of how to make this all work? (Most of the
threads I've found are helpful, but not complete unfortunately).

Thanks,
--Steve (mr************@hotmail.com)

Feb 20 '06 #1
5 1473
Steve,

On Mon, Feb 20, 2006 at 12:24:34PM -0800, mrstephengross wrote:
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?)


Use "uname -r". What version are you running?

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6
Feb 20 '06 #2
> On Mon, Feb 20, 2006 at 12:24:34PM -0800, mrstephengross wrote:
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?)


Use "uname -r". What version are you running?


Uname tells me:

$ uname -r
1.5.18(0.132/4/2)

--Steve
Feb 21 '06 #3
Steve,

On Mon, Feb 20, 2006 at 11:49:06PM -0500, Stephen Gross wrote:
On Mon, Feb 20, 2006 at 12:24:34PM -0800, mrstephengross wrote:
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?)


Use "uname -r". What version are you running?


Uname tells me:

$ uname -r
1.5.18(0.132/4/2)


Just to be sure, what does the following indicate?

$ cygcheck -c cygwin

Sorry, but I cannot reproduce your problem under Cygwin 1.5.18.

BTW, can you use the pre-built Python 2.4.1 that is part of the standard
Cygwin distribution?

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6
Feb 21 '06 #4
>Just to be sure, what does the following indicate?
$ cygcheck -c cygwin
Cygwin Package Information
Package Version Status
cygwin 1.5.18-1 OK
BTW, can you use the pre-built Python 2.4.1 that is part of the standard

Cygwin distribution?

Nope--I need to do a custom python build for a very specific situation...

Thanks,
--Steve
Feb 21 '06 #5
Steve,

On Tue, Feb 21, 2006 at 09:31:48AM -0500, Stephen Gross wrote:
Just to be sure, what does the following indicate?

$ cygcheck -c cygwin
Cygwin Package Information
Package Version Status
cygwin 1.5.18-1 OK


Try reinstalling Cygwin 1.5.18 or upgrading to 1.5.19.

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6
Feb 21 '06 #6

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

Similar topics

2
by: Jörg Maier | last post by:
Hey guys, i have a big problem using Tkinter and pexpect in cygwin. i try to program an winscp-like rsync Program for all posix Platforms (linux, macosx, cygwin). i got a class SslConnection...
7
by: Carl Waldbieser | last post by:
I tried to adapt the instructions for building the M2Crypto module (http://sandbox.rulemaker.net/ngps/m2/INSTALL.html) to build a version compatible with Python2.3, but I've had some mixed results....
4
by: Andreou Giannis | last post by:
Allthough it is possible to build modules in Python2.3.3 and distutils with cygwin, by running: setup.py build --compiler=cygwin (after i created the libpython23.a) running: setup.py install...
2
by: Rich Krauter | last post by:
>(I am aware that there is a Windows version of Python. >But it expects the >Windows syntax for paths, not the Unix/SFU paths. And >for all I know there >are other incompatibilities as well.) ...
3
by: RMJ | last post by:
After installing Enthought's python and typing 'python' from within cygwin the program hangs with no output. I do not remember this being the case with earlier versions of Enthought python. Is...
2
by: mrstephengross | last post by:
Ok, I know there are already a million posts on this group about getting Python to build with MinGW. I've been through many of them, and have still not found a good comprehensive way to accomplish...
4
by: Lars | last post by:
Hi, I have problems building a simple handcoded C-extension (hello.c) with Cygwin and gcc3.4.4. I hope somebody has encountered the same problem before, and has some advice. The extension...
6
by: JW | last post by:
I have a lousy little Python extension, generated with the generous help of Pyrex. In Linux, things are simple. I compile the extension, link it against some C stuff, and *poof*! everything...
9
by: Endless Story | last post by:
My last version of Python was 2.4, running smoothly on XP with path c: \Python24 - no need even to include this path in PATH; everything worked as it's supposed to at the command line. Just...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.