ID: 50753 Updated by: johan...@php.net Reported By: yatessc at telkom dot co dot za -Status: Open +Status: Assigned Bug Type: Compile Failure Operating System: Solaris 9 Sparc PHP Version: 5.3.2RC1 -Assigned To: +Assigned To: dsp New Comment:
Related to #50496. David, as you expected the other C99 types create some trouble, too :-/ Previous Comments: ------------------------------------------------------------------------ [2010-01-14 15:22:03] yatessc at telkom dot co dot za Description: ------------ Using Sun ONE Studio 8 cc compiler on Solaris 9 Sparc. Compilation of ext/standard/crypt_sha512.c fails with: "/usr/local/php5.3-201001130730/ext/standard/crypt_sha512.c", line 376: syntax error before or at: __attribute__ "/usr/local/php5.3-201001130730/ext/standard/crypt_sha512.c", line 377: invalid type combination "/usr/local/php5.3-201001130730/ext/standard/crypt_sha512.c", line 378: syntax error before or at: __attribute__ "/usr/local/php5.3-201001130730/ext/standard/crypt_sha512.c", line 380: invalid type combination "/usr/local/php5.3-201001130730/ext/standard/crypt_sha512.c", line 416: warning: implicit function declaration: __alignof__ "/usr/local/php5.3-201001130730/ext/standard/crypt_sha512.c", line 416: syntax error before or at: uint64_t "/usr/local/php5.3-201001130730/ext/standard/crypt_sha512.c", line 419: undefined symbol: tmp "/usr/local/php5.3-201001130730/ext/standard/crypt_sha512.c", line 419: syntax error before or at: uint64_t "/usr/local/php5.3-201001130730/ext/standard/crypt_sha512.c", line 420: cannot recover from previous errors ext/standard/crypt_sha256.c also fails with similar errors, just different line numbers. I believe that __attribute__ and __alignof__ are Gnu specific extensions, although __alignof__ has been adopted by some other compilers (e.g. Sun Studio, but only from Release 12 onwards). The problem still exists with yesterday's snapshot (php5.3-201001130730.tar.gz). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50753&edit=1