bryan@bman2 pyncurses-0.3 $ python setup.py install
running install
running build
running build_py
creating build
creating build/lib.linux-i686-2.2
creating build/lib.linux-i686-2.2/ncurses
copying ncurses/__init__.py ->
build/lib.linux-i686-2.2/ncurses
copying ncurses/curses.py ->
build/lib.linux-i686-2.2/ncurses
copying ncurses/form.py -> build/lib.linux-i686-2.2/ncurses
copying ncurses/menu.py -> build/lib.linux-i686-2.2/ncurses
copying ncurses/panel.py ->
build/lib.linux-i686-2.2/ncurses
running build_ext
warning: build_ext: old-style (ext_name, build_info)
tuple found in
ext_modules for extension 'ncurses._curses'-- please
convert to Extension
instance
warning: build_ext: old-style (ext_name, build_info)
tuple found in
ext_modules for extension 'ncurses._panel'-- please
convert to Extension
instance
warning: build_ext: old-style (ext_name, build_info)
tuple found in
ext_modules for extension 'ncurses._menu'-- please
convert to Extension
instance
warning: build_ext: old-style (ext_name, build_info)
tuple found in
ext_modules for extension 'ncurses._form'-- please
convert to Extension
instance
building 'ncurses._curses' extension
creating build/temp.linux-i686-2.2
gcc -DNDEBUG -fPIC -I/usr/include/python2.2 -c
ncurses/_curses_wrap.c -o
build/temp.linux-i686-2.2/_curses_wrap.o
ncurses/_curses_wrap.c:1139: error: conflicting types
for `keyname'
/usr/include/curses.h:584: error: previous declaration
of `keyname'
ncurses/_curses_wrap.c:1150: error: conflicting types
for `newterm'
/usr/include/curses.h:644: error: previous declaration
of `newterm'
ncurses/_curses_wrap.c:1200: error: conflicting types
for `tigetflag'
/usr/include/curses.h:709: error: previous declaration
of `tigetflag'
ncurses/_curses_wrap.c:1201: error: conflicting types
for `tigetnum'
/usr/include/curses.h:710: error: previous declaration
of `tigetnum'
ncurses/_curses_wrap.c:1202: error: conflicting types
for `tigetstr'
/usr/include/curses.h:711: error: previous declaration
of `tigetstr'
ncurses/_curses_wrap.c:1207: error: conflicting types
for `vwprintw'
/usr/include/curses.h:723: error: previous declaration
of `vwprintw'
ncurses/_curses_wrap.c:1208: error: conflicting types
for `vwscanw'
/usr/include/curses.h:725: error: previous declaration
of `vwscanw'
ncurses/_curses_wrap.c:1255: error: conflicting types
for `_tracechar'
/usr/include/curses.h:1195: error: previous declaration
of `_tracechar'
==============================================================================
Then
after reading the README (which also referenced a
'INSTALL' file that was no where to be seen), I did this:
==============================================================================
bryan@bman2 pyncurses-0.3 $ debian/apply-patch.sh
patching file ncurses/_curses.i
patching file ncurses/_curses_wrap.c
patching file ncurses/_panel.i
patching file ncurses/_panel_wrap.c
patching file ncurses/ncurses_new.h
patching file setup.py
==============================================================================
bryan@bman2 pyncurses-0.3 $ python setup.py install
running install
running build
running build_py
not copying ncurses/__init__.py (output up-to-date)
not copying ncurses/curses.py (output up-to-date)
not copying ncurses/form.py (output up-to-date)
not copying ncurses/menu.py (output up-to-date)
not copying ncurses/panel.py (output up-to-date)
running build_ext
warning: build_ext: old-style (ext_name, build_info)
tuple found in
ext_modules for extension 'ncurses._curses'-- please
convert to Extension
instance
warning: build_ext: old-style (ext_name, build_info)
tuple found in
ext_modules for extension 'ncurses._panel'-- please
convert to Extension
instance
warning: build_ext: old-style (ext_name, build_info)
tuple found in
ext_modules for extension 'ncurses._menu'-- please
convert to Extension
instance
warning: build_ext: old-style (ext_name, build_info)
tuple found in
ext_modules for extension 'ncurses._form'-- please
convert to Extension
instance
building 'ncurses._curses' extension
gcc -DNDEBUG -fPIC -I./ncurses -I/usr/include/python2.2 -c
ncurses/_curses_wrap.c -o
build/temp.linux-i686-2.2/_curses_wrap.o
In file included from ncurses/ncurses_new.h:71,
from ncurses/_curses_wrap.c:577:
/usr/include/unctrl.h:57: error: syntax error before
"unctrl"
error: command 'gcc' failed with exit status 1
==============================================================================
bryan@bman2 pyncurses-0.3 $ python
Python 2.2.3 (#1, Sep 15 2003, 15:48:29)
[GCC 3.3.1 20030904 (Gentoo Linux 3.3.1-r1, propolice)]
on linux2
Logged In: YES
user_id=13339
For what it's worth, I have the same issue on Red Hat Linux 9