php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43144 configure fails checking for c++ compiler
Submitted: 2007-10-30 14:32 UTC Modified: 2007-11-07 01:00 UTC
From: babt at us dot ibm dot com Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 5.2.4 OS: Mac OS X 10.5
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2007-10-30 14:32 UTC] babt at us dot ibm dot com
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.  

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-10-30 17:13 UTC] jani@php.net
What configure line did you use?
 [2007-10-30 18:12 UTC] babt at us dot ibm dot com
Here's the configure line used...

./configure --prefix=/usr/local/php5 --with-config-file-
path=/usr/local/php5/lib --with-mysql=/usr/local/mysql --with-pdo-
mysql=/usr/local/mysql --with-apxs2 --with-pcre-regex --with-iconv --
with-openssl --with-zlib --with-mysqli=/usr/local/mysql/bin/mysql_config 
--with-libxml --with-xsl --with-xmlrpc --enable-wddx --with-curl --
enable-exit --enable-soap --enable-ftp --enable-calendar --enable-dbx --
enable-sockets --with-bz2 --enable-dbase --enable-fastcgi --enable-
mbstring --with-pdflib --with-mysql-sock=/tmp/mysql.sock
 [2007-10-30 22:10 UTC] jani@php.net
You have some 3rd party extensions added by yourself in the build or what? There aren't any C++ extensions in the PHP core, AFAIK.
 [2007-10-30 23:05 UTC] babt at us dot ibm dot com
Nope, no extensions.  The problem is that configure is looking for the 
presence of the C++ compiler and even though it's not being used, it 
doesn't finish the configuration if it can't find one!!!
 [2007-10-30 23:39 UTC] jani@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.2-win32-installer-latest.msi

IIRC, I fixed something related to this in CVS.
 [2007-11-07 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 23 03:01:28 2024 UTC