php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27748 ./configure works make crashed
Submitted: 2004-03-29 05:38 UTC Modified: 2004-03-29 10:59 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: Brian dot Duke at level3 dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.5 OS: redhat 9.0
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: Brian dot Duke at level3 dot com
New email:
PHP Version: OS:

 

 [2004-03-29 05:38 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-29 05:44 UTC] bd at l3 dot com
here is the error I was trying to avoid by upgrading:

[root@rain 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

[root@rain 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);
?>
 [2004-03-29 08:31 UTC] iliaa@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Your compile fails because your system is missing sql.h 
header or the compiler cannot find it. 
 
P.S. The safe mode error you are seeing is not a bug and 
will appear in 4.3.5 as well, since shell_exec() == ``. 
 [2004-03-29 10:59 UTC] Brian dot Duke at level3 dot com
thanks. I appreciate the P.S. too. Just a little note further. safe mode is explicitly turned off on my server in every way possible. Especially in php.ini, 
; Safe Mode
;
safe_mode = Off
safe_mode_gid = Off

yet shell_exec() still complains. and will mot run
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 09:01:29 2024 UTC