From: bolk at lixil dot ru
Operating system: Linux Fedora Core 3
PHP version: 5.1.1
PHP Bug Type: OCI8 related
Bug description: Can't compile OCI8
Description:
------------
Can't compile OCI8 module.
When I try to make PHP I get a lot of errors.
------------------------------------------------------------
> uname -a
Linux hulk 2.6.14.4 #1 SMP Sat Dec 24 14:01:23 MSK 2005 i686 i686 i386
GNU/Linux
> find $ORACLE_HOME -name oci.h
/home/bolk/product/10.1.0/Db_1/rdbms/public/oci.h
> grep @OCI config.status
s%@OCI8_SHARED_LIBADD@%%g
s%@OCI8_DIR@%/usr/lib/oracle/10.2.0.1/client/%g
s%@OCI8_VERSION@%10.1%g
Reproduce code:
---------------
### Extracting archive
tar xvfj php-5.1.1.tar.bz2
#### Set some variables
ORACLE_SID=orcl
ORACLE_HOME=/home/bolk/product/10.1.0/Db_1
TNS_ADMIN=/home/bolk/product/10.1.0/Db_1/network/admin
LD_LIBRARY_PATH=/home/bolk/product/10.1.0/Db_1/lib:/home/bolk/product/10.1.0/Db_1/jdk/jre/lib/i386/client:/home/bolk/product/10.1.0/Db_1/jdk/jre/lib/i386:/home/bolk/product/10.1.0/Db_1/jdk/jre/../lib/i386:/home/bolk/product/10.1.0/Db_1/lib32:/home/bolk/product/10.1.0/Db_1/network/lib32:/home/bolk/product/10.1.0/Db_1/lib:/home/bolk/product/10.1.0/Db_1/network/lib:/home/bolk/product/10.1.0/Db_1/lib:/home/bolk/product/10.1.0/Db_1/network/lib
ORA_NET2_DESC=16,19
ORACLE_SPAWNED_PROCESS=1
ORACLE_INCLUDE=/home/bolk/product/10.1.0/Db_1/rdbms/public/
#### configure
cd php-5.1.1
./configure --with-oci8=/usr/lib/oracle/10.2.0.1/client/
--enable-sigchild
#### make
make
Expected result:
----------------
all operations has been done ok
Actual result:
--------------
In file included from /usr/src/php-5.1.1/ext/oci8/oci8.c:71:
/usr/src/php-5.1.1/ext/oci8/php_oci8.h:52:17: oci.h: No such file or
directory
In file included from /usr/src/php-5.1.1/ext/oci8/oci8.c:71:
/usr/src/php-5.1.1/ext/oci8/php_oci8.h:63: error: syntax error before
"OCIServer"
/usr/src/php-5.1.1/ext/oci8/php_oci8.h:63: warning: no semicolon at end of
struct or union
/usr/src/php-5.1.1/ext/oci8/php_oci8.h:67: warning: data definition has no
type or storage class
/usr/src/php-5.1.1/ext/oci8/php_oci8.h:80: error: syntax error before
"oci_server"
/usr/src/php-5.1.1/ext/oci8/php_oci8.h:80: warning: no semicolon at end of
struct or union
/usr/src/php-5.1.1/ext/oci8/php_oci8.h:81: warning: data definition has no
type or storage class
/usr/src/php-5.1.1/ext/oci8/php_oci8.h:82: error: syntax error before '*'
token
/usr/src/php-5.1.1/ext/oci8/php_oci8.h:82: warning: data definition has no
type or storage class
/usr/src/php-5.1.1/ext/oci8/php_oci8.h:83: error: syntax error before
"charsetId"
/usr/src/php-5.1.1/ext/oci8/php_oci8.h:83: warning: data definition has no
type or storage class
/usr/src/php-5.1.1/ext/oci8/php_oci8.h:84: warning: data definition has no
type or storage
and so on
--
Edit bug report at http://bugs.php.net/?id=35807&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35807&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35807&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35807&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=35807&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35807&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35807&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35807&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35807&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35807&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35807&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=35807&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=35807&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35807&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35807&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35807&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35807&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35807&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35807&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35807&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35807&r=mysqlcfg