[PHP-BUG] Bug #51582 [NEW]: Don't assume UINT64_C it's ever available

[email protected] ("reidrac at usebox dot net")
Newsgroups php.bugs
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.