Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

errors building python 2.7.3

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


luch at ank-sia

Mar 28, 2012, 4:50 AM

Post #1 of 8 (982 views)
Permalink
errors building python 2.7.3

Hi!

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
$ 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

building '_curses' extension
gcc -fno-strict-aliasing -I/usr/include/ncursesw/ -DNDEBUG -g -fwrapv -O3
-Wall -Wstrict-prototypes -I. -IInclude -I./Include
-I/usr/include/ncursesw/ -I/Python-2.7.3rc2/Include -I/Python-2.7.3rc2 -c
/Python-2.7.3rc2/Modules/_cursesmodule.c -o
build/temp.cygwin-1.7.11-i686-2.7/Python-2.7.3rc2/Modules/_cursesmodule.o
/Python-2.7.3rc2/Modules/_cursesmodule.c: In function
‘PyCursesWindow_EchoChar’:
/Python-2.7.3rc2/Modules/_cursesmodule.c:810:18: error: dereferencing
pointer to incomplete type
/Python-2.7.3rc2/Modules/_cursesmodule.c: In function
‘PyCursesWindow_NoOutRefresh’:
/Python-2.7.3rc2/Modules/_cursesmodule.c:1238:22: error: dereferencing
pointer to incomplete type
/Python-2.7.3rc2/Modules/_cursesmodule.c: In function ‘PyCursesWindow_Refresh’:
/Python-2.7.3rc2/Modules/_cursesmodule.c:1381:22: error: dereferencing
pointer to incomplete type
/Python-2.7.3rc2/Modules/_cursesmodule.c: In function ‘PyCursesWindow_SubWin’:
/Python-2.7.3rc2/Modules/_cursesmodule.c:1448:18: error: dereferencing
pointer to incomplete type
/Python-2.7.3rc2/Modules/_cursesmodule.c: In function ‘PyCursesWindow_Refresh’:
/Python-2.7.3rc2/Modules/_cursesmodule.c:1412:1: warning: control reaches
end of non-void function
/Python-2.7.3rc2/Modules/_cursesmodule.c: In function
‘PyCursesWindow_NoOutRefresh’:
/Python-2.7.3rc2/Modules/_cursesmodule.c:1270:1: warning: control reaches
end of non-void function
/Python-2.7.3rc2/Modules/_cursesmodule.c: In function
‘PyCursesWindow_EchoChar’:
/Python-2.7.3rc2/Modules/_cursesmodule.c:817:1: warning: control reaches
end of non-void function

...

Failed to build these modules:
_curses _io



Then tried to see if the problem is sovled, fetched the source from
https://bitbucket.org/python_mirrors/releasing-2.7.3 and got another one:

