php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65204 Cannot build pecl rar extension
Submitted: 2013-07-04 13:49 UTC Modified: 2017-07-22 03:05 UTC
Votes:5
Avg. Score:4.2 ± 1.0
Reproduced:5 of 5 (100.0%)
Same Version:1 (20.0%)
Same OS:0 (0.0%)
From: fgrau at bestdoctors dot com Assigned: cataphract (profile)
Status: Closed Package: rar (PECL)
PHP Version: 5.5.0 OS: Fedora 19
Private report: No CVE-ID: None
 [2013-07-04 13:49 UTC] fgrau at bestdoctors dot com
Description:
------------
When I run make, there is a compilation error. gcc 4.8.1

/bin/sh /home/fgrau/Downloads/rar-3.0.1/libtool --mode=compile cc -DRARDLL -DGUI 
-DSILENT -Wno-write-strings -Wno-logical-op-parentheses -
I/home/fgrau/Downloads/rar-3.0.1/unrar -I. -I/home/fgrau/Downloads/rar-3.0.1 -
DPHP_ATOM_INC -I/home/fgrau/Downloads/rar-3.0.1/include -
I/home/fgrau/Downloads/rar-3.0.1/main -I/home/fgrau/Downloads/rar-3.0.1 -
I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -
I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib  -
DHAVE_CONFIG_H  -g -O2   -c /home/fgrau/Downloads/rar-3.0.1/rar.c -o rar.lo 
libtool: compile:  cc -DRARDLL -DGUI -DSILENT -Wno-write-strings -Wno-logical-
op-parentheses -I/home/fgrau/Downloads/rar-3.0.1/unrar -I. -
I/home/fgrau/Downloads/rar-3.0.1 -DPHP_ATOM_INC -I/home/fgrau/Downloads/rar-
3.0.1/include -I/home/fgrau/Downloads/rar-3.0.1/main -
I/home/fgrau/Downloads/rar-3.0.1 -I/usr/include/php -I/usr/include/php/main -
I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -
I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c 
/home/fgrau/Downloads/rar-3.0.1/rar.c  -fPIC -DPIC -o .libs/rar.o
/bin/sh /home/fgrau/Downloads/rar-3.0.1/libtool --mode=compile cc -DRARDLL -DGUI 
-DSILENT -Wno-write-strings -Wno-logical-op-parentheses -
I/home/fgrau/Downloads/rar-3.0.1/unrar -I. -I/home/fgrau/Downloads/rar-3.0.1 -
DPHP_ATOM_INC -I/home/fgrau/Downloads/rar-3.0.1/include -
I/home/fgrau/Downloads/rar-3.0.1/main -I/home/fgrau/Downloads/rar-3.0.1 -
I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -
I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib  -
DHAVE_CONFIG_H  -g -O2   -c /home/fgrau/Downloads/rar-3.0.1/rar_error.c -o 
rar_error.lo 
libtool: compile:  cc -DRARDLL -DGUI -DSILENT -Wno-write-strings -Wno-logical-
op-parentheses -I/home/fgrau/Downloads/rar-3.0.1/unrar -I. -
I/home/fgrau/Downloads/rar-3.0.1 -DPHP_ATOM_INC -I/home/fgrau/Downloads/rar-
3.0.1/include -I/home/fgrau/Downloads/rar-3.0.1/main -
I/home/fgrau/Downloads/rar-3.0.1 -I/usr/include/php -I/usr/include/php/main -
I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -
I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c 
/home/fgrau/Downloads/rar-3.0.1/rar_error.c  -fPIC -DPIC -o .libs/rar_error.o
/bin/sh /home/fgrau/Downloads/rar-3.0.1/libtool --mode=compile cc -DRARDLL -DGUI 
-DSILENT -Wno-write-strings -Wno-logical-op-parentheses -
I/home/fgrau/Downloads/rar-3.0.1/unrar -I. -I/home/fgrau/Downloads/rar-3.0.1 -
DPHP_ATOM_INC -I/home/fgrau/Downloads/rar-3.0.1/include -
I/home/fgrau/Downloads/rar-3.0.1/main -I/home/fgrau/Downloads/rar-3.0.1 -
I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -
I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib  -
DHAVE_CONFIG_H  -g -O2   -c /home/fgrau/Downloads/rar-3.0.1/rararch.c -o 
rararch.lo 
libtool: compile:  cc -DRARDLL -DGUI -DSILENT -Wno-write-strings -Wno-logical-
op-parentheses -I/home/fgrau/Downloads/rar-3.0.1/unrar -I. -
I/home/fgrau/Downloads/rar-3.0.1 -DPHP_ATOM_INC -I/home/fgrau/Downloads/rar-
3.0.1/include -I/home/fgrau/Downloads/rar-3.0.1/main -
I/home/fgrau/Downloads/rar-3.0.1 -I/usr/include/php -I/usr/include/php/main -
I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -
I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c 
/home/fgrau/Downloads/rar-3.0.1/rararch.c  -fPIC -DPIC -o .libs/rararch.o
/bin/sh /home/fgrau/Downloads/rar-3.0.1/libtool --mode=compile cc -DRARDLL -DGUI 
-DSILENT -Wno-write-strings -Wno-logical-op-parentheses -
I/home/fgrau/Downloads/rar-3.0.1/unrar -I. -I/home/fgrau/Downloads/rar-3.0.1 -
DPHP_ATOM_INC -I/home/fgrau/Downloads/rar-3.0.1/include -
I/home/fgrau/Downloads/rar-3.0.1/main -I/home/fgrau/Downloads/rar-3.0.1 -
I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -
I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib  -
DHAVE_CONFIG_H  -g -O2   -c /home/fgrau/Downloads/rar-3.0.1/rarentry.c -o 
rarentry.lo 
libtool: compile:  cc -DRARDLL -DGUI -DSILENT -Wno-write-strings -Wno-logical-
op-parentheses -I/home/fgrau/Downloads/rar-3.0.1/unrar -I. -
I/home/fgrau/Downloads/rar-3.0.1 -DPHP_ATOM_INC -I/home/fgrau/Downloads/rar-
3.0.1/include -I/home/fgrau/Downloads/rar-3.0.1/main -
I/home/fgrau/Downloads/rar-3.0.1 -I/usr/include/php -I/usr/include/php/main -
I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -
I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c 
/home/fgrau/Downloads/rar-3.0.1/rarentry.c  -fPIC -DPIC -o .libs/rarentry.o
/home/fgrau/Downloads/rar-3.0.1/rarentry.c: In function 
'_rar_entry_get_property':
/home/fgrau/Downloads/rar-3.0.1/rarentry.c:183:3: warning: passing argument 3 of 
'entry_obj->value.obj.handlers->get_property_ptr_ptr' makes integer from pointer 
without a cast [enabled by default]
   NULL TSRMLS_CC);
   ^
/home/fgrau/Downloads/rar-3.0.1/rarentry.c:183:3: note: expected 'int' but 
argument is of type 'void *'
/home/fgrau/Downloads/rar-3.0.1/rarentry.c:183:3: error: too few arguments to 
function 'entry_obj->value.obj.handlers->get_property_ptr_ptr'
/home/fgrau/Downloads/rar-3.0.1/rarentry.c: At top level:
cc1: warning: unrecognized command line option "-Wno-logical-op-parentheses" 
[enabled by default]
make: *** [rarentry.lo] Error 1


Expected result:
----------------
The module to build successfuly

Actual result:
--------------
The modules cannot be built, therefore, it cannot be installed.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-07-15 00:35 UTC] felipe@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: cataphract
 [2013-07-15 00:35 UTC] felipe@php.net
Try the current version at https://github.com/cataphract/php-rar
 [2014-09-24 12:40 UTC] jose dot parrado at lineagrafica dot es
i tried with current github version. It still failed :(
 [2017-07-22 03:05 UTC] cataphract@php.net
-Status: Assigned +Status: Closed
 [2017-07-22 03:05 UTC] cataphract@php.net
Should be fixed in 4.0.0.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Nov 12 09:01:28 2024 UTC