#36340 [NEW]: ./configure error with OCI8 due to bad autoconf Macro

From: Date: Thu, 09 Feb 2006 14:11:36 +0000
Subject: #36340 [NEW]: ./configure error with OCI8 due to bad autoconf Macro
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-93072@lists.php.net to get a copy of this message
From:             vador at via dot ecp dot fr
Operating system: Redhat RHEL-3 update 6
PHP version:      5.1.2
PHP Bug Type:     Compile Failure
Bug description:  ./configure error with OCI8 due to bad autoconf Macro

Description:
------------
When launching ./configure with oci (normal oci or instant-client), there
is an error in the script which prevent from compiling correctly with
OCI.
I traced this to an incorrect autoconf macro ($PHP_OCI_SED instead of
$PHP_OCI8_SED) in an .m4 file.
Here are the command I used, the error message and the path file I used
(you have to re-run autoconf after this).

Reproduce code:
---------------
[rpmbuild@truc php-5.1.2]$ ./configure
--with-oci8=shared,instantclient,/usr/lib/oracle/10.1.0.4/client/lib/
loading cache ./config.cache
checking for Cygwin environment... (cached) no
[...]
checking for Oracle (OCI8) support... yes, shared
checking Oracle Instant Client directory...
/usr/lib/oracle/10.1.0.4/client/lib/
checking Oracle Instant Client SDK header directory...
/usr/include/oracle/10.1.0.4/client
./configure: line 1: -e: command not found
checking Oracle Instant Client version... 10.1
[...]




Actual result:
--------------
Here is the .patch I made :

Incorrect autoconf macro - Damien Salvador
--- php-5.1.2/ext/oci8/config.m4.sed	2006-01-31 14:59:00.000000000 +0100
+++ php-5.1.2/ext/oci8/config.m4	2006-01-31 15:00:27.000000000 +0100
@@ -69,7 +69,7 @@
 AC_DEFUN([AC_OCI8_VERSION],[
   AC_MSG_CHECKING([Oracle version])
   if test -s "$OCI8_DIR/orainst/unix.rgs"; then
-    OCI8_VERSION=`grep '"ocommon"' $OCI8_DIR/orainst/unix.rgs |
$PHP_OCI_SED 's/[ ][ ]*/:/g' | cut -d: -f 6 | cut -c 2-4`
+    OCI8_VERSION=`grep '"ocommon"' $OCI8_DIR/orainst/unix.rgs |
$PHP_OCI8_SED 's/[ ][ ]*/:/g' | cut -d: -f 6 | cut -c 2-4`
     test -z "$OCI8_VERSION" && OCI8_VERSION=7.3
   elif test -f $OCI8_DIR/$OCI8_LIB_DIR/libclntsh.$SHLIB_SUFFIX_NAME.10.1;
then
     OCI8_VERSION=10.1    
@@ -332,7 +332,7 @@
     AC_MSG_ERROR([Oracle Instant Client SDK header files not found])
   fi
 
-  OCISYSLIBLIST=`echo "$OCI8INCDIR" | $PHP_OCI_SED -e
's!\(.*\)/include$!\1/demo/sysliblist!'`
+  OCISYSLIBLIST=`echo "$OCI8INCDIR" | $PHP_OCI8_SED -e
's!\(.*\)/include$!\1/demo/sysliblist!'`
   if test -f "$OCISYSLIBLIST"; then
     PHP_EVAL_LIBLINE(cat $OCISYSLIBLIST, OCI8_SYSLIB)
   fi


-- 
Edit bug report at http://bugs.php.net/?id=36340&edit=1
-- 
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36340&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36340&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36340&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=36340&r=fixedcvs
Fixed in release:             http://bugs.php.net/fix.php?id=36340&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=36340&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=36340&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=36340&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=36340&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=36340&r=notwrong
Not enough info:              http://bugs.php.net/fix.php?id=36340&r=notenoughinfo
Submitted twice:              http://bugs.php.net/fix.php?id=36340&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=36340&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=36340&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=36340&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=36340&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=36340&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=36340&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=36340&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=36340&r=mysqlcfg


Thread (3 messages)

« previous php.bugs (#93072) next »