#50496 [Opn->Asn]: Use of <stdbool.h> is valid only in a c99 compilation environment.
| From: | jani@php.net | Date: | Wed, 16 Dec 2009 15:09:42 +0000 |
| Subject: | #50496 [Opn->Asn]: Use of <stdbool.h> is valid only in a c99 compilation environment. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-145802@lists.php.net to get a copy of this message | ||
ID: 50496
Updated by: jani@php.net
Reported By: alexander at skwar dot name
-Status: Open
+Status: Assigned
Bug Type: Compile Failure
Operating System: Solaris 10, Sparc
PHP Version: 5.3SVN-2009-12-16 (snap)
-Assigned To:
+Assigned To: pajoye
New Comment:
Assigned to Pierre who broke this.
Previous Comments:
------------------------------------------------------------------------
[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