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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: fgrau at bestdoctors dot com
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2020 The PHP Group
All rights reserved.
Last updated: Thu Jan 23 04:01:24 2020 UTC