ID: 50753 Updated by: johan...@php.net Reported By: yatessc at telkom dot co dot za -Status: Assigned +Status: Closed Bug Type: Compile Failure Operating System: Solaris 9 Sparc PHP Version: 5.3.2RC1 Assigned To: dsp New Comment:
This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2010-02-09 21:58:14] s...@php.net Automatic comment from SVN on behalf of johannes Revision: http://svn.php.net/viewvc/?view=revision&revision=294825 Log: Detect if we can rely on compiler-specific alignment features else use custom workarounds. Fixes #50753 ------------------------------------------------------------------------ [2010-01-14 15:33:42] johan...@php.net Related to #50496. David, as you expected the other C99 types create some trouble, too :-/ ------------------------------------------------------------------------ [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