Building python 2.4.2 on Cygwin

mrstephengross mrstephengross at hotmail.com
Mon Feb 20 15:24:34 EST 2006


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 (mrstephengross at hotmail.com)




More information about the Python-list mailing list