Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

install ncurses (unknown type name ‘zend_rsrc_list_entry’)

1,090 views
Skip to first unread message

crankypuss

unread,
Feb 23, 2017, 5:52:10 AM2/23/17
to
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.

Christoph M. Becker

unread,
Feb 23, 2017, 6:35:50 AM2/23/17
to
On 23.02.2017 at 11:52, crankypuss wrote:

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

Indeed, there has not been a PHP 7 compatible release (the latest
release is from 2012[1], long predating PHP 7), but there is a commit in
trunk which claims to be a "basic 7 port"[2]. Note that there's also a
ticket in the bug tracker, which has a patch for PHP 7 compatibility[3].
Consider to compile either yourself.

[1] <https://pecl.php.net/package/ncurses>
[2]
<http://svn.php.net/viewvc/pecl/ncurses/trunk/ncurses.c?revision=340054&view=markup>
[3] <https://bugs.php.net/bug.php?id=71299>

--
Christoph M. Becker

crankypuss

unread,
Feb 23, 2017, 6:55:45 AM2/23/17
to
Pardon my french, but fuckit. I've been using PHP for prototyping and
i've been able to do some fairly interesting things with it, but i'm at
the point of moving to C/C++ and the only value ncurses has to me at
this point is that i could then run my backup and boot-setup utilities.
I'll just reboot into debian-jessie when i need these functions. I
thought about installing a previous version of php-cli but the only one
in the Ubuntu repos is the one already installed. If somebody comes up
with a better answer, that would be great, but I'm not willing to make a
career out of installing PHP extensions, debugging make file is not my
thang. Thanks very much.

jesuspo...@gmail.com

unread,
Apr 25, 2017, 4:45:55 AM4/25/17
to
I don't know why these kinds of issues are posted in Google groups forums that no one reads - but yeah, fuckit.

Jerry Stuckle

unread,
Apr 25, 2017, 8:13:45 AM4/25/17
to
First of all, this usenet, not a Google groups forum. Google Groups is
just a poor interface to it.

And there are quite a few people who read this newsgroup. No, there
isn't much traffic, but that does not mean it isn't being read.

As for crankypuss's problem - Christoph provided a solution. No, it's
not the easiest solution, but when working with volunteers, not
everything gets updated as quickly as one would like. I also would like
to see ncurses on PHP7, but it's not a deal killer for me.

--
==================
Remove the "x" from my email address
Jerry Stuckle
jstu...@attglobal.net
==================

Man of Your dreams

unread,
Apr 29, 2023, 1:47:53 AM4/29/23
to
Morning...

Check out new place for us for chatting:

yyyyyyyyyyyyyyyyyyyyyyyy.mywebcommunity.org/a.php


Have a nice day!
0 new messages