From:             nikolai dot lusan at hitwise dot com
Operating system: GNU/Linux
PHP version:      5.1.4
PHP Bug Type:     *Compile Issues
Bug description:  Failure on make install-pear (Illegal Operation)

Description:
------------
Post compile installation of pear fails during "make install-pear" while
executing the "install-pear-nozlib.phar" script in the
"install-pear-installer" section of the Makefile. Similar to [now marked
bogus] <a href="http://bugs.php.net/bug.php?id=37803";>bug #37803</a>.

I have tried using the binary that is being run to execute a few test
scripts (in case I screwed the build proccess) and it excutes them with no
problems at all, it just seems to dislike the pear installer.

Reproduce code:
---------------
Configure:
" ../configure \
  --prefix=/usr --enable-force-cgi-redirect --enable-fastcgi \
  --with-config-file-path=/etc/php5/cgi --enable-debug \
  --disable-static --enable-memory-limit --enable-inline-optimization
--enable-sysvsem \
  --enable-sysvshm --enable-sysvmsg --enable-track-vars --enable-trans-sid
\
  --enable-ftp --enable-pdo --enable-shmop --enable-soap \
  --enable-simplexml --enable-yp --with-curl --with-cdb \
  --with-gd \
    --enable-gd-native-ttf --with-jpeg-dir --with-xpm-dir --with-png-dir
--with-freetype-dir \
  --with-regex=system --with-layout=GNU --with-pear=/usr/share/php
--with-libxml-dir=/usr \
  --with-dom=/usr --with-xsl=/usr --with-sqlite --with-xml-reader
--with-xmlrpc \
  --with-zlib --with-pgsql --with-pdo-pgsql --with-openssl=/usr \
  --with-mime-magic=/usr/share/misc/file/magic.mime
--with-exec-dir=/usr/lib/php5/libexec --with-kerberos \ --without-mysql
--without-sybase \
  --without-sybase-ct --without-mm --without-tlib


Compile:

make


Install (installing to a temporary directory for packagin reasons):

make install-pear PHP_PEAR_PHP_BIN=php5
PHP_PEAR_INSTALL_DIR=/usr/share/php PHP_PEAR_SYSCONF_DIR=/etc/pear
INSTALL_ROOT=/path/to/temp/installdir

Expected result:
----------------
Installing PEAR environment:      /path/to/temp/installdir/usr/share/php/
make[2]: Entering directory `/path/to/builddir'
make[2]: *** [install-pear-installer] Illegal instruction
make[2]: Leaving directory `/path/to/builddir'
make[1]: *** [install-pear] Error 2
make[1]: Leaving directory `/path/to/builddir'
make: *** [install] Error 2


Actual result:
--------------
Backtrace from core dump:

#0  div_function (result=0xaf96a908, op1=0x895e1fc, op2=0x200) at
/usr/src/hitwise-packaging/php/php5/5.1.4/php-5.1.4/Zend/zend_operators.c:874
874                             result->value.dval = ((double)
op1->value.lval) / op2->value.lval;

(gdb) bt
#0  div_function (result=0xaf96a908, op1=0x895e1fc, op2=0x200) at
/usr/src/hitwise-packaging/php/php5/5.1.4/php-5.1.4/Zend/zend_operators.c:874
#1  0x08322774 in ZEND_DIV_SPEC_VAR_CONST_HANDLER
(execute_data=0xaf96aa80) at zend_vm_execute.h:7924
#2  0x083111b7 in execute (op_array=0x89ea20c) at zend_vm_execute.h:92
#3  0x08311e3e in zend_do_fcall_common_helper_SPEC
(execute_data=0xaf96ac30) at zend_vm_execute.h:234
#4  0x083111b7 in execute (op_array=0x89a30d0) at zend_vm_execute.h:92
#5  0x08311e3e in zend_do_fcall_common_helper_SPEC
(execute_data=0xaf96b3f0) at zend_vm_execute.h:234
#6  0x083111b7 in execute (op_array=0x889d514) at zend_vm_execute.h:92
#7  0x08311e3e in zend_do_fcall_common_helper_SPEC
(execute_data=0xaf96b800) at zend_vm_execute.h:234
#8  0x083111b7 in execute (op_array=0x88a4d48) at zend_vm_execute.h:92
#9  0x08311e3e in zend_do_fcall_common_helper_SPEC
(execute_data=0xaf96d2a0) at zend_vm_execute.h:234
#10 0x083111b7 in execute (op_array=0x85ad204) at zend_vm_execute.h:92
#11 0x08315814 in ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER
(execute_data=0xaf96d620) at zend_vm_execute.h:1971
#12 0x083111b7 in execute (op_array=0x858c888) at zend_vm_execute.h:92
#13 0x082f237e in zend_execute_scripts (type=8, retval=0x0, file_count=3)
at /usr/src/hitwise-packaging/php/php5/5.1.4/php-5.1.4/Zend/zend.c:1109
#14 0x082adfee in php_execute_script (primary_file=0xaf96fac0) at
/usr/src/hitwise-packaging/php/php5/5.1.4/php-5.1.4/main/main.c:1732
#15 0x08360875 in main (argc=12, argv=0xaf96fb94) at
/usr/src/hitwise-packaging/php/php5/5.1.4/php-5.1.4/sapi/cli/php_cli.c:1092

(gdb) frame 2
#2  0x083111b7 in execute (op_array=0x89ea20c) at zend_vm_execute.h:92
92                      if (EX(opline)->handler(&execute_data TSRMLS_CC) >
0) {


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

Reply via email to