ID: 27748
Comment by: bd at l3 dot com
Reported By: Brian dot Duke at level3 dot com
Status: Open
Bug Type: Compile Failure
Operating System: redhat 9.0
PHP Version: 4.3.5
New Comment:
here is the error I was trying to avoid by upgrading:
[EMAIL PROTECTED] php-4.2.2]# php /var/www/html/swap/swap.php
Warning: shell_exec(): Cannot execute using backquotes in Safe Mode in
/var/www/html/swap/swap.php on line 3
[EMAIL PROTECTED] php-4.2.2]#cat /var/www/html/swap/swap.php
<?php
$data = shell_exec("free -b");
$data = str_replace(' ',' ',$data);
$data = str_replace(' ',' ',$data);
$data = str_replace(' ',' ',$data);
$data = str_replace(' ',' ',$data);
$dataArray = explode(' ',$data);
$total = $dataArray[16];
$used = $dataArray[17];
echo $used.chr(10);
echo $total.chr(10);
?>
Previous Comments:
------------------------------------------------------------------------
[2004-03-29 05:38:57] Brian dot Duke at level3 dot com
Description:
------------
here is what happened. I am trying to upgrade my php package on my
redhat9 server. I bypassed the rpm and tried to install via ./configure
the configure had some issues so I loaded required deps. like 15 of
them. finally it ran clean. I typed in "make" and that went 99% ok then
died at the very end. see below
Reproduce code:
---------------
I have been plagued with an shell_exec issue. "Warning: exec commans
using backticks cannot be run in Safe Mode" I looked and found that the
best known fix was to upgrade. my previous version of php was 4.2.2.
Expected result:
----------------
I configured the new php version 4.3.5 using standard --with-stuff=
commands. after 12 hours I'm sure it's messed up good.
Actual result:
--------------
The result was so
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/bin/sh /home/bduke/downloads/php/php-4.3.5/libtool --silent
--preserve-dup-deps --mode=compile gcc -I/usr/local/include -Iext/odbc/
-I/home/
bduke/downloads/php/php-4.3.5/ext/odbc/ -DPHP_ATOM_INC
-I/home/bduke/downloads/php/php-4.3.5/include
-I/home/bduke/downloads/php/php-4.3.5/ma
in -I/home/bduke/downloads/php/php-4.3.5
-I/home/bduke/downloads/php/php-4.3.5/Zend -I/usr/kerberos/include
-I/usr/include/libxml2 -I/usr/inc
lude/freetype2 -I/usr/local/mysql/include -I/usr/include/ncurses
-I/home/bduke/downloads/php/php-4.3.5/TSRM -g -O2 -prefer-pic -c
/home/bd
uke/downloads/php/php-4.3.5/ext/odbc/php_odbc.c -o
ext/odbc/php_odbc.lo
In file included from
/home/bduke/downloads/php/php-4.3.5/ext/odbc/php_odbc.c:37:
/home/bduke/downloads/php/php-4.3.5/ext/odbc/php_odbc_includes.h:118:17:
sql.h: No such file or directory
/home/bduke/downloads/php/php-4.3.5/ext/odbc/php_odbc_includes.h:119:20:
sqlext.h: No such file or directory
In file included from
/home/bduke/downloads/php/php-4.3.5/ext/odbc/php_odbc.c:37:
/home/bduke/downloads/php/php-4.3.5/ext/odbc/php_odbc_includes.h:208:
parse error before "SQLHANDLE"
/home/bduke/downloads/php/php-4.3.5/ext/odbc/php_odbc_includes.h:208:
warning: no semicolon at end of struct or union
/home/bduke/downloads/php/php-4.3.5/ext/odbc/php_odbc_includes.h:209:
warning: data definition has no type or storage class
/home/bduke/downloads/php/php-4.3.5/ext/odbc/php_odbc_includes.h:211:
`SQL_MAX_MESSAGE_LENGTH' undeclared here (not in a function)
/home/bduke/downloads/php/php-4.3.5/ext/odbc/php_odbc_includes.h:214:
parse error before '}' token
/home/bduke/downloads/php/php-4.3.5/ext/odbc/php_odbc_includes.h:214:
warning: data definition has no type or storage class
/home/bduke/downloads/php/php-4.3.5/ext/odbc/php_odbc_includes.h:220:
parse error before "SDWORD"
/home/bduke/downloads/php/php-4.3.5/ext/odbc/php_odbc_includes.h:220:
warning: no semicolon at end of struct or union
/home/bduke/downloads/php/php-4.3.5/ext/odbc/php_odbc_includes.h:221:
warning: data definition has no type or storage class
/home/bduke/downloads/php/php-4.3.5/ext/odbc/php_odbc_includes.h:224:
parse error before "SQLHANDLE"
/home/bduke/downloads/php/php-4.3.5/ext/odbc/php_odbc_includes.h:224:
warning: no semicolon at end of struct or union
/home/bduke/downloads/php/php-4.3.5/ext/odbc/php_odbc_includes.h:226:
parse error before '*' token
/home/bduke/downloads/php/php-4.3.5/ext/odbc/php_odbc_includes.h:226:
warning: data definition has no type or storage class
/home/bduke/downloads/php/php-4.3.5/ext/odbc/php_odbc_includes.h:227:
parse error before "numcols"
/home/bduke/downloads/php/php-4.3.5/ext/odbc/php_odbc_includes.h:227:
warning: data definition has no type or storage class
/home/bduke/downloads/php/php-4.3.5/ext/odbc/php_odbc_includes.h:228:
parse error before "numparams"
/home/bduke/downloads/php/php-4.3.5/ext/odbc/php_odbc_includes.h:228:
warning: data definition has no type or storage class
/home/bduke/downloads/php/php-4.3.5/ext/odbc/php_odbc_includes.h:235:
parse error before '*' token
/home/bduke/downloads/php/php-4.3.5/ext/odbc/php_odbc_includes.h:235:
warning: data definition has no type or storage class
/home/bduke/downloads/php/php-4.3.5/ext/odbc/php_odbc_includes.h:236:
parse error before '}' token
/home/bduke/downloads/php/php-4.3.5/ext/odbc/php_odbc_includes.h:236:
warning: data definition has no type or storage class
/home/bduke/downloads/php/php-4.3.5/ext/odbc/php_odbc_includes.h:252:
`SQL_MAX_MESSAGE_LENGTH' undeclared here (not in a function)
/home/bduke/downloads/php/php-4.3.5/ext/odbc/php_odbc_includes.h:255:
confused by earlier errors, bailing out
make: *** [ext/odbc/php_odbc.lo] Error 1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27748&edit=1