ID: 50496 Updated by: johan...@php.net Reported By: alexander at skwar dot name -Status: Closed +Status: Open Bug Type: Compile Failure Operating System: Solaris 10, Sparc PHP Version: 5.3SVN-2009-12-16 (snap) Assigned To: srinatar New Comment:
Reopening - seems to still be broken. Previous Comments: ------------------------------------------------------------------------ [2010-01-11 15:06:39] d...@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. ------------------------------------------------------------------------ [2009-12-16 22:48:58] srina...@php.net on other platforms like HP-UX and AIX as well as gcc, these types (bool, true,false) are defined by simply including the header file. these platforms do not require c99 standard to be defined as pre-requisite to define these macros. at this moment, this seems to be solaris sun studio compiler only issue. ------------------------------------------------------------------------ [2009-12-16 21:33:21] s...@php.net Automatic comment from SVN on behalf of srinatar Revision: http://svn.php.net/viewvc/?view=revision&revision=292223 Log: - Fix NEWS for bug #50496 # Update NEWS to keep resolved bugs in decreasing order (Christopher Jones) ------------------------------------------------------------------------ [2009-12-16 21:10:11] paj...@php.net Pls don't open another bug for the exact same problem. If the header is only available in c99 and c99 can have bad side effects, why not define manually on Solaris what is necessary for the code to work and be done with this problem? ------------------------------------------------------------------------ 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