$ CFLAGS=-I/usr/include/ncursesw/ CPPFLAGS=-I/usr/include/ncursesw/ ./configure
$ make
gcc -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
-I/usr/include/ncursesw/ -I. -I./Include -I/usr/include/ncursesw/
-DPy_BUILD_CORE -c ./Modules/signalmodule.c -o Modules/signalmodule.o
./Modules/signalmodule.c: In function ‘fill_siginfo’:
./Modules/signalmodule.c:734:5: error: ‘siginfo_t’ has no member named
‘si_band’
Makefile:1456: recipe for target `Modules/signalmodule.o' failed
make: *** [Modules/signalmodule.o] Error 1


Reporting here, because bugs.python.org refuses connections currently.

Just in case
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)

--
Alex
--
http://mail.python.org/mailman/listinfo/python-list


luch at ank-sia

Mar 28, 2012, 7:39 AM

Post #2 of 8 (974 views)
Permalink
Re: errors building python 2.7.3 [In reply to]

On 28.03.2012 14:50, Alexey Luchko wrote:
> Hi!
>
> 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
> $ 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
>
> building '_curses' extension
> gcc -fno-strict-aliasing -I/usr/include/ncursesw/ -DNDEBUG -g -fwrapv -O3
> -Wall -Wstrict-prototypes -I. -IInclude -I./Include
> -I/usr/include/ncursesw/ -I/Python-2.7.3rc2/Include -I/Python-2.7.3rc2 -c
> /Python-2.7.3rc2/Modules/_cursesmodule.c -o
> build/temp.cygwin-1.7.11-i686-2.7/Python-2.7.3rc2/Modules/_cursesmodule.o
> /Python-2.7.3rc2/Modules/_cursesmodule.c: In function
> ‘PyCursesWindow_EchoChar’:
> /Python-2.7.3rc2/Modules/_cursesmodule.c:810:18: error: dereferencing
> pointer to incomplete type
> /Python-2.7.3rc2/Modules/_cursesmodule.c: In function
> ‘PyCursesWindow_NoOutRefresh’:
> /Python-2.7.3rc2/Modules/_cursesmodule.c:1238:22: error: dereferencing
> pointer to incomplete type
> /Python-2.7.3rc2/Modules/_cursesmodule.c: In function
> ‘PyCursesWindow_Refresh’:
> /Python-2.7.3rc2/Modules/_cursesmodule.c:1381:22: error: dereferencing
> pointer to incomplete type
> /Python-2.7.3rc2/Modules/_cursesmodule.c: In function ‘PyCursesWindow_SubWin’:
> /Python-2.7.3rc2/Modules/_cursesmodule.c:1448:18: error: dereferencing
> pointer to incomplete type
> /Python-2.7.3rc2/Modules/_cursesmodule.c: In function
> ‘PyCursesWindow_Refresh’:
> /Python-2.7.3rc2/Modules/_cursesmodule.c:1412:1: warning: control reaches
> end of non-void function
> /Python-2.7.3rc2/Modules/_cursesmodule.c: In function
> ‘PyCursesWindow_NoOutRefresh’:
> /Python-2.7.3rc2/Modules/_cursesmodule.c:1270:1: warning: control reaches
> end of non-void function
> /Python-2.7.3rc2/Modules/_cursesmodule.c: In function
> ‘PyCursesWindow_EchoChar’:
> /Python-2.7.3rc2/Modules/_cursesmodule.c:817:1: warning: control reaches
> end of non-void function
>
> ...
>
> Failed to build these modules:
> _curses _io

The same happens with Python 2.7.2.


> 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)


--
Alex
--
http://mail.python.org/mailman/listinfo/python-list


colton.myers at gmail

Mar 28, 2012, 8:11 AM

Post #3 of 8 (957 views)
Permalink
Re: errors building python 2.7.3 [In reply to]

>
> Reporting here, because bugs.python.org refuses connections currently.
>

bugs.python.org seems to be back up, I'd repost there if you haven't
already.

--
Colton Myers


drobinow at gmail

Mar 28, 2012, 8:42 AM

Post #4 of 8 (967 views)
Permalink
Re: errors building python 2.7.3 [In reply to]

On Wed, Mar 28, 2012 at 7:50 AM, Alexey Luchko <luch [at] ank-sia> 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
--
http://mail.python.org/mailman/listinfo/python-list


luch at ank-sia

Mar 29, 2012, 3:49 AM

Post #5 of 8 (958 views)
Permalink
Re: errors building python 2.7.3 [In reply to]

JFI

Reported as
http://bugs.python.org/issue14437
http://bugs.python.org/issue14438

--
Regars,
Alex
--
http://mail.python.org/mailman/listinfo/python-list


luch at ank-sia

Mar 29, 2012, 3:55 AM

Post #6 of 8 (959 views)
Permalink
Re: errors building python 2.7.3 [In reply to]

On 28.03.2012 18:42, David Robinow wrote:
> On Wed, Mar 28, 2012 at 7:50 AM, Alexey Luchko<luch [at] ank-sia> 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.

I've tried ncurses too. It does not matter.


--
Alex
--
http://mail.python.org/mailman/listinfo/python-list


drobinow at gmail

Mar 29, 2012, 11:29 AM

Post #7 of 8 (960 views)
Permalink
Re: errors building python 2.7.3 [In reply to]

On Thu, Mar 29, 2012 at 6:55 AM, Alexey Luchko <luch [at] ank-sia> wrote:
> On 28.03.2012 18:42, David Robinow wrote:
>> On Wed, Mar 28, 2012 at 7:50 AM, Alexey Luchko<luch [at] ank-sia> 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.
>
> I've tried ncurses too. It does not matter.
Have you included the patch to Include/py_curses.h ?
If you don't know what that is, download the cygwin src package for
Python-2.6 and look at the patches. Not all of them are still
necessary for 2.7 but some are.
--
http://mail.python.org/mailman/listinfo/python-list


luch at ank-sia

Mar 30, 2012, 4:41 AM

Post #8 of 8 (964 views)
Permalink
Re: errors building python 2.7.3 [In reply to]

On 29.03.2012 21:29, David Robinow wrote:
> Have you included the patch to Include/py_curses.h ?
> If you don't know what that is, download the cygwin src package for
> Python-2.6 and look at the patches. Not all of them are still

Thanks for the hint. With cygwin's 2.6.5-ncurses-abi6.patch it works with
both ncurses and ncursesw.

--
Alex
--
http://mail.python.org/mailman/listinfo/python-list

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.