Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #22281

Re: errors building python 2.7.3

References <4F72FAF9.8000802@ank-sia.com>
Date 2012-03-28 11:42 -0400
Subject Re: errors building python 2.7.3
From David Robinow <drobinow@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1080.1332949378.3037.python-list@python.org> (permalink)

Show all headers | View raw


On Wed, Mar 28, 2012 at 7:50 AM, Alexey Luchko <luch@ank-sia.com> wrote:
> I've tried to build Python 2.7.3rc2 on cygwin and got the following errors:
>
> $ CFLAGS=-I/usr/include/ncursesw/ CPPFLAGS=-I/usr/include/ncursesw/
> ./configure
 I haven't tried 2.7.3 yet, so I'll describe my experience with 2.7.2
 I use /usr/include/ncurses   rather than /usr/include/ncursesw
 I don't remember what the difference is but ncurses seems to work.

> $ make
> ...
> gcc -shared -Wl,--enable-auto-image-base
> build/temp.cygwin-1.7.11-i686-2.7/Python-2.7.3rc2/Modules/_io/bufferedio.o
> build/temp.cygwin-1.7.11-i686-2.7/Python-2.7.3rc2/Modules/_io/bytesio.o
> build/temp.cygwin-1.7.11-i686-2.7/Python-2.7.3rc2/Modules/_io/fileio.o
> build/temp.cygwin-1.7.11-i686-2.7/Python-2.7.3rc2/Modules/_io/iobase.o
> build/temp.cygwin-1.7.11-i686-2.7/Python-2.7.3rc2/Modules/_io/_iomodule.o
> build/temp.cygwin-1.7.11-i686-2.7/Python-2.7.3rc2/Modules/_io/stringio.o
> build/temp.cygwin-1.7.11-i686-2.7/Python-2.7.3rc2/Modules/_io/textio.o
> -L/usr/local/lib -L. -lpython2.7 -o build/lib.cygwin-1.7.11-i686-2.7/_io.dll
> build/temp.cygwin-1.7.11-i686-2.7/Python-2.7.3rc2/Modules/_io/bufferedio.o:
> In function `_set_BlockingIOError':
> /Python-2.7.3rc2/Modules/_io/bufferedio.c:579: undefined reference to
> `__imp__PyExc_BlockingIOError'

In Modules/_io/_iomodule.h, use:
PyObject *PyExc_BlockingIOError;
instead of:
PyAPI_DATA(PyObject *) PyExc_BlockingIOError;

> Failed to build these modules:
> _curses            _io
>

But please note that Cygwin does not support Python-2.7. There may be
other reasons.
I don't really use cygwin Python for anything important. It's just
nice to have around since I spend a lot of time in the bash shell.
It would probably be helpful to ask on the Cygwin mailing list

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: errors building python 2.7.3 David Robinow <drobinow@gmail.com> - 2012-03-28 11:42 -0400

csiph-web