#25211 [Fbk->Opn]: 'with-zlib' or 'with-bz2' causes redeclaration of php_image_type_to_mime_type
| From: | php at hottub dot ca | Date: | Tue, 09 Sep 2003 01:00:06 +0000 |
| Subject: | #25211 [Fbk->Opn]: 'with-zlib' or 'with-bz2' causes redeclaration of php_image_type_to_mime_type | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-47291@lists.php.net to get a copy of this message | ||
ID: 25211
User updated by: php at hottub dot ca
Reported By: php at hottub dot ca
-Status: Feedback
+Status: Open
Bug Type: Compile Failure
Operating System: AIX 5.1 ML4
PHP Version: 4.3.3
New Comment:
Error persists:
"/build/php4-STABLE-200309082330/ext/standard/image.c",
line 1029.21: 1506-343 (S) Redeclaration of
php_image_type_to_mime_type differs from previous
declaration on line 60 of "/build/php4-STABLE-
200309082330/ext/standard/php_image.h".
"/build/php4-STABLE-200309082330/ext/standard/image.c",
line 1029.21: 1506-050 (I) Return type "unsigned char*"
in redeclaration is not compatible with the previous
return type "const unsigned char*".
make: *** [ext/standard/image.lo] Error 1
Previous Comments:
------------------------------------------------------------------------
[2003-09-08 18:57:44] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2003-08-25 20:44:47] php at hottub dot ca
Haven't used GCC - previous versions were wildly
unstable on AIX, and only rarely produced usable
binaries. If someone can give me clear indication that
this has changed, I'd consider using it again.
------------------------------------------------------------------------
[2003-08-25 19:03:27] sniper@php.net
Does it work if you use GCC?
------------------------------------------------------------------------
[2003-08-25 12:56:58] php at hottub dot ca
Recompiled with the release version, and this issue has
not been corrected.
------------------------------------------------------------------------
[2003-08-23 09:54:54] php at hottub dot ca
When I added the remainder of the configure options,
the error occured again, despite the fact that the
definitions are the same in both places. Apparently
the AIX compiler throws 'unsigned' in front of 'char'
in header files.
When I edited both php_image.h and image.c to match
each other (simply 'char'), I got a successful compile.
Tests have been submitted to the QA site.
On a previous compile attempt, setting both definitions
to 'const char' resulted in the same error again. I
will attempt to determine if this is a compiler issue
for which there is a fix.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/25211
--
Edit this bug report at http://bugs.php.net/?id=25211&edit=1