php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35807 Can't compile OCI8
Submitted: 2005-12-26 17:49 UTC Modified: 2005-12-26 17:59 UTC
From: bolk at lixil dot ru Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: 5.1.1 OS: Linux Fedora Core 3
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: bolk at lixil dot ru
New email:
PHP Version: OS:

 

 [2005-12-26 17:49 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-26 17:54 UTC] 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:56 UTC] bolk at hitv dot ru
It was part of my configure log
 [2005-12-26 17:59 UTC] tony2001@php.net
1) Use new OCI8 available from PECL (and in 5.1.2-CVS).
2) I don't get what are you trying to do:
If you have the Oracle server, then you need to use ORACLE_HOME as the value for --with-oci8
For some weird reason you're trying to use Oracle Instant Client (while you already have the client that goes with the server), but using OIC requires --with-oci8=instantclient,<DIR> syntax.
No bug, but total mess on user side.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 13:01:33 2025 UTC