#37221 [Bgs]: enable-sigchild cause ERROR: `phpize' failed
ID: 37221
Updated by: sixd@php.net
Reported By: baco at infomaniak dot ch
Status: Bogus
Bug Type: Compile Failure
Operating System: Linux 2.6 (Debian Sarge)
PHP Version: 5.1.2
New Comment:
In case it helps anyone who has the same symptom, see
http://bugs.php.net/bug.php?id=25727
Previous Comments:
------------------------------------------------------------------------
[2006-04-27 16:32:09] bjori@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Please report bugs in PEAR in the PEAR bug tracker;
http://pear.php.net/bugs/report.php?package=PEAR
------------------------------------------------------------------------
[2006-04-27 11:57:10] baco at infomaniak dot ch
Description:
------------
When trying to install or upgrade a package
using
pear install pecl/xxxx
The pear return the following error message :
ERROR: `phpize' failed
If I build the module by hand without using install
it works.
/opt/php/bin/pear download pecl/xxxx
tar xzpvf xxxx.tar.gz
cd xxxx
phpize
make all
./configure \
--with-php-config=.../php-config
After some research I found a bug in function
PEAR_Builder::_runCommand() from PEAR/Builder.php
who return a bad exitcode from pclose().
One more time compile PHP using enable-sigchild cause
trouble with pclose() return code (-1).
Reproduce code:
---------------
See also http://pear.php.net/bugs/bug.php?id=1852
bug in function PEAR_Builder::_runCommand()
$ /opt/php/bin/pear install pecl/zip
downloading zip-1.0.tgz ...
Starting to download zip-1.0.tgz (4,930 bytes)
.....done: 4,930 bytes
3 source files, building
running: phpize
ERROR: failed to run `phpize'
Expected result:
----------------
AFTER PATCHED PEAR/Builder.php or compile PHP without
enable-sigchild.
--- /opt/php/lib/php/PEAR/Builder.php 2006-04-26
16:18:12.000000000 +0200
+++ /opt/php/lib/php/PEAR/Builder.php 2006-04-27
11:56:13.201667500 +0200
@@ -432,6 +432,7 @@
$callback[0]->debug = $olddbg;
}
$exitcode = @pclose($pp);
+ $exitcode = 0;
return ($exitcode == 0);
}
$ strace /opt/php/bin/php -C -q -d
include_path=/opt/php/lib/php -d
output_buffering=1 /opt/php/lib/php/pearcmd.php install
pecl/zip2> after.txt
downloading zip-1.0.tgz ...
Starting to download zip-1.0.tgz (4,930 bytes)
.....done: 4,930 bytes
3 source files, building
running: phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20050922
Zend Extension Api No: 220051025
building in /var/tmp/pear-build-root/zip-1.0
running: /tmp/tmpbJ5ZjW/zip-1.0/configure
checking for egrep... grep -E
checking for a sed that does not truncate
output... /bin/sed
...
Actual result:
--------------
$ strace /opt/php/bin/php -C -q -d
include_path=/opt/php/lib/php -d
output_buffering=1 /opt/php/lib/php/pearcmd.php install
pecl/zip2> before.txt
downloading zip-1.0.tgz ...
Starting to download zip-1.0.tgz (4,930 bytes)
.....done: 4,930 bytes
3 source files, building
running: phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20050922
Zend Extension Api No: 220051025
ERROR: `phpize' failed
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37221&edit=1
Thread (3 messages)