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] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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
