#22834 [NEW]: type mismatch in mbstring extension
| From: | fnjordy at cus dot org dot uk | Date: | Mon, 24 Mar 2003 03:47:17 +0000 |
| Subject: | #22834 [NEW]: type mismatch in mbstring extension | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-36228@lists.php.net to get a copy of this message | ||
From: fnjordy at cus dot org dot uk
Operating system: Solaris 8
PHP version: 4.3.2RC1
PHP Bug Type: Compile Failure
Bug description: type mismatch in mbstring extension
Only appears when building with Sun Forte's C++ compiler CC, not the C
compiler cc. I'm building an extension that uses a C++ library and hence
the change.
"/local/src/php-4.3.2RC1/ext/mbstring/mbfilter.c", line 2957: Error:
Cannot assign const char* to const unsigned char*.
"/local/src/php-4.3.2RC1/ext/mbstring/mbfilter.c", line 2974: Error:
Cannot assign const char* to const unsigned char*.
"/local/src/php-4.3.2RC1/ext/mbstring/mbfilter.c", line 7742: Error:
Cannot assign unsigned* to int*.
cal/src/php-4.3.2RC1/ext/mbstring/mbstring.c", line 1045: Error: Formal
argument
no_language of type mbfl_no_language in call to
mbfl_no_language2name(mbfl_no_language) is being passed int.
"/local/src/php-4.3.2RC1/ext/mbstring/mbstring.c", line 1076: Error:
Formal argument no_encoding of type mbfl_no_encoding in call to
mbfl_no_encoding2name(mbfl_no_encoding) is being passed int.
"/local/src/php-4.3.2RC1/ext/mbstring/mbstring.c", line 1139: Error:
Formal argument no_encoding of type mbfl_no_encoding in call to
mbfl_no_encoding2name(mbfl_no_encoding) is being passed int.
"/local/src/php-4.3.2RC1/ext/mbstring/mbstring.c", line 1141: Warning: The
variable name has not yet been assigned a value.
"/local/src/php-4.3.2RC1/ext/mbstring/mbstring.c", line 1154: Error:
Formal argument no_encoding of type mbfl_no_encoding in call to
mbfl_no_encoding2name(mbfl_no_encoding) is being passed int.
"/local/src/php-4.3.2RC1/ext/mbstring/mbstring.c", line 1185: Error:
Formal argument no_encoding of type mbfl_no_encoding in call to
mbfl_no_encoding2name(mbfl_no_encoding) is being passed int.
"/local/src/php-4.3.2RC1/ext/mbstring/mbstring.c", line
...
Build environment:
* Sun Forte 6 Update 2
* Autoconf 2.57
* Automake 1.5
* m4 1.4
* libtool 1.4.3
fyi: Autoconf 2.13 doesn't detect functions in libraries with Forte CC.
--
Edit bug report at http://bugs.php.net/?id=22834&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22834&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22834&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22834&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22834&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22834&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22834&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22834&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22834&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22834&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22834&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22834&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22834&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22834&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22834&r=gnused