From: yatessc at telkom dot co dot za Operating system: Solaris 9 Sparc PHP version: 5.3.2RC1 PHP Bug Type: Compile Failure Bug description: crypt_sha256.c / crypt_sha512.c - Gnu specific code, non-Gnu compiler
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 bug report at http://bugs.php.net/?id=50753&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50753&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50753&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50753&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50753&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50753&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50753&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50753&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50753&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50753&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50753&r=support Expected behavior: http://bugs.php.net/fix.php?id=50753&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50753&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50753&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50753&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50753&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50753&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50753&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50753&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50753&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50753&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50753&r=mysqlcfg
