首页
下载
文档
问答社区
视频
捐赠
源代码
AI 助理
赞助商
CRMEB
Apipost
腾讯云
微擎
禅道
51Talk
商业产品
Swoole AI 智能文档翻译器
Swoole-Compiler PHP 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
centos7 安装swoole 编译失败
**OS**:CentOS Linux release 7.1.1503 (Core) **swoole**:2.0.7 **error** msg: /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c: In function 'sw_coro_create': /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:71:58: error: 'call_slot' undeclared (first use in this function) size_t call_slots_size = ZEND_MM_ALIGNED_SIZE(sizeof(call_slot)) * op_array->nested_calls; ^ /usr/include/php/Zend/zend_alloc.h:42:39: note: in definition of macro 'ZEND_MM_ALIGNED_SIZE' #define ZEND_MM_ALIGNED_SIZE(size) (((size) + ZEND_MM_ALIGNMENT - 1) & ZEND_MM_ALIGNMENT_MASK) ^ /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:71:58: note: each undeclared identifier is reported only once for each function it appears in size_t call_slots_size = ZEND_MM_ALIGNED_SIZE(sizeof(call_slot)) * op_array->nested_calls; ^ /usr/include/php/Zend/zend_alloc.h:42:39: note: in definition of macro 'ZEND_MM_ALIGNED_SIZE' #define ZEND_MM_ALIGNED_SIZE(size) (((size) + ZEND_MM_ALIGNMENT - 1) & ZEND_MM_ALIGNMENT_MASK) ^ /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:71:80: error: 'zend_op_array' has no member named 'nested_calls' size_t call_slots_size = ZEND_MM_ALIGNED_SIZE(sizeof(call_slot)) * op_array->nested_calls; ^ /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:72:71: error: 'zend_op_array' has no member named 'used_stack' size_t stack_size = ZEND_MM_ALIGNED_SIZE(sizeof(zval*)) * op_array->used_stack; ^ /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:96:7: warning: implicit declaration of function 'zend_vm_stack_get_arg_ex' [-Wimplicit-function-declaration] zval **arg_dst = (zval**)zend_vm_stack_get_arg_ex(execute_data->prev_execute_data, 1); ^ /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:96:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] zval **arg_dst = (zval**)zend_vm_stack_get_arg_ex(execute_data->prev_execute_data, 1); ^ /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:104:5: warning: implicit declaration of function 'EX_CV_NUM' [-Wimplicit-function-declaration] memset(EX_CV_NUM(execute_data, 0), 0, sizeof(zval **) * op_array->last_var); ^ /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:104:5: warning: passing argument 1 of 'memset' makes pointer from integer without a cast [enabled by default] In file included from /usr/include/php/main/../main/php_config.h:2470:0, from /usr/include/php/Zend/zend_config.h:1, from /usr/include/php/Zend/zend.h:51, from /usr/include/php/main/php.h:34, from /data0/tmp/swoole-src-2.0.7/php_swoole.h:22, from /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:17: /usr/include/string.h:62:14: note: expected 'void *' but argument is of type 'int' extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1)); ^ /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:105:17: error: 'zend_execute_data' has no member named 'call_slots' execute_data->call_slots = (call_slot*)((char *)execute_data + execute_data_size + CVs_size); ^ /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:105:43: error: expected expression before ')' token execute_data->call_slots = (call_slot*)((char *)execute_data + execute_data_size + CVs_size); ^ /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:108:5: warning: implicit declaration of function 'zend_vm_stack_frame_base' [-Wimplicit-function-declaration] EG(argument_stack)->top = zend_vm_stack_frame_base(execute_data); ^ /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:108:29: warning: assignment makes pointer from integer without a cast [enabled by default] EG(argument_stack)->top = zend_vm_stack_frame_base(execute_data); ^ /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:114:17: error: 'zend_execute_data' has no member named 'call' execute_data->call = NULL; ^ /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:117:14: error: 'zend_execute_data' has no member named 'fast_ret' execute_data->fast_ret = NULL; ^ In file included from /usr/include/php/Zend/zend.h:271:0, from /usr/include/php/main/php.h:34, from /data0/tmp/swoole-src-2.0.7/php_swoole.h:22, from /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:17: /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:160:107: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] if (zend_hash_add(EG(active_symbol_table), "this", sizeof("this"), &EG(This), sizeof(zval *), (void **) EX_CV_NUM(execute_data, op_array->this_var))==FAILURE) ^ /usr/include/php/Zend/zend_hash.h:111:69: note: in definition of macro 'zend_hash_add' _zend_hash_add_or_update(ht, arKey, nKeyLength, pData, nDataSize, pDest, HASH_ADD ZEND_FILE_LINE_CC) ^ /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:193:9: warning: implicit declaration of function 'zend_execute_ex' [-Wimplicit-function-declaration] zend_execute_ex(execute_data TSRMLS_CC); ^ /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c: In function 'sw_coro_resume': /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:412:45: error: 'zend_execute_data' has no member named 'call' sw_current_context->current_execute_data->call--; ^ /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:413:5: error: too many arguments to function 'zend_vm_stack_clear_multiple' zend_vm_stack_clear_multiple(1 TSRMLS_CC); ^ In file included from /usr/include/php/Zend/zend_API.h:30:0, from /usr/include/php/main/php.h:38, from /data0/tmp/swoole-src-2.0.7/php_swoole.h:22, from /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:17: /usr/include/php/Zend/zend_execute.h:331:32: note: declared here static zend_always_inline void zend_vm_stack_clear_multiple(TSRMLS_D) ^ make: *** [swoole_coroutine.lo] Error 1
发布于6年前 · 3 次浏览 · 来自
提问
S
Strive
**OS**:CentOS Linux release 7.1.1503 (Core) **swoole**:2.0.7 **error** msg: /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c: In function 'sw_coro_create': /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:71:58: error: 'call_slot' undeclared (first use in this function) size_t call_slots_size = ZEND_MM_ALIGNED_SIZE(sizeof(call_slot)) * op_array->nested_calls; ^ /usr/include/php/Zend/zend_alloc.h:42:39: note: in definition of macro 'ZEND_MM_ALIGNED_SIZE' #define ZEND_MM_ALIGNED_SIZE(size) (((size) + ZEND_MM_ALIGNMENT - 1) & ZEND_MM_ALIGNMENT_MASK) ^ /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:71:58: note: each undeclared identifier is reported only once for each function it appears in size_t call_slots_size = ZEND_MM_ALIGNED_SIZE(sizeof(call_slot)) * op_array->nested_calls; ^ /usr/include/php/Zend/zend_alloc.h:42:39: note: in definition of macro 'ZEND_MM_ALIGNED_SIZE' #define ZEND_MM_ALIGNED_SIZE(size) (((size) + ZEND_MM_ALIGNMENT - 1) & ZEND_MM_ALIGNMENT_MASK) ^ /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:71:80: error: 'zend_op_array' has no member named 'nested_calls' size_t call_slots_size = ZEND_MM_ALIGNED_SIZE(sizeof(call_slot)) * op_array->nested_calls; ^ /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:72:71: error: 'zend_op_array' has no member named 'used_stack' size_t stack_size = ZEND_MM_ALIGNED_SIZE(sizeof(zval*)) * op_array->used_stack; ^ /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:96:7: warning: implicit declaration of function 'zend_vm_stack_get_arg_ex' [-Wimplicit-function-declaration] zval **arg_dst = (zval**)zend_vm_stack_get_arg_ex(execute_data->prev_execute_data, 1); ^ /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:96:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] zval **arg_dst = (zval**)zend_vm_stack_get_arg_ex(execute_data->prev_execute_data, 1); ^ /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:104:5: warning: implicit declaration of function 'EX_CV_NUM' [-Wimplicit-function-declaration] memset(EX_CV_NUM(execute_data, 0), 0, sizeof(zval **) * op_array->last_var); ^ /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:104:5: warning: passing argument 1 of 'memset' makes pointer from integer without a cast [enabled by default] In file included from /usr/include/php/main/../main/php_config.h:2470:0, from /usr/include/php/Zend/zend_config.h:1, from /usr/include/php/Zend/zend.h:51, from /usr/include/php/main/php.h:34, from /data0/tmp/swoole-src-2.0.7/php_swoole.h:22, from /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:17: /usr/include/string.h:62:14: note: expected 'void *' but argument is of type 'int' extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1)); ^ /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:105:17: error: 'zend_execute_data' has no member named 'call_slots' execute_data->call_slots = (call_slot*)((char *)execute_data + execute_data_size + CVs_size); ^ /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:105:43: error: expected expression before ')' token execute_data->call_slots = (call_slot*)((char *)execute_data + execute_data_size + CVs_size); ^ /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:108:5: warning: implicit declaration of function 'zend_vm_stack_frame_base' [-Wimplicit-function-declaration] EG(argument_stack)->top = zend_vm_stack_frame_base(execute_data); ^ /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:108:29: warning: assignment makes pointer from integer without a cast [enabled by default] EG(argument_stack)->top = zend_vm_stack_frame_base(execute_data); ^ /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:114:17: error: 'zend_execute_data' has no member named 'call' execute_data->call = NULL; ^ /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:117:14: error: 'zend_execute_data' has no member named 'fast_ret' execute_data->fast_ret = NULL; ^ In file included from /usr/include/php/Zend/zend.h:271:0, from /usr/include/php/main/php.h:34, from /data0/tmp/swoole-src-2.0.7/php_swoole.h:22, from /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:17: /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:160:107: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] if (zend_hash_add(EG(active_symbol_table), "this", sizeof("this"), &EG(This), sizeof(zval *), (void **) EX_CV_NUM(execute_data, op_array->this_var))==FAILURE) ^ /usr/include/php/Zend/zend_hash.h:111:69: note: in definition of macro 'zend_hash_add' _zend_hash_add_or_update(ht, arKey, nKeyLength, pData, nDataSize, pDest, HASH_ADD ZEND_FILE_LINE_CC) ^ /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:193:9: warning: implicit declaration of function 'zend_execute_ex' [-Wimplicit-function-declaration] zend_execute_ex(execute_data TSRMLS_CC); ^ /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c: In function 'sw_coro_resume': /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:412:45: error: 'zend_execute_data' has no member named 'call' sw_current_context->current_execute_data->call--; ^ /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:413:5: error: too many arguments to function 'zend_vm_stack_clear_multiple' zend_vm_stack_clear_multiple(1 TSRMLS_CC); ^ In file included from /usr/include/php/Zend/zend_API.h:30:0, from /usr/include/php/main/php.h:38, from /data0/tmp/swoole-src-2.0.7/php_swoole.h:22, from /data0/tmp/swoole-src-2.0.7/swoole_coroutine.c:17: /usr/include/php/Zend/zend_execute.h:331:32: note: declared here static zend_always_inline void zend_vm_stack_clear_multiple(TSRMLS_D) ^ make: *** [swoole_coroutine.lo] Error 1
赞
0
分享
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
评论
2019-12-05
O
Owen
我也出现了这个问题。用的是remi的php7.2.8版本。 后来我把php全部删除了; 然后用webtatic的7.2.7的重新安装就解决了。
赞
0
回复
微信公众号
热门内容
暂无回复的问答
- CodeGalaxy K3s 轻量集群节点之间如何实现负载均衡
- 关于openssl CURL WARNING swSSL_connect: SSL_connect(fd=69) failed. Error: error:141A318A:SSL routines:tls_process_ske_dhe:dh key too small[1|394]
- 多个模型如何进行事务异常回退?
- websocket开启wss报错
- 协程tcp服务器如何使用多进程?recv()方法接收信息,打印出来的pid一直是同一个。没用使用到多进程啊。