ext-async icon indicating copy to clipboard operation
ext-async copied to clipboard

error: unknown type name ‘bool’ and error: #error "Ext version does not match the Swoole version"

Open 7677866 opened this issue 4 years ago • 0 comments

/usr/include/php/ext/swoole/include/swoole.h:1370:39: error: unknown type name ‘bool’; did you mean ‘_Bool’? void swLog_set_date_with_microseconds(bool enable); ^~~~ _Bool In file included from /opt/ext-async/swoole_async_client.cc:17: /opt/ext-async/php_swoole_async.h:35:2: error: #error "Ext version does not match the Swoole version" #error "Ext version does not match the Swoole version" ^~~~~ In file included from /opt/ext-async/swoole_async.cc:17: /opt/ext-async/php_swoole_async.h:35:2: error: #error "Ext version does not match the Swoole version" #error "Ext version does not match the Swoole version" ^~~~~ In file included from /opt/ext-async/swoole_channel.c:19: /opt/ext-async/php_swoole_async.h:35:2: error: #error "Ext version does not match the Swoole version" #error "Ext version does not match the Swoole version" ^~~~~ make: *** [Makefile:198: swoole_channel.lo] Error 1 make: *** Waiting for unfinished jobs.... /opt/ext-async/swoole_async_client.cc: In function ‘void zim_swoole_async_client_connect(zend_execute_data*, zval*)’: /opt/ext-async/swoole_async_client.cc:590:26: error: invalid conversion from ‘void ()(swClient, const char*, uint32_t)’ {aka ‘void ()(_swClient, const char*, unsigned int)’} to ‘void ()(_swClient, char*, uint32_t)’ {aka ‘void ()(_swClient, char*, unsigned int)’} [-fpermissive] cli->onReceive = client_onReceive; ^~~~~~~~~~~~~~~~ /opt/ext-async/swoole_async_client.cc:614:26: error: invalid conversion from ‘void ()(swClient, const char*, uint32_t)’ {aka ‘void ()(_swClient, const char*, unsigned int)’} to ‘void ()(_swClient, char*, uint32_t)’ {aka ‘void ()(_swClient, char*, unsigned int)’} [-fpermissive] cli->onReceive = client_onReceive; ^~~~~~~~~~~~~~~~ make: *** [Makefile:194: swoole_async_client.lo] Error 1 make: *** [Makefile:192: swoole_async.lo] Error 1

7677866 avatar Jun 17 '20 09:06 7677866