Running ubuntu 16.04, PHP-7 cli, trying to install ncurses.
The "sudo pecl install ncurses" is failing,
"/tmp/pear/temp/ncurses/ncurses.c:36:37: error: unknown type name
‘zend_rsrc_list_entry’
static void ncurses_destruct_window(zend_rsrc_list_entry *rsrc TSRMLS_DC)
^
/tmp/pear/temp/ncurses/ncurses.c:45:36: error: unknown type name
‘zend_rsrc_list_entry’
static void ncurses_destruct_panel(zend_rsrc_list_entry *rsrc TSRMLS_DC)
^
/tmp/pear/temp/ncurses/ncurses.c: In function ‘zm_startup_ncurses’:
/tmp/pear/temp/ncurses/ncurses.c:247:57: error:
‘ncurses_destruct_window’ undeclared (first use in this function)
le_ncurses_windows =
zend_register_list_destructors_ex(ncurses_destruct_window, NULL,
"ncurses_window", module_number);
^
/tmp/pear/temp/ncurses/ncurses.c:247:57: note: each undeclared
identifier is reported only once for each function it appears in
/tmp/pear/temp/ncurses/ncurses.c:249:56: error: ‘ncurses_destruct_panel’
undeclared (first use in this function)
le_ncurses_panels =
zend_register_list_destructors_ex(ncurses_destruct_panel, NULL,
"ncurses_panel", module_number);
^
Makefile:194: recipe for target 'ncurses.lo' failed
make: *** [ncurses.lo] Error 1
ERROR: `make' failed"
I've found that it's an apparent version mismatch,
http://stackoverflow.com/questions/34264584/unknown-type-name-zend-string
What I haven't found yet is how to resolve the issue. Not sure where to
go from here. I was happily using php-5 when I changed from debian to
ubuntu, which installs php-7. Is there no php-7 version of ncurses yet?
Really, I'm confused. TIA.