#25211 [NEW]: 'with-zlib' or 'with-bz2' causes 'redeclaration' of php_image_type_to_mime_type
| From: | php at hottub dot ca | Date: | Fri, 22 Aug 2003 15:15:44 +0000 |
| Subject: | #25211 [NEW]: 'with-zlib' or 'with-bz2' causes 'redeclaration' of php_image_type_to_mime_type | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-46485@lists.php.net to get a copy of this message | ||
From: php at hottub dot ca
Operating system: AIX 5.1 ML4
PHP version: 4.3.3RC4
PHP Bug Type: Compile Failure
Bug description: 'with-zlib' or 'with-bz2' causes 'redeclaration' of
php_image_type_to_mime_type
Description:
------------
Trying to compile 4.3.3RC4 on AIX 5.1 ML4 using IBM
Visual Age C version 6.0 (cc).
PHP compiles properly with other options without issue,
but when issuing configure with the --with-zlib and --
with-bz2 options, compilation fails. Here is the
command being executed:
cc -Iext/standard/ -I/build/php-4.3.3RC4/ext/standard/
-DPHP_ATOM_INC -I/build/php-4.3.3RC4/include -I/build/
php-4.3.3RC4/main -I/build/php-4.3.3RC4 -I/build/php-
4.3.3RC4/Zend -I/usr/local/include -I/build/php-
4.3.3RC4/ext/xml/expat -I/build/php-4.3.3RC4/TSRM -g
-c /build/php-4.3.3RC4/ext/standard/image.c -o ext/
standard/image.o && echo > ext/standard/image.lo
And the error output:
"/build/php-4.3.3RC4/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/php-4.3.3RC4/ext/
standard/php_image.h".
"/build/php-4.3.3RC4/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
The system does not have mysql installed (IBM's DB2 is
installed, but not enabled as a configuration option).
There are also a number of warnings during compilation
that all relate to mysql.h:
"/build/php-4.3.3RC4/ext/mysql/libmysql/mysql.h", line
181.14: 1506-731 (W) The '_Export' keyword is not
supported on the target platform. The keyword is
ignored.
This is the output from configure when the options are
enabled:
00Configuring extensions00
checking for ZLIB support... yes
checking if the location of ZLIB install directory is
defined... no
checking for gzgets in -lz... yes
checking whether to enable bc style precision math
functions... no
checking for BZip2 support... yes
checking for BZip2 in default path... found in /usr
checking for BZ2_bzerror in -lbz2... yes
I can make a shell account available for the assignee
to test themselves.
-JD.
--
Edit bug report at http://bugs.php.net/?id=25211&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25211&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25211&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25211&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25211&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25211&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25211&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25211&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25211&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25211&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25211&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25211&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25211&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25211&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25211&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25211&r=gnused