|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17121 failed to make with OCI8 for oracle support
Submitted: 2002-05-09 10:48 UTC Modified: 2002-05-10 06:59 UTC
From: ndebeer at mweb dot com Assigned:
Status: Closed Package: OCI8 related
PHP Version: 4.2.0 OS: Redhat 7..2 &.7.3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
7 + 48 = ?
Subscribe to this entry?

 [2002-05-09 10:48 UTC] ndebeer at mweb dot com
Hi there we have tried with both Redhat 7.2 and 7.3 and php 4.1.1 and 4.2.0
I extracted the sorce to /usr/local/php4.2.0/
When doing a config(actualy config.nice) all works fine
below my config.nice
#! /bin/sh
# Created by configure
'./configure' \
'--with-apxs2=/usr/local/apache/bin/apxs' \
'--with-config-file-path=/usr/local/apache/conf' \
'--enable-versioning' \
'--with-mysql=/usr/local' \
'--enable-ftp' \
'--with-imap=/usr/local' \
'--with-gd=/usr/local/gd1.3' \
'--enable-bcmath' \
'--disable-debug' \
'--enable-memory-limit=yes' \
'--enable-track-vars' \
'--with-oci8=/home/oracle/OraHome1' \

when doing a make I get a failure in the php_oci8.h file
Below is the last few lines of the terminal output
I can't find anything that tels me what is going wrong everything looks right and in place please,,please can you help

-I/usr/local/gd1.3/ -I/usr/local/include -I/usr/local/include/mysql -I/home/oracle/OraHome1/rdbms/demo -I/home/oracle/OraHome1/plsql/public -I/usr/local/php-4.2.0/ext/xml/expat  -D_REENTRANT -I/usr/local/php-4.2.0/TSRM -g -O2 -pthread -DZTS -prefer-pic  -c internal_functions.c
In file included from internal_functions.c:38:
/usr/local/php-4.2.0/ext/oci8/php_oci8.h:52:17: oci.h: No such file or directorymake[2]: *** [internal_functions.lo] Error 1
make[2]: Leaving directory `/usr/local/php-4.2.0/main'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/php-4.2.0/main'
make: *** [all-recursive] Error 1


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-09 10:57 UTC]
Which version of Oracle do you have installed?
There shoud be oci.h in /home/oracle/OraHome1/rdbms/demo, if its not there could you try finding the file under $ORACLE_HOME (/home/oracle/OraHome1).

 [2002-05-09 11:19 UTC] ndebeer at mweb dot com
Gee!! you responded quickly
I'm using oracle9i
And no i don't have it on my system
 [2002-05-09 11:49 UTC]
You need at least Oracle client installed in order to compile PHP. For more info see
 [2002-05-10 05:05 UTC] ndebeer at mweb dot com
Ok, so i have oracle client installed but i did not do a administrativr install
So I did that last night
now we are getting past that problem
What happens now is that it states that ld can't find -lclntsh

what now
I'm just reinstalling maybe i'll get past this
 but anay suggestion is welcome
 [2002-05-10 06:29 UTC] ndebeer at mweb dot com
here is just a bit more info
lib directory of Oracle_home has been sepcified in ld as an atempt to make it work I also treid to create ln  to libcnlntsh.s0.9*** 
but still can't find it
here is an extract of the make terminal output
Please help i'm lost now

l/ /usr/local/php-4.2.0/ext/oci8/ /usr/local/php-4.2.0/ext/pcre/ /usr/local/php-4.2.0/ext/posix/ /usr/local/php-4.2.0/ext/session/ /usr/local/php-4.2.0/ext/standard/ /usr/local/php-4.2.0/ext/xml/ TSRM/ -lc-client -lm -ldl -lmysqlclient -lcrypt -lgd -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lcrypt -lclntsh -ldl
/usr/bin/ld: cannot find -lclntsh
collect2: ld returned 1 exit status
make[1]: *** [] Error 1
make[1]: Leaving directory `/usr/local/php-4.2.0'
make: *** [all-recursive] Error 1
 [2002-05-10 06:45 UTC]
Is the directory in which this library is listed in /etc/ ?
And did you tun ldconfig?

 [2002-05-10 06:59 UTC] ndebeer at mweb dot com
Yip done that that is what catches me does it by any change have to do with pthread ??
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Dec 09 13:01:27 2023 UTC