php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19340 Oracle 9i with PHP 4.2.3 and Apache 1.3.26 failed
Submitted: 2002-09-10 11:44 UTC Modified: 2002-09-17 11:35 UTC
From: itman at epost dot de Assigned:
Status: Closed Package: OCI8 related
PHP Version: 4.2.3 OS: SuSE Linux 7.3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: itman at epost dot de
New email:
PHP Version: OS:

 

 [2002-09-10 11:44 UTC] itman at epost dot de
The compilation of PHP 4.2.3 with correct environment (.profile of oracle user) with Oracle 9i and Apache 1.3.26 failed. The configure params are:

./configure \
--with-apache=/usr/src/linux/apache \
--with-config-file-path=/etc/httpd \
--with-gd \
--with-png-dir=/usr/lib \
--with-jpeg-dir=/usr/lib \
--with-zlib=yes \
--with-freetype-dir=/usr/lib \
--with-pdflib=/usr/local \
--enable-shared-pdflib \
--with-oci8=/apps/oracle/product/901 \
--with-xml \
--with-ttf \
--with-ftp \
--enable-track-vars \
--enable-sigchild \
--enable-versioning \
--enable-track-vars \
--enable-magic-quotes \
--enable-safe-mode \
--enable-sysvsem \
--enable-sysvshm \
--enable-thread-safety \

It failed with following output after testing out some configurations while compiling apache as php built-in:

/usr/i486-suse-linux/bin/ld: cannot find -lclntsh

The LD-Library-Path and the ORA-environment are correctly set.

regards... olaf

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-10 12:07 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip
 [2002-09-10 12:36 UTC] itman at epost dot de
Thanks for the information.

So, I tried to compile this version with the same configure params, but now it fails soon to configure with "libpng not found!"

I think, this problem based on the combination with the pdf-lib.
 [2002-09-10 17:03 UTC] edink@php.net
Did you install oracle development tools? Could you try locating clntsh.so on your system?
 [2002-09-11 09:56 UTC] itman at epost dot de
Oracle Development Kit 9.2.0.1.0 ist installed.

There is no clntsh.so installed but I found 
/oracle/product/901/lib/libclntsh.so
and
/oracle/product/901/bin/genclntsh
The path /oracle/product/901/lib/ is set correctly in the LD_LIBRARY_PATH
 [2002-09-17 04:22 UTC] tixier at france-loisirs dot com
Same problem with me. I have discovered two problems with OCI8 and Oracle 9.2:

1. 32/64 bits environment ? You have to use .../lib or .../lib32 libraries.
2. Bug in the configure file (initially the bug is ext/oci8/config.m4)

I finally get a correct installation by doing the following changes in the configure file:

if test -s "$OCI8_DIR/orainst/unix.rgs"; then
replaced by:
if test -s "$OCI8_DIR/install/unix.rgs"; then

OCI8_VERSION=`grep '"ocommon"' $OCI8_DIR/orainst/unix.rgs | sed 's/  */:/g' | cut -d: -f 6 | cut -c 2-4`
replaced by:
OCI8_VERSION=`grep rdbms $OCI8_DIR/install/unix.rgs |sed 's/  */:/g' | cut -d: -f 2| cut -c 1-3`

8.1|9.0)
replaced by:
8.1|9.0|9.1|9.2)

and for my own environment (AIX):
OCI8_DIR/lib changed to OCI8_DIR/lib32
OCI8_DIR/rdbms/lib changed to OCI8_DIR/rdbms/lib32

I hope this can help you.
 [2002-09-17 11:35 UTC] itman at epost dot de
Thanks for your information.

I use a 32 bits environment, so i have to use the .../lib, it´s ok.

I changed the configure script as below, changed the symbolic link from .../lib/libclntsh.so to a real copy of the .../lib/libclntsh.so file, and now the compilation runs without any errors.

The error was the symbolic link of the .so file....

Thanks to all
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 15:01:30 2024 UTC