-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
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 Technologieserror 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' failedwapmorgan, Miragebell and ogidimitrov
Metadata
Metadata
Assignees
Labels
No labels