Edit report at http://bugs.php.net/bug.php?id=51582&edit=1
ID: 51582 Updated by: paj...@php.net Reported by: reidrac at usebox dot net Summary: Don't assume UINT64_C it's ever available -Status: Open +Status: Feedback Type: Bug Package: Compile Failure Operating System: OpenBSD 3.8 PHP Version: 5.3.2 -Assigned To: +Assigned To: pajoye New Comment: If you can provide a patch to fix it for openbsd 3.8, please do. I don't have access to this version and it works with more decent releases. Previous Comments: ------------------------------------------------------------------------ [2010-04-17 17:06:45] reidrac at usebox dot net 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 this bug report at http://bugs.php.net/bug.php?id=51582&edit=1