php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22356 Cannot find file <stdio.h>
Submitted: 2003-02-21 09:48 UTC Modified: 2003-02-23 03:37 UTC
From: michael dot mauch at gmx dot de Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4CVS-2003-02-21 (stable) OS: Tru64 5.1
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: michael dot mauch at gmx dot de
New email:
PHP Version: OS:

 

 [2003-02-21 09:48 UTC] michael dot mauch at gmx dot de
Compilation fails both for PHP-4.3.1 and for php4-STABLE-200302211430 with the Compaq compiler.

% cc -V
Compaq C V6.3-025 on Compaq Tru64 UNIX V5.1 (Rev. 732)
Compiler Driver V6.3-026 (sys) cc Driver

% configure --with-oci8 --prefix=/house/elmicha/spe155/build

% make
[...]
cc -IZend/ -I/house/elmicha/local/src/php4-STABLE-200302211430/Zend/ -DPHP_ATOM_INC -I/house/elmicha/local/src/php4-STABLE-200302211430/include -I/house/elmicha/local/src/php4-STABLE-200302211430/main -I/house/elmicha/local/src/php4-STABLE-200302211430 -I/house/elmicha/local/src/php4-STABLE-200302211430/Zend -I/usr/app/oracle/product/8.1.7/rdbms/public -I/usr/app/oracle/product/8.1.7/rdbms/demo -I/house/elmicha/local/src/php4-STABLE-200302211430/ext/xml/expat -I/house/elmicha/local/src/php4-STABLE-200302211430/TSRM -g -c /house/elmicha/local/src/php4-STABLE-200302211430/Zend/zend_execute.c -o Zend/zend_execute.o && echo > Zend/zend_execute.lo
cc -I -Isapi/cgi/ -I/house/elmicha/local/src/php4-STABLE-200302211430/sapi/cgi/ -DPHP_ATOM_INC -I/house/elmicha/local/src/php4-STABLE-200302211430/include -I/house/elmicha/local/src/php4-STABLE-200302211430/main -I/house/elmicha/local/src/php4-STABLE-200302211430 -I/house/elmicha/local/src/php4-STABLE-200302211430/Zend -I/usr/app/oracle/product/8.1.7/rdbms/public -I/usr/app/oracle/product/8.1.7/rdbms/demo -I/house/elmicha/local/src/php4-STABLE-200302211430/ext/xml/expat -I/house/elmicha/local/src/php4-STABLE-200302211430/TSRM -g -c /house/elmicha/local/src/php4-STABLE-200302211430/sapi/cgi/cgi_main.c -o sapi/cgi/cgi_main.o && echo > sapi/cgi/cgi_main.lo
cc: Severe: /house/elmicha/local/src/php4-STABLE-200302211430/Zend/zend.h, line 35: Cannot find file <stdio.h> specified in #include directive. (noinclfilef)
#include <stdio.h>
-^
*** Error code 1

Stop.

/usr/include/stdio.h does of course exist. Apparently this compiler doesn't like "-I" without arguments, just like it doesn't like empty defines (see <http://bugs.php.net/bug.php?id=20752>). 

cc -IZend/ -Isapi/cgi/ ...

works fine.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-23 03:37 UTC] sniper@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 14:04:04 2025 UTC