ID: 50496 User updated by: alexander at skwar dot name Reported By: alexander at skwar dot name -Status: Feedback +Status: Open Bug Type: Compile Failure Operating System: Solaris 10, Sparc PHP Version: 5.3SVN-2009-12-16 (snap) Assigned To: pajoye New Comment:
Hm. That's strange. It shouldn't be depending on the version of Solaris. In /usr/include/stdbool.h, there is: #else /* _STDC_C99 */ #error "Use of <stdbool.h> is valid only in a c99 compilation environment." #endif /* _STDC_C99 */ So, for some reason or the other, you had _STDC_C99 defined. This should only be defined if compiling in C99 mode. I'm right now downloading Solaris 10 U8 to install it in a Virtual Box together with Sun Studio 12.1. I expect it to error out. Out of curiosity: Which version of Solaris 10 are you using? U8? I'm *NOT* using OpenSolaris, BTW. And I find it quite curious that php-5.3.0 compiles and php-5.3.1+ does not. The only difference is the source code of PHP. This kinda leads me to think, that the problem is related to PHP. Previous Comments: ------------------------------------------------------------------------ [2009-12-16 15:47:50] paj...@php.net It builds just fine on the test solaris system provided by Sun. If you have a patch fixing this issue on your platform without breaking other then please post a link to it here. ------------------------------------------------------------------------ [2009-12-16 15:24:19] alexander at skwar dot name I added -xc99=all to the beginning of my CFLAGS (see http://bash.pastebin.com/pastebin.php?diff=f14d9a4ab) and this allowed me to compile (it's still compiling but I'm past that step which error out earlier). ------------------------------------------------------------------------ [2009-12-16 15:09:42] j...@php.net Assigned to Pierre who broke this. ------------------------------------------------------------------------ [2009-12-16 15:03:17] 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? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50496&edit=1