#23412 [WFx]: Invalid Oracle version (8.05) detection

From: Date: Wed, 30 Apr 2003 07:29:59 +0000
Subject: #23412 [WFx]: Invalid Oracle version (8.05) detection
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-38785@lists.php.net to get a copy of this message
ID: 23412 User updated by: g dot noel at symphonieonline dot com Reported By: g dot noel at symphonieonline dot com Status: Wont fix Bug Type: *Configuration Issues Operating System: Linux Debian PHP Version: 4CVS-2003-04-29 (stable) New Comment: Editing the file !? It's okay for me... But why not apply any simple patch, like this one : # diff -u configure configure-fix --- configure 2003-04-30 08:29:51.000000000 +0200 +++ configure-fix 2003-04-30 08:55:24.000000000 +0200 @@ -50861,10 +50861,7 @@ echo $ac_n "checking Oracle version""... $ac_c" 1>&6 echo "configure:50864: checking Oracle version" >&5 - if test -s "$OCI8_DIR/orainst/unix.rgs"; then - OCI8_VERSION=`grep '"ocommon"' $OCI8_DIR/orainst/unix.rgs | sed 's/ */:/g' | cut -d: -f 6 | cut -c 2-4` - test -z "$OCI8_VERSION" && OCI8_VERSION=7.3 - elif test -f $OCI8_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.9.0; then + if test -f $OCI8_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.9.0; then OCI8_VERSION=9.0 elif test -f $OCI8_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.8.0; then OCI8_VERSION=8.1 @@ -50877,7 +50874,12 @@ OCI8_VERSION=8.1 fi else - { echo "configure: error: Oracle-OCI8 needed libraries not found" 1>&2; exit 1; } + if test -s "$OCI8_DIR/orainst/unix.rgs"; then + OCI8_VERSION=`grep '"ocommon"' $OCI8_DIR/orainst/unix.rgs | sed 's/ */:/g' | cut -d: -f 6 | cut -c 2-4` + test -z "$OCI8_VERSION" && OCI8_VERSION=7.3 + else + { echo "configure: error: Oracle-OCI8 needed libraries not found" 1>&2; exit 1; } + fi fi echo "$ac_t""$OCI8_VERSION" 1>&6 Previous Comments: ------------------------------------------------------------------------ [2003-04-29 10:27:42] sniper@php.net You can always edit that file. ------------------------------------------------------------------------ [2003-04-29 09:38:01] g dot noel at symphonieonline dot com Configure failed detecting Oracle Version (8.0.5.0.0) because, in this version of Oracle the unix.rgs file is not "well formatted". Indeed, the "version" field is the 5th and not the 6th : OCI8_VERSION=`grep '"ocommon"' $OCI8_DIR/orainst/unix.rgs | sed 's/ */:/g' | cut -d: -f 6 | cut -c 2-4` ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23412&edit=1

« previous php.bugs (#38785) next »