From: babt at us dot ibm dot com Operating system: Mac OS X 10.5 PHP version: 5.2.4 PHP Bug Type: *Configuration Issues Bug description: configure fails checking for c++ compiler
Description: ------------ When running configure, process fails to properly detect c++ due to previous failure to remove a directory. Below is the stream from the script. Configuring libtool checking build system type... i686-apple-darwin9.0.0 checking for ld used by gcc... /usr/libexec/gcc/i686-apple- darwin9/4.0.1/ld checking if the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) is GNU ld... no checking for /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -p checking how to recognise dependent libraries... pass_all checking for object suffix... o checking for executable suffix... rm: conftest.dSYM: is a directory .dSYM checking for c++... c++ checking whether the C++ compiler (c++ ) works... no configure: error: installation or configuration problem: C++ compiler cannot create executables. Reproduce code: --------------- Plain vanilla OS X 10.5 Leopard build with Xcode 3.0 tools installed. Expected result: ---------------- Configuring libtool checking build system type... i686-apple-darwin9.0.0 checking for ld used by /Developer/usr/bin/cc... /Developer/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld checking if the linker (/Developer/usr/libexec/gcc/i686-apple- darwin9/4.0.1/ld) is GNU ld... no checking for /Developer/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld option to reload object files... -r checking for BSD-compatible nm... /Developer/usr/bin/nm -p checking how to recognise dependent libraries... pass_all checking for object suffix... o checking for executable suffix... .dSYM checking for c++... c++ checking whether the C++ compiler (c++ ) works... yes Actual result: -------------- As in description. Workaround - Change configure script to use 'rm -rf' during the check for the executable suffix. -- Edit bug report at http://bugs.php.net/?id=43144&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43144&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43144&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43144&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43144&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43144&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43144&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43144&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43144&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43144&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43144&r=support Expected behavior: http://bugs.php.net/fix.php?id=43144&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43144&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43144&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43144&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43144&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43144&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43144&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43144&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43144&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43144&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43144&r=mysqlcfg