Issue 14437: _io build fails on cygwin (original) (raw)
Created on 2012-03-29 10:42 by luch, last changed 2022-04-11 14:57 by admin. This issue is now closed.
| Messages (8) |
|
|
| msg157024 - (view) |
Author: Alexey Luchko (luch) |
Date: 2012-03-29 10:42 |
| $ 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' /Python-2.7.3rc2/Modules/_io/bufferedio.c:579: undefined reference to `__imp__PyExc_BlockingIOError' build/temp.cygwin-1.7.11-i686-2.7/Python-2.7.3rc2/Modules/_io/bufferedio.o: In function `_buffered_check_blocking_error': /Python-2.7.3rc2/Modules/_io/bufferedio.c:595: undefined reference to `__imp__PyExc_BlockingIOError' collect2: ld returned 1 exit status CYGWIN_NT-6.1-WOW64 ... 1.7.11(0.260/5/3) 2012-02-24 14:05 i686 Cygwin gcc version 4.5.3 (GCC) |
|
|
| msg157025 - (view) |
Author: Alexey Luchko (luch) |
Date: 2012-03-29 10:43 |
| The error got building Python 2.7.2 & 2.7.3rc2 |
|
|
| msg157029 - (view) |
Author: Alexey Luchko (luch) |
Date: 2012-03-29 11:08 |
| Checked solution by David Robinow http://mail.python.org/pipermail/python-list/2012-March/1290038.html It works. Diff follows: """ --- Modules/_io/_iomodule.h.orig 2012-03-16 03:26:36.000000000 +0200 +++ Modules/_io/_iomodule.h 2012-03-29 13:54:07.094187600 +0300 @@ -72,7 +72,7 @@ PyObject *filename; /* Not used, but part of the IOError object */ Py_ssize_t written; } PyBlockingIOErrorObject; -PyAPI_DATA(PyObject *) PyExc_BlockingIOError; +PyObject * PyExc_BlockingIOError; /* * Offset type for positioning. """ |
|
|
| msg157035 - (view) |
Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) *  |
Date: 2012-03-29 11:42 |
| The proposed patch is correct; no extension module should use PyAPI_ for its own symbols. |
|
|
| msg157231 - (view) |
Author: Roundup Robot (python-dev)  |
Date: 2012-03-31 21:58 |
| New changeset f96b603278cc by Antoine Pitrou in branch '3.2': Issue #14437: Fix building the _io module under Cygwin. http://hg.python.org/cpython/rev/f96b603278cc New changeset 6f8dd543d80a by Antoine Pitrou in branch '2.7': Issue #14437: Fix building the _io module under Cygwin. http://hg.python.org/cpython/rev/6f8dd543d80a |
|
|
| msg157232 - (view) |
Author: Antoine Pitrou (pitrou) *  |
Date: 2012-03-31 21:58 |
| Fix committed in 2.7 and 3.2. 3.3 shouldn't be affected. Thank you! |
|
|
| msg158461 - (view) |
Author: Alexey Luchko (luch) |
Date: 2012-04-16 15:06 |
| Final 2.7.3 didn't get the fix. Checked http://python.org/ftp/python/2.7.3/Python-2.7.3.tar.xz |
|
|
| msg158475 - (view) |
Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) *  |
Date: 2012-04-16 15:49 |
| Yes, the 2.7.3 branch was cut long before the fix (end of February) so it was not included. |
|
|
| History |
|
|
|
| Date |
User |
Action |
Args |
| 2022-04-11 14:57:28 |
admin |
set |
github: 58642 |
| 2012-04-16 15:49:29 |
amaury.forgeotdarc |
set |
messages: + |
| 2012-04-16 15:06:14 |
luch |
set |
messages: + |
| 2012-03-31 21:58:47 |
pitrou |
set |
status: open -> closedversions: - Python 3.3nosy: + pitroumessages: + resolution: fixedstage: commit review -> resolved |
| 2012-03-31 21:58:16 |
python-dev |
set |
nosy: + python-devmessages: + |
| 2012-03-29 16:06:52 |
pitrou |
set |
stage: commit reviewversions: + Python 3.2, Python 3.3 |
| 2012-03-29 11:42:40 |
amaury.forgeotdarc |
set |
nosy: + amaury.forgeotdarcmessages: + |
| 2012-03-29 11:08:36 |
luch |
set |
messages: + |
| 2012-03-29 10:43:47 |
luch |
set |
messages: + |
| 2012-03-29 10:42:09 |
luch |
create |
|