pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

devel/py-curses compilation error



In pkgsrc current with fresh update on amd64 NetBSD 8.0_RC1 I get this:

building '_curses' extension
gcc -DNDEBUG -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/include
-I/usr/pkg/include -O2 -D_FORTIFY_SOURCE=2 -I/usr/include
-I/usr/pkg/include -I/usr/include -I/usr/pkg/include -fPIC
-DHAVE_NCURSES_H -I/include -I/usr/pkg/include/python2.7 -c
Modules/_cursesmodule.c -o
build/temp.netbsd-8.0_RC1-amd64-2.7/Modules/_cursesmodule.o
Modules/_cursesmodule.c: In function 'PyCursesWindow_EchoChar':
Modules/_cursesmodule.c:676:44: error: dereferencing pointer to incomplete
type 'WINDOW {aka struct __window}'
 #define py_is_pad(win)      ((win) ? ((win)->_flags & _ISPAD) != 0 :
FALSE)
                                            ^
Modules/_cursesmodule.c:821:9: note: in expansion of macro 'py_is_pad'
     if (py_is_pad(self->win)) {
         ^
Modules/_cursesmodule.c:676:55: error: '_ISPAD' undeclared (first use in
this function)
 #define py_is_pad(win)      ((win) ? ((win)->_flags & _ISPAD) != 0 :
FALSE)
                                                       ^
Modules/_cursesmodule.c:821:9: note: in expansion of macro 'py_is_pad'
     if (py_is_pad(self->win)) {
         ^
Modules/_cursesmodule.c:676:55: note: each undeclared identifier is
reported only once for each function it appears in
 #define py_is_pad(win)      ((win) ? ((win)->_flags & _ISPAD) != 0 :
FALSE)
                                                       ^
Modules/_cursesmodule.c:821:9: note: in expansion of macro 'py_is_pad'
     if (py_is_pad(self->win)) {
         ^
Modules/_cursesmodule.c: In function 'PyCursesWindow_NoOutRefresh':
Modules/_cursesmodule.c:676:55: error: '_ISPAD' undeclared (first use in
this function)
 #define py_is_pad(win)      ((win) ? ((win)->_flags & _ISPAD) != 0 :
FALSE)
                                                       ^
Modules/_cursesmodule.c:1263:13: note: in expansion of macro 'py_is_pad'
         if (py_is_pad(self->win))
             ^
Modules/_cursesmodule.c: In function 'PyCursesWindow_Refresh':
Modules/_cursesmodule.c:676:55: error: '_ISPAD' undeclared (first use in
this function)
 #define py_is_pad(win)      ((win) ? ((win)->_flags & _ISPAD) != 0 :
FALSE)
                                                       ^
Modules/_cursesmodule.c:1406:13: note: in expansion of macro 'py_is_pad'
         if (py_is_pad(self->win))
             ^
Modules/_cursesmodule.c: In function 'PyCursesWindow_SubWin':
Modules/_cursesmodule.c:676:55: error: '_ISPAD' undeclared (first use in
this function)
 #define py_is_pad(win)      ((win) ? ((win)->_flags & _ISPAD) != 0 :
FALSE)
                                                       ^
Modules/_cursesmodule.c:1473:9: note: in expansion of macro 'py_is_pad'
     if (py_is_pad(self->win)) {
         ^
error: command 'gcc' failed with exit status 1
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/devel/py-curses
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/devel/py-curses


Request advice.

Mayuresh


Home | Main Index | Thread Index | Old Index