|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42195 C++ compiler required always
Submitted: 2007-08-03 08:56 UTC Modified: 2007-08-07 05:38 UTC
From: jeremy dot jacque at maximo dot fr Assigned:
Status: Closed Package: *Configuration Issues
PHP Version: 5CVS-2007-08-03 (CVS) OS: AIX 5.1
Private report: No CVE-ID:
 [2007-08-03 08:56 UTC] jeremy dot jacque at maximo dot fr
when running configure and entering the "Configuring libtool" part,
an error occured because i do not have access to an c++ compiler.

By just suppressing the lines referring to c++, it works great,
so the c++ search in configure shouldn't just be optional ??

One more thing, i'm compiling using the native AIX compiler and linker, and in order to link correctly i use the cheat i saw in bug report 39187
sed 's/\([A-Za-z0-9_]*\)\.lo/\1.o/g'
sed 's/\([A-Za-z0-9_]*\)\.lo/.libs\/\1.o/g'
in the BUILD_CLI part of the configure.
When compiling proftpd on the same machine, their configure report this:
   "checking for objdir... .libs"
Sould it be possible to integrate such a test in your script?
Thank in advance.
Jeremy Jacque

Reproduce code:
run configure on a machine with no c++ compiler

Expected result:
Pass the c++ test with no error  (may be a warning ?? )

checking for g++... no
checking for c++... no
checking whether we are using the GNU C++ compiler... no

Actual result:
checking for c++... no
checking for g++... no
checking for gcc... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking whether the C++ compiler (gcc   ) works... no
configure: error: installation or configuration problem: C++ compiler cannot create executables.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-08-04 00:50 UTC]
How exactly did you run configure? Any CFLAGS/LDFLAGS set? What shell?
 [2007-08-06 06:46 UTC] jeremy dot jacque at maximo dot fr
I' m running configure with "sh" , and the command line is :

./configure --prefix=/patch/php/php-latest \
 --with-apxs2=/patch/php/apache/bin/apxs \
 --without-mysql --enable-calendar --disable-dom --enable-libxml \
 --disable-simplexml --without-libexpat --without-expat --disable-pear \
 --disable-ipv6 --without-imap --disable-posix \
 --with-jpeg-dir=/opt/freeware --without-sqlite --enable-pcntl \
 --with-png-dir=/opt/freeware --with-xpm-dir=/opt/freeware \
 --with-freetype-dir=/opt/freeware --with-png-dir=/opt/freeware \
 --disable-hash --disable-filter --enable-reflection \
 --with-openssl=/opt/freeware --with-gd --without-iconv \
 --enable-pdo --without-pdo-informix --without-pdo-sqlite \
 --disable-debug --with-regex=system \
 --enable-cli --enable-shared

and my *FLAGS are:

export CC=/usr/vac/bin/cc
export CFLAGS='-q64'
export OBJECT_MODE=64
export LDFLAGS='-L/opt/freeware/lib'
export INFORMIXDIR=/informix2
 [2007-08-06 14:35 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

 [2007-08-07 05:38 UTC] jeremy dot jacque at maximo dot fr
Thanks to you for "taking care" of your users !!
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Tue Aug 29 15:01:52 2017 UTC