php.net |  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
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: ndebeer at mweb dot com
New email:
PHP Version: OS:

 

 [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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-09 10:57 UTC] edink@php.net
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] edink@php.net
You need at least Oracle client installed in order to compile PHP. For more info see http://www.php.net/manual/en/ref.oci8.php
 [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/libmysql.la /usr/local/php-4.2.0/ext/oci8/liboci8.la /usr/local/php-4.2.0/ext/pcre/libpcre.la /usr/local/php-4.2.0/ext/posix/libposix.la /usr/local/php-4.2.0/ext/session/libsession.la /usr/local/php-4.2.0/ext/standard/libstandard.la /usr/local/php-4.2.0/ext/xml/libxml.la TSRM/libtsrm.la -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]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/usr/local/php-4.2.0'
make: *** [all-recursive] Error 1
 [2002-05-10 06:45 UTC] derick@php.net
Is the directory in which this library is listed in /etc/ld.so.conf ?
And did you tun ldconfig?

Derick
 [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-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 09 04:01:27 2024 UTC