|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-12-16 15:03 UTC] alexander at skwar dot name
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? PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 08:00:01 2025 UTC |
Sun Studio compiler does not by default enable ANSIC C99 standard and its extensions and need to be explicitly enabled. ! this patch addresses this patch by enabling ANSIC99 standard. [sriramn@chilidev]'PHP_5_3'>svn diff acinclude.m4 Index: acinclude.m4 =================================================================== --- acinclude.m4 (revision 292219) +++ acinclude.m4 (working copy) @@ -2780,7 +2780,7 @@ AC_MSG_RESULT([no]), SUNCC="yes" GCC="no" - test -n "$auto_cflags" && CFLAGS="-O -xs -xstrconst -zlazyload" + test -n "$auto_cflags" && CFLAGS="-O -xc99=all -xs -xstrconst - zlazyload" GCC="" AC_MSG_RESULT([yes]) ) if no one has any objections, i will commit this patch here is the complete patch Index: trunk/acinclude.m4 =================================================================== --- trunk/acinclude.m4 (revision 292220) +++ trunk/acinclude.m4 (working copy) @@ -2780,7 +2780,7 @@ AC_MSG_RESULT([no]), SUNCC="yes" GCC="no" - test -n "$auto_cflags" && CFLAGS="-O -xs -xstrconst -zlazyload" + test -n "$auto_cflags" && CFLAGS="-O -xc99=all -xs -xstrconst - zlazyload" GCC="" AC_MSG_RESULT([yes]) ) Index: branches/PHP_5_3/acinclude.m4 =================================================================== --- branches/PHP_5_3/acinclude.m4 (revision 292219) +++ branches/PHP_5_3/acinclude.m4 (working copy) @@ -2780,7 +2780,7 @@ AC_MSG_RESULT([no]), SUNCC="yes" GCC="no" - test -n "$auto_cflags" && CFLAGS="-O -xs -xstrconst -zlazyload" + test -n "$auto_cflags" && CFLAGS="-O -xc99=all -xs -xstrconst - zlazyload" GCC="" AC_MSG_RESULT([yes]) ) Index: branches/PHP_5_3/NEWS =================================================================== --- branches/PHP_5_3/NEWS (revision 292219) +++ branches/PHP_5_3/NEWS (working copy) @@ -9,6 +9,8 @@ - Changed "post_max_size" php.ini directive to allow unlimited post size by setting it to 0. (Rasmus) +- Fixed bug #50496 (Use of <stdbool.h> is valid only in a c99 compilation + environment. (Sriram) - Added support for SHA-256 and SHA-512 to php's crypt. (Pierre) - Added realpath_cache_size() and realpath_cache_get() functions. (Stas) - Added FILTER_FLAG_STRIP_BACKTICK option to the filter extension. (Ilia) I will enable xc99=all option in php 5.2 branch after 5.2.12 is released.