#35807 [Com]: Can't compile OCI8

From: Date: Mon, 26 Dec 2005 16:56:16 +0000
Subject: #35807 [Com]: Can't compile OCI8
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-91080@lists.php.net to get a copy of this message
 ID:               35807
 Comment by:       bolk at hitv dot ru
 Reported By:      bolk at lixil dot ru
 Status:           Open
 Bug Type:         OCI8 related
 Operating System: Linux Fedora Core 3
 PHP Version:      5.1.1
 New Comment:

It was part of my configure log


Previous Comments:
------------------------------------------------------------------------

[2005-12-26 17:54:48] bolk at hitv dot ru

checking for Oracle (OCI8) support using ORACLE_HOME installation...
yes
checking Oracle Install Directory... /usr/lib/oracle/10.2.0.1/client/
checking size of long int... 4
checking checking if we're at 64-bit platform... no
checking OCI8 libraries dir... lib
checking Oracle version... 10.1
checking for OCILobIsTemporary in -lclntsh... no
checking for OCILobIsTemporary in -locijdbc8... no
checking for OCICollAssign in -lclntsh... no
checking for Adabas support... no

------------------------------------------------------------------------

[2005-12-26 17:49:51] bolk at lixil dot ru

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 this bug report at http://bugs.php.net/?id=35807&edit=1


Thread (4 messages)

« previous php.bugs (#91080) next »