From:             baco at infomaniak dot ch
Operating system: Linux 2.6 (Debian Sarge)
PHP version:      5.1.2
PHP Bug Type:     Compile Failure
Bug description:  enable-sigchild cause ERROR: `phpize' failed

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 bug report at http://bugs.php.net/?id=37221&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=37221&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): 
http://bugs.php.net/fix.php?id=37221&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=37221&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=37221&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=37221&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=37221&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=37221&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=37221&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=37221&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=37221&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=37221&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=37221&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=37221&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=37221&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=37221&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=37221&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=37221&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=37221&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=37221&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=37221&r=mysqlcfg

Reply via email to