From: jnavratil at houston dot rr dot com
Operating system: Fedora Core 5
PHP version: 5.1.3
PHP Bug Type: Compile Failure
Bug description: oci8.c doesn't compile against Oracle 8.0.5
Description:
------------
oci8.c references undeclared OCI_ATTR_SERVER_STATUS and OCI_SERVER_NORMAL
which are not defined in Oracle 8.0.5 headers (they appear to have been
first defined in 9i). The result is a compile failure of oci8.c.
Reproduce code:
---------------
configure --with-oci8=${ORACLE_HOME}
make
Expected result:
----------------
build of oci8 extension.
Actual result:
--------------
/bin/sh /usr/local/src/php-5.1.3/libtool --silent --preserve-dup-deps
--mode=compile gcc -Iext/oci8/ -I/usr/local/src/php-5.1.3/ext/oci8/
-DPHP_ATOM_INC -I/usr/local/src/php-5.1.3/include
-I/usr/local/src/php-5.1.3/main -I/usr/local/src/php-5.1.3
-I/usr/local/include/libxml2 -I/usr/local/ssl/include -I/usr/local/include
-I/usr/local/src/php-5.1.3/ext/date/lib -I/usr/local/include/freetype2
-I/u00/app/oracle/product/8.0.5/rdbms/demo
-I/u00/app/oracle/product/8.0.5/network/public
-I/u00/app/oracle/product/8.0.5/plsql/public
-I/usr/local/src/php-5.1.3/TSRM -I/usr/local/src/php-5.1.3/Zend
-D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -g -O2 -c
/usr/local/src/php-5.1.3/ext/oci8/oci8.c -o ext/oci8/oci8.lo
/usr/local/src/php-5.1.3/ext/oci8/oci8.c: In function
`php_oci_connection_status':
/usr/local/src/php-5.1.3/ext/oci8/oci8.c:1384: error:
`OCI_ATTR_SERVER_STATUS' undeclared (first use in this function)
/usr/local/src/php-5.1.3/ext/oci8/oci8.c:1384: error: (Each undeclared
identifier is reported only once
/usr/local/src/php-5.1.3/ext/oci8/oci8.c:1384: error: for each function it
appears in.)
/usr/local/src/php-5.1.3/ext/oci8/oci8.c:1386: error: `OCI_SERVER_NORMAL'
undeclared (first use in this function)
make: *** [ext/oci8/oci8.lo] Error 1
--
Edit bug report at http://bugs.php.net/?id=37284&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=37284&r=trysnapshot44
Try a CVS snapshot (PHP 5.1):
http://bugs.php.net/fix.php?id=37284&r=trysnapshot51
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=37284&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37284&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=37284&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37284&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37284&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37284&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37284&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37284&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=37284&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=37284&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37284&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37284&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37284&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37284&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37284&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37284&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37284&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37284&r=mysqlcfg