|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18973 cannot build oci8 extension with Oracle8 client
Submitted: 2002-08-19 17:18 UTC Modified: 2002-08-20 03:31 UTC
From: long at kestrel dot cc dot ukans dot edu Assigned:
Status: Closed Package: OCI8 related
PHP Version: 4CVS-2002-08-19 OS: Compaq Tru64 4.0F PK3
Private report: No CVE-ID: None
 [2002-08-19 17:18 UTC] long at kestrel dot cc dot ukans dot edu
env CC=cc CXX=cxx ./configure --with-openssl --enable-bcmath --with-ndbm --with-dbm --enable-dbase --enable-filepro --enable-ftp --with-gd --with-ttf --with-java=/usr/opt/java130 --with-mysql --with-oci8 --with-oracle --enable-shmop --enable-sockets --enable-sysvsem --enable-sysvshm --enable-wddx --enable-dba=shared --enable-calendar --enable-exif --enable-discard-path --enable-dbx --enable-ctype --with-hyperwave --enable-mailparse --enable-mbstring --enable-mbstr-enc-trans --enable-memory-limit

is how I configured it.  The error is:

cc  -Iext/oci8/ -I/homeb/long/src/php4-200208191200/ext/oci8/ -DPHP_ATOM_INC -I/homeb/long/src/php4-200208191200/include -I/homeb/long/src/php4-200208191200/main -I/homeb/long/src/php4-200208191200 -I/homeb/long/src/php4-200208191200/Zend -I/usr/local/ssl/include -I/usr/local/include -I/home/oracle/u01/app/oracle/product/8.0.5/rdbms/demo -I/home/oracle/u01/app/oracle/product/8.0.5/network/public -I/home/oracle/u01/app/oracle/product/8.0.5/plsql/public -I/homeb/long/src/php4-200208191200/ext/xml/expat  -I/homeb/long/src/php4-200208191200/TSRM  -g  -c /homeb/long/src/php4-200208191200/ext/oci8/oci8.c -o ext/oci8/oci8.o  && echo > ext/oci8/oci8.lo
cc: Warning: /homeb/long/src/php4-200208191200/ext/oci8/oci8.c, line 3092: In this statement, & before array "buf" is ignored. (addrarray)
                while ((loblen = read(fp, &buf, sizeof(buf))) > 0) {
cc: Warning: /homeb/long/src/php4-200208191200/ext/oci8/oci8.c, line 3093: In this statement, & before array "buf" is ignored. (addrarray)
                        CALL_OCI_RETURN(connection->error, OCILobWrite(
cc: Error: /homeb/long/src/php4-200208191200/ext/oci8/oci8.c, line 4243: In this statement, "OCI_ATTR_STATEMENT" is not declared. (undeclared)
                        CALL_OCI_RETURN(statement->error, OCIAttrGet(
cc: Warning: /homeb/long/src/php4-200208191200/ext/oci8/oci8.c, line 4830: In the initializer for __s, the referenced type of the pointer value "(str)" is "unsigned char", which is not compatible with "signed char". (ptrmismatch)
*** Exit 1

OCI_ATTR_STATEMENT is found in $ORACLE_HOME/rdbms/demo/oci.h in the Oracle8i ( client.  However it is not in any header file in the Oracle8 client (8.0.5) on my system.  Thus I can no longer build the oci8 extension.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-19 18:01 UTC]
Verified on Linux with Oracle 8.0.5. The current HEAD does not build oci8 extension using that client.
 [2002-08-20 03:31 UTC]
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
In case this was a documentation problem, the fix will show up soon at

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

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Jun 03 18:06:02 2023 UTC