From:             mark at oneeach dot com
Operating system: Linux RHEL4
PHP version:      5.2.0
PHP Bug Type:     *Compile Issues
Bug description:  Configure complains about gcc

Description:
------------
When trying to configure php 5.2.0 (with the configure line detailed in
the reproduce code section), it aborts with the error detailed in "actual
result".

I initially thought something must be wrong on the server, except that I
can go back and configure+compile any other version of PHP (such as 5.1.6)
and there are no errors (as shown in expected result).

Thanks,
-Mark

Reproduce code:
---------------
./configure  --prefix=/usr/local/php
--with-apxs2=/usr/local/apache2/bin/apxs --disable-path-info-check
--disable-cgi --with-zlib --with-bz2 --enable-sockets --with-openssl
--with-curl --with-curlwrappers --with-mysql=/usr
--with-mysqli=/usr/bin/mysql_config --with-gmp --with-mcrypt --with-mhash
--with-pspell --with-gettext --with-tidy --with-libxml-dir --with-xsl
--enable-exif --with-jpeg-dir --with-png-dir --with-gd
--enable-gd-native-ttf --with-ttf --with-freetype-dir --with-imap
--with-imap-ssl --with-kerberos

Expected result:
----------------
Configuring libtool
checking build system type... i686-pc-linux-gnu
checking for ld used by gcc... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for /usr/bin/ld option to reload object files... (cached) -r
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking how to recognise dependent libraries... (cached) pass_all
checking for object suffix... (cached) o
checking for executable suffix... (cached) no
checking the maximum length of command line arguments... (cached) 32768
checking command to parse /usr/bin/nm -B output from gcc object...
(cached) ok
checking for objdir... (cached) .libs
checking for ar... (cached) ar
checking for ranlib... (cached) ranlib
checking for strip... (cached) strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... (cached) no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries...
yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool

Actual result:
--------------
Configuring libtool
checking build system type... i686-pc-linux-gnu
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependent libraries... pass_all
checking for object suffix... o
checking for executable suffix... no
checking for c++... no
checking for g++... no
checking for gcc... gcc
checking whether the C++ compiler (gcc   ) works... no
configure: error: installation or configuration problem: C++ compiler
cannot create executables.

-- 
Edit bug report at http://bugs.php.net/?id=39439&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39439&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39439&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39439&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39439&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=39439&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39439&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39439&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39439&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39439&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39439&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=39439&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=39439&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39439&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39439&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39439&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39439&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39439&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39439&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39439&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39439&r=mysqlcfg

Reply via email to