From: Operating system: OpenBSD 3.8 PHP version: 5.3.2 Package: Compile Failure Bug Type: Bug Bug description:Don't assume UINT64_C it's ever available
Description: ------------ The new crypt_sha512.c fails to build because UINT64_C macro doesn't exist. Test script: --------------- Try to compile it in a OpenBSD 3.8 system. It's an oudated system, but I guess this problem can affect other "POSIX" systems. Expected result: ---------------- Configure should check for UINT64_C macro and provide it if not found. Actual result: -------------- ..while compiling... .../php/php-5.3.2/ext/standard/crypt_sha512.c:88: error: (near initialization for `K[2]') .../php/php-5.3.2/ext/standard/crypt_sha512.c:88: warning: integer constant is too large for "long" type .../php/php-5.3.2/ext/standard/crypt_sha512.c:88: error: initializer element is not constant .../php/php-5.3.2/ext/standard/crypt_sha512.c:88: error: (near initialization for `K[3]') .../php/php-5.3.2/ext/standard/crypt_sha512.c:89: warning: integer constant is too large for "long" type .../php/php-5.3.2/ext/standard/crypt_sha512.c:89: error: initializer element is not constant ..etc... and build fails. -- Edit bug report at http://bugs.php.net/bug.php?id=51582&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51582&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51582&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51582&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=51582&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51582&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=51582&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=51582&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=51582&r=needscript Try newer version: http://bugs.php.net/fix.php?id=51582&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=51582&r=support Expected behavior: http://bugs.php.net/fix.php?id=51582&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=51582&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=51582&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=51582&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51582&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=51582&r=dst IIS Stability: http://bugs.php.net/fix.php?id=51582&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=51582&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=51582&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=51582&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=51582&r=mysqlcfg
