Edit report at https://bugs.php.net/bug.php?id=63499&edit=1

 ID:                 63499
 Updated by:         [email protected]
 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

Reply via email to