|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-02-09 15:14 UTC] tony2001@php.net
[2006-02-09 15:21 UTC] vador at via dot ecp dot fr
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 06 20:00:02 2026 UTC |
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