php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49952 compilation error with on aix with cc_r
Submitted: 2009-10-22 07:59 UTC Modified: 2009-10-30 01:00 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: onzi at ustrem dot org Assigned:
Status: No Feedback Package: hash related
PHP Version: 5.2.11 OS: AIX 6.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: onzi at ustrem dot org
New email:
PHP Version: OS:

 

 [2009-10-22 07:59 UTC] 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?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-10-22 10:19 UTC] jani@php.net
What errors?
 [2009-10-22 14:18 UTC] onzi at ustrem dot org
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!
 [2009-10-30 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 12:01:32 2025 UTC