#50496 [Opn->Csd]: Use of <stdbool.h> is valid only in a c99 compilation environment.
| From: | jani@php.net | Date: | Tue, 12 Jan 2010 10:21:05 +0000 |
| Subject: | #50496 [Opn->Csd]: 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-146571@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: Closed
Bug Type: Compile Failure
Operating System: Solaris 10, Sparc
PHP Version: 5.3SVN-2009-12-16 (snap)
Assigned To: srinatar
Previous Comments:
------------------------------------------------------------------------
[2010-01-11 16:22:13] svn@php.net
Automatic comment from SVN on behalf of dsp
Revision: http://svn.php.net/viewvc/?view=revision&revision=293409
Log: Fixes #50496. Drop stdbool.h dependency as it requires _STDC_C99
set on some systems.
------------------------------------------------------------------------
[2010-01-11 16:02:12] dsp@php.net
Opening again the bug as it's not fixed yet.
------------------------------------------------------------------------
[2010-01-11 15:41:41] johannes@php.net
Reopening - seems to still be broken.
------------------------------------------------------------------------
[2010-01-11 15:06:39] dsp@php.net
The problem is not gcc but libc. If the libc is strict with what the
ISO
standard defines you cannot use c99 headers in non c99 code. So we have
to either add c99/_STD_C99 globally or get rid of the c99 code. You can
compile it with gcc and SUN libc and you will get the same error. GNU
libc seems not to make this difference, which is why it works.
------------------------------------------------------------------------
[2009-12-17 05:37:33] alexander at skwar dot name
Nö, it is not a Sun Studio Compiler issue - if you compile using gcc
3.4.3 from /usr/sfw/bin, you will run into the same problems. At
least on Solaris 10.
------------------------------------------------------------------------
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