-
assigned issue to
Installation failure PHP 7.3+
Hi guys!
I’m trying to install the extension on a MacOS 10.13.06, but it fails both on PHP 7.3.10 and 7.3.11:
/private/tmp/pear/install/event/php7/src/fe.c:643:2: error: use of undeclared identifier 'zim_EventUtil_createSocket'; did you mean 'zim_EventUtil_getSocketFd'?
PHP_ME(EventUtil, createSocket, arginfo_event_util_create_socket, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC)
^
/usr/local/Cellar/php/7.3.11/include/php/main/php.h:418:25: note: expanded from macro 'PHP_ME'
#define PHP_ME ZEND_ME
^
/usr/local/Cellar/php/7.3.11/include/php/Zend/zend_API.h:78:69: note: expanded from macro 'ZEND_ME'
#define ZEND_ME(classname, name, arg_info, flags) ZEND_FENTRY(name, ZEND_MN(classname##_##name), arg_info, flags)
^
/usr/local/Cellar/php/7.3.11/include/php/Zend/zend_API.h:62:23: note: expanded from macro 'ZEND_MN'
#define ZEND_MN(name) zim_##name
^
<scratch space>:107:1: note: expanded from here
zim_EventUtil_createSocket
^
/private/tmp/pear/install/event/php7/src/fe.h:134:1: note: 'zim_EventUtil_getSocketFd' declared here
PHP_METHOD(EventUtil, getSocketFd);
^
/usr/local/Cellar/php/7.3.11/include/php/main/php.h:410:24: note: expanded from macro 'PHP_METHOD'
#define PHP_METHOD ZEND_METHOD
^
/usr/local/Cellar/php/7.3.11/include/php/Zend/zend_API.h:65:58: note: expanded from macro 'ZEND_METHOD'
#define ZEND_METHOD(classname, name) ZEND_NAMED_FUNCTION(ZEND_MN(classname##_##name))
^
/usr/local/Cellar/php/7.3.11/include/php/Zend/zend_API.h:62:23: note: expanded from macro 'ZEND_MN'
#define ZEND_MN(name) zim_##name
^
<scratch space>:74:1: note: expanded from here
zim_EventUtil_getSocketFd
^
1 error generated.
make: *** [php7/src/fe.lo] Error 1
ERROR: `make' failed
Could you guys give me some guidance on how to make it work?
Comments (3)
-
repo owner -
repo owner Looks like you tried compiling the project after the
configure
phase failed. The./configure …
should have echoed an error of the following form:Couldn't find /path/to/sockets/php_sockets.h. Please check if sockets extension installed
and exited with non-zero status. Then, likely, you ignored the error and run
make
If my guess is right, you should either install
sockets
extension before compilingevent
, or disablesockets
as follows:./configure --disable-event-sockets --with-event-core # ...
Similarly, if you are trying to install
event
viapecl
(pecl install event
), then you should either installsockets
, or disable sockets when the CLI suggests to enable sockets support:$ pecl install event PHP Api Version: 20180731 Zend Module Api No: 20180731 Zend Extension Api No: 320180731 Enable internal debugging in Event [no] : Enable sockets support in Event [yes] :
However, if my guess is not right, please copy and paste the entire output from the terminal starting from the point when you invoke the
configure
(at least)Thanks.
-
repo owner - changed status to on hold
- Log in to comment