首页
下载
文档
问答社区
视频
捐赠
源代码
AI 助理
赞助商
CRMEB
Apipost
腾讯云
微擎
禅道
51Talk
商业产品
Swoole AI 智能文档翻译器
Swoole-Compiler PHP 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
swoole编译安装报错
### 问题描述 swoole编译安装报错 ### Swoole版本,PHP版本,以及操作系统版本信息 php版本7.4.22 swoole版本4.3.4 CentOS 7.9 64位 Linux 3.10.0-1160.31.1.el7.x86_64 #1 SMP Thu Jun 10 13:32:12 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux ### 相关代码 ```php 请将代码粘贴至此处(请勿用截图) ```/data/swoole/swoole-src-4.3.4/swoole_runtime.cc:66:1: error: invalid conversion from ‘size_t (*)(php_stream*, const char*, size_t) {aka long unsigned int (*)(_php_stream*, const char*, long unsigned int)}’ to ‘ssize_t (*)(php_stream*, const char*, size_t) {aka long int (*)(_php_stream*, const char*, long unsigned int)}’ [-fpermissive] }; ^ /data/swoole/swoole-src-4.3.4/swoole_runtime.cc:66:1: error: invalid conversion from ‘size_t (*)(php_stream*, char*, size_t) {aka long unsigned int (*)(_php_stream*, char*, long unsigned int)}’ to ‘ssize_t (*)(php_stream*, char*, size_t) {aka long int (*)(_php_stream*, char*, long unsigned int)}’ [-fpermissive] In file included from /data/swoole/swoole-src-4.3.4/swoole_runtime.cc:116:0: /data/swoole/swoole-src-4.3.4/thirdparty/plain_wrapper.c:189:1: error: invalid conversion from ‘size_t (*)(php_stream*, const char*, size_t) {aka long unsigned int (*)(_php_stream*, const char*, long unsigned int)}’ to ‘ssize_t (*)(php_stream*, const char*, size_t) {aka long int (*)(_php_stream*, const char*, long unsigned int)}’ [-fpermissive] }; ^ /data/swoole/swoole-src-4.3.4/thirdparty/plain_wrapper.c:189:1: error: invalid conversion from ‘size_t (*)(php_stream*, char*, size_t) {aka long unsigned int (*)(_php_stream*, char*, long unsigned int)}’ to ‘ssize_t (*)(php_stream*, char*, size_t) {aka long int (*)(_php_stream*, char*, long unsigned int)}’ [-fpermissive] /data/swoole/swoole-src-4.3.4/thirdparty/plain_wrapper.c:823:1: error: invalid conversion from ‘size_t (*)(php_stream*, char*, size_t) {aka long unsigned int (*)(_php_stream*, char*, long unsigned int)}’ to ‘ssize_t (*)(php_stream*, char*, size_t) {aka long int (*)(_php_stream*, char*, long unsigned int)}’ [-fpermissive] }; ^ ### 你期待的结果是什么?实际看到的错误信息又是什么? 解决这几个错误 能继续编译
发布于2年前 · 22 次浏览 · 来自
提问
zxq
### 问题描述 swoole编译安装报错 ### Swoole版本,PHP版本,以及操作系统版本信息 php版本7.4.22 swoole版本4.3.4 CentOS 7.9 64位 Linux 3.10.0-1160.31.1.el7.x86_64 #1 SMP Thu Jun 10 13:32:12 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux ### 相关代码 ```php 请将代码粘贴至此处(请勿用截图) ```/data/swoole/swoole-src-4.3.4/swoole_runtime.cc:66:1: error: invalid conversion from ‘size_t (*)(php_stream*, const char*, size_t) {aka long unsigned int (*)(_php_stream*, const char*, long unsigned int)}’ to ‘ssize_t (*)(php_stream*, const char*, size_t) {aka long int (*)(_php_stream*, const char*, long unsigned int)}’ [-fpermissive] }; ^ /data/swoole/swoole-src-4.3.4/swoole_runtime.cc:66:1: error: invalid conversion from ‘size_t (*)(php_stream*, char*, size_t) {aka long unsigned int (*)(_php_stream*, char*, long unsigned int)}’ to ‘ssize_t (*)(php_stream*, char*, size_t) {aka long int (*)(_php_stream*, char*, long unsigned int)}’ [-fpermissive] In file included from /data/swoole/swoole-src-4.3.4/swoole_runtime.cc:116:0: /data/swoole/swoole-src-4.3.4/thirdparty/plain_wrapper.c:189:1: error: invalid conversion from ‘size_t (*)(php_stream*, const char*, size_t) {aka long unsigned int (*)(_php_stream*, const char*, long unsigned int)}’ to ‘ssize_t (*)(php_stream*, const char*, size_t) {aka long int (*)(_php_stream*, const char*, long unsigned int)}’ [-fpermissive] }; ^ /data/swoole/swoole-src-4.3.4/thirdparty/plain_wrapper.c:189:1: error: invalid conversion from ‘size_t (*)(php_stream*, char*, size_t) {aka long unsigned int (*)(_php_stream*, char*, long unsigned int)}’ to ‘ssize_t (*)(php_stream*, char*, size_t) {aka long int (*)(_php_stream*, char*, long unsigned int)}’ [-fpermissive] /data/swoole/swoole-src-4.3.4/thirdparty/plain_wrapper.c:823:1: error: invalid conversion from ‘size_t (*)(php_stream*, char*, size_t) {aka long unsigned int (*)(_php_stream*, char*, long unsigned int)}’ to ‘ssize_t (*)(php_stream*, char*, size_t) {aka long int (*)(_php_stream*, char*, long unsigned int)}’ [-fpermissive] }; ^ ### 你期待的结果是什么?实际看到的错误信息又是什么? 解决这几个错误 能继续编译
赞
0
分享
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
评论
2022-02-18
自在侠
建议按流程重装就可以解决了。 phpize && \ ./configure && \ make && sudo make install
赞
0
回复
2022-10-01
骆
骆松
版本号:swoole-src-4.8.12 报错:./configure: line 5912: syntax error near unexpected token `-Wbool-conversion,' 求解答!!!!
赞
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一直是同一个。没用使用到多进程啊。