#49952 [Com]: compilation error with on aix with cc_r

From: Date: Thu, 22 Oct 2009 14:18:57 +0000
Subject: #49952 [Com]: compilation error with on aix with cc_r
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-143795@lists.php.net to get a copy of this message
ID: 49952 Comment by: onzi at ustrem dot org Reported By: onzi at ustrem dot org Status: Feedback Bug Type: hash related Operating System: AIX 6.1 PHP Version: 5.2.11 New Comment: Here are the errors: ext/hash/php_hash_tiger.h", line 28.9: 1506-159 (E) Bit field type specified for passes is not valid. Type unsigned assumed. ext/hash/php_hash_tiger.h", line 29.9: 1506-159 (E) Bit field type specified for length is not valid. Type unsigned assumed. Regards! Previous Comments: ------------------------------------------------------------------------ [2009-10-22 10:19:51] jani@php.net What errors? ------------------------------------------------------------------------ [2009-10-22 07:59:27] onzi at ustrem dot org Description: ------------ When I use -O2, -O3 or -O5 flags there are two errors. Problem file is ext/hash/php_hash_tiger.h. Reproduce code: --------------- typedef struct { php_hash_uint64 state[3]; php_hash_uint64 passed; unsigned char passes:1; unsigned char length:7; unsigned char buffer[64]; } PHP_TIGER_CTX; Expected result: ---------------- I've changed to this and now there are no errors typedef struct { php_hash_uint64 state[3]; php_hash_uint64 passed; unsigned int passes:1; unsigned int length:7; unsigned char buffer[64]; } PHP_TIGER_CTX; Actual result: -------------- Is that correct or I will have problem other modules? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49952&edit=1

« previous php.bugs (#143795) next »