make error
mowangjuanzi opened this issue · comments
exec command: sudo pecl install rar
php verson:
$ php -v
PHP 8.1.0 (cli) (built: Nov 25 2021 20:22:41) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.0, Copyright (c) Zend Technologies
with Zend OPcache v8.1.0, Copyright (c), by Zend Technologies
error message is :
/bin/bash /tmp/pear/temp/pear-build-rootW7Bf0O/rar-4.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/rar -I/tmp/pear/temp/pear-build-rootW7Bf0O/rar-4.2.0/include -I/tmp/pear/temp/pear-build-rootW7Bf0O/rar-4.2.0/main -I/tmp/pear/temp/rar -isystem /usr/include/php/20210902 -isystem /usr/include/php/20210902/main -isystem /usr/include/php/20210902/TSRM -isystem /usr/include/php/20210902/Zend -isystem /usr/include/php/20210902/ext -isystem /usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DRARDLL -DSILENT -Wno-write-strings -Wall -fvisibility=hidden -I/tmp/pear/temp/rar/unrar -c /tmp/pear/temp/rar/rar_stream.c -o rar_stream.lo -MMD -MF rar_stream.dep -MT rar_stream.lo
libtool: compile: cc -I. -I/tmp/pear/temp/rar -I/tmp/pear/temp/pear-build-rootW7Bf0O/rar-4.2.0/include -I/tmp/pear/temp/pear-build-rootW7Bf0O/rar-4.2.0/main -I/tmp/pear/temp/rar -isystem /usr/include/php/20210902 -isystem /usr/include/php/20210902/main -isystem /usr/include/php/20210902/TSRM -isystem /usr/include/php/20210902/Zend -isystem /usr/include/php/20210902/ext -isystem /usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DRARDLL -DSILENT -Wno-write-strings -Wall -fvisibility=hidden -I/tmp/pear/temp/rar/unrar -c /tmp/pear/temp/rar/rar_stream.c -MMD -MF rar_stream.dep -MT rar_stream.lo -fPIC -DPIC -o .libs/rar_stream.o
/tmp/pear/temp/rar/rar_stream.c: In function ‘_rar_get_archive_and_fragment’:
/tmp/pear/temp/rar/rar_stream.c:787:66: warning: passing argument 1 of ‘zend_resolve_path’ from incompatible pointer type [-Wincompatible-pointer-types]
787 | zend_string *arc_str = zend_resolve_path(tmp_archive, tmp_arch_len);
| ^~~~~~~~~~~
| |
| char *
/tmp/pear/temp/rar/rar_stream.c:787:66: note: expected ‘zend_string *’ {aka ‘struct _zend_string *’} but argument is of type ‘char *’
/tmp/pear/temp/rar/rar_stream.c:787:48: error: too many arguments to function ‘zend_resolve_path’
787 | zend_string *arc_str = zend_resolve_path(tmp_archive, tmp_arch_len);
| ^~~~~~~~~~~~~~~~~
make: *** [Makefile:215:rar_stream.lo] 错误 1
ERROR: `make' failed
i think the newst code is ok. may i close issus?
Hi
因为暂时 PHP 8.1的PECL RAR扩展还不可以下载使用,所以我们可以通过二进制编译安装PHP RAR C扩展。
git clone https://hub.fastgit.org/cataphract/php-rar.git
cd php-rar
phpize
./configure
make
make install
cd ../
rm -rf php-rar
Hi 因为暂时 PHP 8.1的PECL RAR扩展还不可以下载使用,所以我们可以通过二进制编译安装PHP RAR C扩展。
git clone https://hub.fastgit.org/cataphract/php-rar.git cd php-rar phpize ./configure make make install cd ../ rm -rf php-rar
Yes, that's what I did。。。塑料英语
为什么要说英语?华夏之邦 母语 中文 不香么?
为什么要说英语?华夏之邦 母语 中文 不香么?
你说的是
为什么要说英语?华夏之邦 母语 中文 不香么?
你说的是
推荐关注 HookPHP
https://github.com/letwang/HookPHP
HookPHP基于C扩展搭建内置AI编程的架构系统-支持微服务部署|热插拔业务组件-集成业务模型|权限模型|UI组件库|多模板|多平台|多域名|多终端|多语言-含常驻内存|前后分离|API平台|LUA QQ群:679116380
Could you please stick to English on GitHub..? It's a little hard to figure out what the current state of this problem is.
@Radiergummi What he said is to pull and install the source code through GIT. It is recommended to ignore what he said, because he did not describe the problem, but how to solve the problem I raised
The current situation is that I found that you have 8.1 support on GitHub, but you haven't released it to PECL
Thanks for the translation! Yeah, I noted that too; PECL hasn't seen a release since 2017. @cataphract, could you publish the current code on master perhaps? It would also be great to have this extension available to docker-php-ext-install
, though I don't know what is necessary to get there.
Is there any release date for this update (support PHP 8.1) on PECL @cataphract ??