#50496 [Asn]: Use of <stdbool.h> is valid only in a c99 compilation environment.
| From: | pajoye@php.net | Date: | Wed, 16 Dec 2009 18:33:40 +0000 |
| Subject: | #50496 [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-145810@lists.php.net to get a copy of this message | ||
ID: 50496
Updated by: pajoye@php.net
Reported By: alexander at skwar dot name
Status: Assigned
Bug Type: Compile Failure
Operating System: Solaris 10, Sparc
PHP Version: 5.3SVN-2009-12-16 (snap)
Assigned To: srinatar
New Comment:
thanks :)
Previous Comments:
------------------------------------------------------------------------
[2009-12-16 18:25:36] srinatar@php.net
yup, will look into this today.
------------------------------------------------------------------------
[2009-12-16 18:09:30] pajoye@php.net
That code is new in 5.3.1, it adds (or restore when SHA-512/256 was
available on the system) features to crypt.
Ah, that could be the problem. I tested using OpenSolaris on a t2000
box. I have no solaris to test.
@srinatar, can you take a look at this issue please? That would be very
helpful :)
------------------------------------------------------------------------
[2009-12-16 17:30:09] alexander at skwar dot name
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.
------------------------------------------------------------------------
[2009-12-16 15:47:50] pajoye@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).
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/50496
--
Edit this bug report at http://bugs.php.net/?id=50496&edit=1