Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make error #17

Open
mowangjuanzi opened this issue Dec 20, 2021 · 11 comments
Open

make error #17

mowangjuanzi opened this issue Dec 20, 2021 · 11 comments

Comments

@mowangjuanzi
Copy link

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
@mowangjuanzi
Copy link
Author

mowangjuanzi commented Dec 20, 2021

i think the newst code is ok. may i close issus?

@letwang
Copy link

letwang commented Dec 28, 2021

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

@mowangjuanzi
Copy link
Author

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。。。塑料英语

@letwang
Copy link

letwang commented Dec 28, 2021

为什么要说英语?华夏之邦 母语 中文 不香么?

@mowangjuanzi
Copy link
Author

为什么要说英语?华夏之邦 母语 中文 不香么?

你说的是

@letwang
Copy link

letwang commented Dec 28, 2021

为什么要说英语?华夏之邦 母语 中文 不香么?

你说的是

推荐关注 HookPHP
https://github.com/letwang/HookPHP
HookPHP基于C扩展搭建内置AI编程的架构系统-支持微服务部署|热插拔业务组件-集成业务模型|权限模型|UI组件库|多模板|多平台|多域名|多终端|多语言-含常驻内存|前后分离|API平台|LUA QQ群:679116380

@Radiergummi
Copy link

Could you please stick to English on GitHub..? It's a little hard to figure out what the current state of this problem is.

@mowangjuanzi
Copy link
Author

@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

@mowangjuanzi
Copy link
Author

The current situation is that I found that you have 8.1 support on GitHub, but you haven't released it to PECL

@Radiergummi
Copy link

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.

@Duardaum
Copy link

Is there any release date for this update (support PHP 8.1) on PECL @cataphract ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants