Bug #63499 [Opn->Dup]: [configure] Oracle library version compatibility check fails on tail command
| From: | sixd@php.net | Date: | Wed, 14 Nov 2012 01:55:59 +0000 |
| Subject: | Bug #63499 [Opn->Dup]: [configure] Oracle library version compatibility check fails on tail command | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-174660@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63499&edit=1
ID: 63499
Updated by: sixd@php.net
Reported by: ch dot melin at gmail dot com
Summary: [configure] Oracle library version compatibility
check fails on tail command
-Status: Open
+Status: Duplicate
Type: Bug
Package: Compile Failure
Operating System: SunOS 5.10 / Solaris 10
PHP Version: 5.4.8
-Assigned To:
+Assigned To: sixd
Block user comment: N
Private report: N
New Comment:
This change was already re-fixed for https://bugs.php.net/bug.php?id=60901
Use PECL OCI8 1.4.9 or wait for next month's PHP release.
Previous Comments:
------------------------------------------------------------------------
[2012-11-12 22:24:03] ch dot melin at gmail dot com
Description:
------------
From PHP 5.4.8, we can see the following changes in the configure file compared to previous PHP
releases:
PHP 5.4.8 / configure :
$as_echo_n "checking Oracle library version compatibility... " >&6; }
OCI8_LCS_BASE=$OCI8_DIR/$OCI8_LIB_DIR/libclntsh.$SHLIB_SUFFIX_NAME
OCI8_LCS=
ls $OCI8_LCS_BASE.*.1 2> /dev/null | tail -n1 # Oracle 10g, 11g etc
PHP 5.4.7 / configure :
$as_echo_n "checking Oracle library version compatibility... " >&6; }
OCI8_LCS_BASE=$OCI8_DIR/$OCI8_LIB_DIR/libclntsh.$SHLIB_SUFFIX_NAME
OCI8_LCS=ls $OCI8_LCS_BASE.*.1 2> /dev/null | tail -1 # Oracle 10g, 11g etc
When configuring with --with-oci8=shared and a valid ORACLE_HOME environment variable set, configure
fails with the following error message:
checking Oracle ORACLE_HOME install directory... /u01/app/oracle/product/11107
checking ORACLE_HOME library validity... lib32
checking Oracle library version compatibility... usage: tail [+/-[n][lbc][f]] [file]
tail [+/-[n][l][r|f]] [file]
configure: error: Oracle libclntsh.so client library not found
Indeed, the tail command syntax is incorrect.
cmelin@bt1sss:/$ tail -n1
usage: tail [+/-[n][lbc][f]] [file]
tail [+/-[n][l][r|f]] [file]
The syntax in previous PHP releases was OK:
cmelin@bt1sss:/$ echo 'test' | tail -1
test
Reverting to tail -1 instead of tail -n1 in the configure file of PHP 5.4.8 solves this issue.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63499&edit=1