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


Groups > comp.lang.python > #22281

Re: errors building python 2.7.3

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <drobinow@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.008
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'bash': 0.09; 'received :mail-lpp01m010-f46.google.com': 0.09; 'python': 0.11; 'subject:python': 0.12; 'cc:addr:python-list': 0.15; '-shared': 0.16; '2.7.2': 0.16; 'ncurses': 0.16; 'pyobject': 0.16; 'skip:` 30': 0.16; 'skip:b 70': 0.16; 'undefined': 0.16; "haven't": 0.17; 'wrote:': 0.21; 'function': 0.22; 'gcc': 0.22; 'header:In-Reply- To:1': 0.22; 'received:209.85.215.46': 0.23; 'wed,': 0.24; 'work.': 0.25; 'cc:no real name:2**0': 0.26; 'tried': 0.26; 'helpful': 0.27; 'message-id:@mail.gmail.com': 0.27; 'cc:addr:python.org': 0.27; 'seems': 0.28; "i've": 0.28; 'skip:` 20': 0.29; 'cc:2**0': 0.31; 'received:209.85': 0.32; 'received:google.com': 0.32; 'skip:/ 20': 0.33; "i'll": 0.34; 'received:209.85.215': 0.34; 'probably': 0.34; 'received:209': 0.35; 'there': 0.35; 'important.': 0.35; 'really': 0.36; 'reference': 0.36; 'but': 0.36; 'does': 0.36; 'list': 0.37; 'failed': 0.38; 'rather': 0.38; 'mailing': 0.39; 'mar': 0.61; 'skip:* 20': 0.63; '2012': 0.69; 'of:': 0.72; './configure': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=XphNC4peowoiEJ1Gxl9kCzLKtlyb6ouNoCulo5wSl2w=; b=pLLhsb1GY+IbgDUZgl/7MYLCU2fia1skpYQnOhqOdtll5/fqwuEnorutSG8KeFq1pZ PeXKmwaJec1S3NPuYXWxGi3lR0osiZRVfSQ6r1HnlY2KCSAS9WoEDzPDVkqZNkQNQHPR Fm/R4+BhNIo8DWZsWysI6tx6eDeb0EcY8LL1aX/ooNKtCc7xdkOOrAPFEy1jea4nD8qI rXELgeEwlUP7yCL6Ol3tLDXZsSJrsUUNld9htbTThdHg0ohzK9PO2QnfvBjQqHikZbpz O4rt+M7R86oJJpjAcqzEqd2Y0OW8oRMqUDrUTMWY8T83/EH4OjNMa3/NNUM13olfaZvS ieLA==
MIME-Version 1.0
In-Reply-To <4F72FAF9.8000802@ank-sia.com>
References <4F72FAF9.8000802@ank-sia.com>
Date Wed, 28 Mar 2012 11:42:55 -0400
Subject Re: errors building python 2.7.3
From David Robinow <drobinow@gmail.com>
To Alexey Luchko <luch@ank-sia.com>
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1080.1332949378.3037.python-list@python.org> (permalink)
Lines 43
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1332949378 news.xs4all.nl 6960 [2001:888:2000:d::a6]:60439
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:22281

Show key headers only | 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