#36340 [Opn->Csd]: ./configure error with OCI8 due to bad autoconf Macro

From: Date: Thu, 09 Feb 2006 14:14:40 +0000
Subject: #36340 [Opn->Csd]: ./configure error with OCI8 due to bad autoconf Macro
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-93073@lists.php.net to get a copy of this message
 ID:               36340
 Updated by:       tony2001@php.net
 Reported By:      vador at via dot ecp dot fr
-Status:           Open
+Status:           Closed
 Bug Type:         Compile Failure
 Operating System: Redhat RHEL-3 update 6
 PHP Version:      5.1.2
 New Comment:

Fixed in CVS 3 week ago.


Previous Comments:
------------------------------------------------------------------------

[2006-02-09 15:11:34] vador at via dot ecp dot fr

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 this bug report at http://bugs.php.net/?id=36340&edit=1


Thread (3 messages)

« previous php.bugs (#93073) next »