note 130604 added to rar.installation
| From: | ryan@shaodangjia.com | Date: | Fri, 09 Jan 2026 02:39:30 +0000 |
| Subject: | note 130604 added to rar.installation | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-222492@lists.php.net to get a copy of this message | ||
can not install on php 8.5
pecl install rar
```
running: make
/bin/sh /tmp/pear/temp/pear-build-defaultusernsir6v5rpf475JoPCpI/rar-4.2.0/libtool --tag=CC
--mode=compile cc -I. -I/tmp/pear/temp/rar -isystem /usr/local/include/php -isystem
/usr/local/include/php/main -isystem /usr/local/include/php/TSRM -isystem
/usr/local/include/php/Zend -isystem /usr/local/include/php/ext -isystem
/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -D_GNU_SOURCE -DRARDLL -DSILENT
-Wno-write-strings -Wall -fvisibility=hidden -I/tmp/pear/temp/rar/unrar -DZEND_COMPILE_DL_EXT=1 -c
/tmp/pear/temp/rar/rar.c -o rar.lo -MMD -MF rar.dep -MT rar.lo
mkdir .libs
cc -I. -I/tmp/pear/temp/rar -isystem /usr/local/include/php -isystem /usr/local/include/php/main
-isystem /usr/local/include/php/TSRM -isystem /usr/local/include/php/Zend -isystem
/usr/local/include/php/ext -isystem /usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2
-D_GNU_SOURCE -DRARDLL -DSILENT -Wno-write-strings -Wall -fvisibility=hidden
-I/tmp/pear/temp/rar/unrar -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/rar/rar.c -MMD -MF rar.dep -MT
rar.lo -fPIC -DPIC -o .libs/rar.o
/tmp/pear/temp/rar/rar.c:38:9: warning: '_GNU_SOURCE' redefined
38 | #define _GNU_SOURCE
| ^~~~~~~~~~~
<command-line>: note: this is the location of the previous definition
/bin/sh /tmp/pear/temp/pear-build-defaultusernsir6v5rpf475JoPCpI/rar-4.2.0/libtool --tag=CC
--mode=compile cc -I. -I/tmp/pear/temp/rar -isystem /usr/local/include/php -isystem
/usr/local/include/php/main -isystem /usr/local/include/php/TSRM -isystem
/usr/local/include/php/Zend -isystem /usr/local/include/php/ext -isystem
/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -D_GNU_SOURCE -DRARDLL -DSILENT
-Wno-write-strings -Wall -fvisibility=hidden -I/tmp/pear/temp/rar/unrar -DZEND_COMPILE_DL_EXT=1 -c
/tmp/pear/temp/rar/rar_error.c -o rar_error.lo -MMD -MF rar_error.dep -MT rar_error.lo
cc -I. -I/tmp/pear/temp/rar -isystem /usr/local/include/php -isystem /usr/local/include/php/main
-isystem /usr/local/include/php/TSRM -isystem /usr/local/include/php/Zend -isystem
/usr/local/include/php/ext -isystem /usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2
-D_GNU_SOURCE -DRARDLL -DSILENT -Wno-write-strings -Wall -fvisibility=hidden
-I/tmp/pear/temp/rar/unrar -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/rar/rar_error.c -MMD -MF
rar_error.dep -MT rar_error.lo -fPIC -DPIC -o .libs/rar_error.o
/tmp/pear/temp/rar/rar_error.c: In function 'minit_rarerror':
/tmp/pear/temp/rar/rar_error.c:250:17: error: implicit declaration of function
'zend_exception_get_default'; did you mean 'zend_exception_set_previous'?
[-Wimplicit-function-declaration]
250 | zend_exception_get_default(TSRMLS_C));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| zend_exception_set_previous
/tmp/pear/temp/rar/rar_error.c:250:17: error: passing argument 2 of
'zend_register_internal_class_ex' makes pointer from integer without a cast
[-Wint-conversion]
250 | zend_exception_get_default(TSRMLS_C));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
In file included from /usr/local/include/php/main/php.h:35,
from /tmp/pear/temp/rar/rar_error.c:32:
/usr/local/include/php/Zend/zend_API.h:394:109: note: expected 'zend_class_entry *' {aka
'struct _zend_class_entry *'} but argument is of type 'int'
394 | ZEND_API zend_class_entry *zend_register_internal_class_ex(zend_class_entry *class_entry,
zend_class_entry *parent_ce);
|
~~~~~~~~~~~~~~~~~~^~~~~~~~~
make: *** [Makefile:212: rar_error.lo] Error 1
ERROR: `make' failed
```
----
Server IP: 206.189.2.9
Probable Submitter: 240e:39d:21:bc90:30be:1d4b:6db6:ec67
----
Manual Page -- https://php.net/manual/en/rar.installation.php
Edit -- https://main.php.net/note/edit/130604
Del: integrated -- https://main.php.net/note/delete/130604/integrated
Del: useless -- https://main.php.net/note/delete/130604/useless
Del: bad code -- https://main.php.net/note/delete/130604/bad+code
Del: spam -- https://main.php.net/note/delete/130604/spam
Del: non-english -- https://main.php.net/note/delete/130604/non-english
Del: in docs -- https://main.php.net/note/delete/130604/in+docs
Del: other reasons-- https://main.php.net/note/delete/130604
Reject -- https://main.php.net/note/reject/130604
Search -- https://main.php.net/manage/user-notes.php