From:             alexander at skwar dot name
Operating system: Solaris 10, Sparc
PHP version:      5.3SVN-2009-12-16 (snap)
PHP Bug Type:     Compile Failure
Bug description:  Use of <stdbool.h> is valid only in a c99 compilation 
environment.

Description:
------------
I'm trying to get php5.3-200912160730 to compile with Sun Studio 12.1 on a
Solaris 10 Sparc system. It fails:

/bin/sh
/export/home/user/Source/php5.3-200912160730/build.32bit.20091216-105042/libtool
--silent --preserve-dup-deps --mode=compile /opt/sunstudio12.1/bin/cc 
-Iext/standard/
-I/export/home/user/Source/php5.3-200912160730/ext/standard/ -DPHP_ATOM_INC
-I/export/home/user/Source/php5.3-200912160730/build.32bit.20091216-105042/include
-I/export/home/user/Source/php5.3-200912160730/build.32bit.20091216-105042/main
-I/export/home/user/Source/php5.3-200912160730
-I/export/home/user/Source/php5.3-200912160730/build.32bit.20091216-105042/ext/date/lib
-I/export/home/user/Source/php5.3-200912160730/ext/date/lib
-I/export/home/user/Source/php5.3-200912160730/ext/ereg/regex
-I/opt/local/libxml2/include/libxml2 -I/opt/local/openssl/include
-I/opt/local/pcre/include -I/opt/local/sqlite/include
-I/opt/local/zlib/include -I/opt/local/curl/include
-I/opt/local/gettext/include -I/opt/local/libiconv/include
-I/export/home/user/Source/php5.3-200912160730/ext/mbstring/oniguruma
-I/export/home/user/Source/php5.3-200912160730/build.32bit.20091216-105042/ext/mbstring/oniguruma
-I/export/home/user/Source/php5.3-200912160730/ext/mbstring/libmbfl
-I/export/home/user/Source/php5.3-200912160730/build.32bit.20091216-105042/ext/mbstring/libmbfl
-I/export/home/user/Source/php5.3-200912160730/ext/mbstring/libmbfl/mbfl
-I/export/home/user/Source/php5.3-200912160730/build.32bit.20091216-105042/ext/mbstring/libmbfl/mbfl
-I/opt/local/libmcrypt/include -I/opt/local/mysql/include/mysql
-I/opt/local/instantclient_11_1/32/sdk/include
-I/export/home/user/Source/php5.3-200912160730/build.32bit.20091216-105042/TSRM
-I/export/home/user/Source/php5.3-200912160730/build.32bit.20091216-105042/Zend
-I/export/home/user/Source/php5.3-200912160730/main
-I/export/home/user/Source/php5.3-200912160730/Zend
-I/export/home/user/Source/php5.3-200912160730/TSRM
-I/export/home/user/Source/php5.3-200912160730/build.32bit.20091216-105042/
 -D_POSIX_PTHREAD_SEMANTICS  -I/opt/local/libiconv/include -xO5
-xdepend=yes -xmemalign=8s -fsimple=2 -fns=yes -ftrap=%none -xlibmil
-xlibmopt -xbuiltin=%all -D__MATHERR_ERRNO_DONTCARE -fsingle
-xalias_level=basic -xchip=sparc64vii -xcache=64/64/2:5120/256/10
-xarch=sparcima -xipo=1 -xmemalign=8s  -c
/export/home/user/Source/php5.3-200912160730/ext/standard/crypt_sha512.c -o
ext/standard/crypt_sha512.lo 
"/usr/include/stdbool.h", line 42: #error: "Use of <stdbool.h> is valid
only in a c99 compilation environment."
cc: acomp failed for
/export/home/user/Source/php5.3-200912160730/ext/standard/crypt_sha512.c
*** Error code 1
make: Fatal error: Command failed for target
`ext/standard/crypt_sha512.lo'

The exact same "./configure [...] && make" cycle worked with 5.3.0.

I'm using a Snap because of bug #50345 - "nanosleep not detected properly
on some solaris versions".

Reproduce code:
---------------
See http://bash.pastebin.com/f592ffdbf for the script which calls
configure
After having run that, I did cd
"$HOME/Source/php5.3-200912160730/build.32bit.20091216-105042" ; make


Expected result:
----------------
It's compiling on php-5.3.0. And so it should compile on 5.3.1 as well.


Actual result:
--------------
Doesn't compile.

Maybe it is required to compile certain parts with -xc99=all?

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

Reply via email to