Bug #63499 [NEW]: [configure] Oracle library version compatibility check fails on tail command

From: Date: Mon, 12 Nov 2012 22:24:03 +0000
Subject: Bug #63499 [NEW]: [configure] Oracle library version compatibility check fails on tail command
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-174645@lists.php.net to get a copy of this message
From: ch dot melin at gmail dot com Operating system: SunOS 5.10 / Solaris 10 PHP version: 5.4.8 Package: Compile Failure Bug Type: Bug Bug description:[configure] Oracle library version compatibility check fails on tail command 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 bug report at https://bugs.php.net/bug.php?id=63499&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63499&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63499&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63499&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=63499&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=63499&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=63499&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=63499&r=needscript Try newer version: https://bugs.php.net/fix.php?id=63499&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=63499&r=support Expected behavior: https://bugs.php.net/fix.php?id=63499&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=63499&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=63499&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=63499&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63499&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=63499&r=dst IIS Stability: https://bugs.php.net/fix.php?id=63499&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=63499&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=63499&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=63499&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=63499&r=mysqlcfg

« previous php.bugs (#174645) next »