php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25588 Make failure with OCI8 for Oracle support
Submitted: 2003-09-18 10:04 UTC Modified: 2003-09-19 00:49 UTC
From: russell dot edwards at cplaromas dot com Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: 4.3.3 OS: RedHat 9
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: russell dot edwards at cplaromas dot com
New email:
PHP Version: OS:

 

 [2003-09-18 10:04 UTC] russell dot edwards at cplaromas dot com
Description:
------------
Hi,

I am trying to install PHP 4.3.3 with Oracle support so that I can connect to an Oracle database running on another server.

The configure script runs successfully:

./configure --with-oci8 --with-oracle --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache/bin/apxs --enable-sigchild

however, when I run the make command it terminates with the following error:

make: *** [ext/oci8/oci8.lo] Error 1

I have installed the Oracle client (version 9.2.0.1.0).  Using the Oracle Net Configuration Assistant I can successfully connect to my database.

PHP will make, install and run successfully if I only install with with apache and MySQL support but when I add oracle the make falls over.

The problem I have is just getting PHP to compile with Oracle support.  Is there a known fix to this problem that I'm missing or am I doing something fundamentally stupid? :-)

Many Thanks,

Russ

Actual result:
--------------
The actual result is massive, so I have just included a sample below but can forward the full result if necessary.

[root@dev2bh php-4.3.3]# make
/bin/sh /home/redwards/php-4.3.3/libtool --silent --preserve-dup-deps --mode=compile gcc  -Iext/oci8/ -I/home/redwards/php-4.3.3/ext/oci8/ -DPHP_ATOM_INC -I/home/redwards/php-4.3.3/include -I/home/redwards/php-4.3.3/main -I/home/redwards/php-4.3.3 -I/home/redwards/php-4.3.3/Zend -I/usr/local/mysql/include/mysql -I/home/oracle/product/9.2.0.1.0/rdbms/demo -I/home/redwards/php-4.3.3/ext/xml/expat  -I/home/redwards/php-4.3.3/TSRM  -g -O2  -prefer-pic -c /home/redwards/php-4.3.3/ext/oci8/oci8.c -o ext/oci8/oci8.lo 
In file included from /home/redwards/php-4.3.3/ext/oci8/oci8.c:69:
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:52:17: oci.h: No such file or directory
In file included from /home/redwards/php-4.3.3/ext/oci8/oci8.c:69:
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:59: parse error before "OCIServer"
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:59: warning: no semicolon at end of struct or union
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:63: warning: data definition has no type or storage class
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:71: parse error before "oci_server"
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:71: warning: no semicolon at end of struct or union
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:72: warning: data definition has no type or storage class
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:73: parse error before '*' token
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:73: warning: data definition has no type or storage class
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:74: parse error before "charsetId"
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:74: warning: data definition has no type or storage class
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:75: warning: data definition has no type or storage class
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:80: parse error before "oci_session"
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:80: warning: no semicolon at end of struct or union
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:81: warning: data definition has no type or storage class
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:82: parse error before "error"
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:82: warning: data definition has no type or storage class
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:83: parse error before '*' token
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:83: warning: data definition has no type or storage class
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:85: parse error before '}' token
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:85: warning: data definition has no type or storage class
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:89: parse error before "oci_connection"
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:89: warning: no semicolon at end of struct or union
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:90: warning: data definition has no type or storage class
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:91: parse error before "type"
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:91: warning: data definition has no type or storage class
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:92: warning: data definition has no type or storage class
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:96: parse error before "oci_connection"
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:96: warning: no semicolon at end of struct or union
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:97: warning: data definition has no type or storage class
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:98: parse error before "coll_typecode"
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:98: warning: data definition has no type or storage class
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:99: parse error before '*' token
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:99: warning: data definition has no type or storage class
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:100: parse error before '*' token
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:100: warning: data definition has no type or storage class
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:101: parse error before "element_typecode"
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:101: warning: data definition has no type or storage class
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:102: parse error before '*' token
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:102: warning: data definition has no type or storage class
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:103: parse error before '}' token
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:103: warning: data definition has no type or storage class
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:107: parse error before "text"
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:107: warning: no semicolon at end of struct or union
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:108: warning: data definition has no type or storage class
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:109: parse error before "type"
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:109: warning: data definition has no type or storage class
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:110: warning: data definition has no type or storage class
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:114: parse error before "oci_connection"
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:114: warning: no semicolon at end of struct or union
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:115: warning: data definition has no type or storage class
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:116: parse error before '*' token
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:116: warning: data definition has no type or storage class
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:117: parse error before '*' token
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:117: warning: data definition has no type or storage class
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:125: parse error before "stmttype"
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:125: warning: data definition has no type or storage class
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:126: warning: data definition has no type or storage class
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:129: parse error before "OCIBind"
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:129: warning: no semicolon at end of struct or union
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:130: `zval' redeclared as different kind of symbol
/home/redwards/php-4.3.3/Zend/zend.h:211: previous declaration of `zval'
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:131: parse error before '*' token
/home/redwards/php-4.3.3/ext/oci8/php_oci8.h:131: warning: data definition has no type or storage class

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-19 00:49 UTC] sniper@php.net
See the first lines:
...
In file included from /home/redwards/php-4.3.3/ext/oci8/php_oci8.h:52:17: oci.h: No such file or directory
...

Your oracle installation is broken. You propably didn't install the package which has the header files.

Or our configure script fails to detect the version correctly. You don't need --with-oracle btw..

 [2003-11-12 11:40 UTC] fernando at napl dot com dot br
I have similar problem and don?t find the solution...

I have a oracle 9.02 client install success and connecting on the server base is ok, but on make the list of errors is same!!!!

thanx for any support.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 21:01:27 2025 UTC