php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36340 ./configure error with OCI8 due to bad autoconf Macro
Submitted: 2006-02-09 15:11 UTC Modified: 2006-02-09 15:21 UTC
From: vador at via dot ecp dot fr Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5.1.2 OS: Redhat RHEL-3 update 6
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: vador at via dot ecp dot fr
New email:
PHP Version: OS:

 

 [2006-02-09 15:11 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-09 15:14 UTC] tony2001@php.net
Fixed in CVS 3 week ago.
 [2006-02-09 15:21 UTC] vador at via dot ecp dot fr
Thank you, I was not able to find this bug in the base :)
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 06 09:00:02 2026 UTC