Bug #77046 [NEW]: Compilation failure with ICU>61.1
| From: | info at icod dot de | Date: | Mon, 22 Oct 2018 12:01:06 +0000 |
| Subject: | Bug #77046 [NEW]: Compilation failure with ICU>61.1 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-217649@lists.php.net to get a copy of this message | ||
From: info at icod dot de
Operating system: Linux Gentoo
PHP version: 5.6.38
Package: Compile Failure
Bug Type: Bug
Bug description:Compilation failure with ICU>61.1
Description:
------------
ICU, currently at version 63 and php 5.6.38 lead to a failed compilation
with intl enabled.
Actual result:
--------------
In file included from
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:21:
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.h:28:5:
note: âint intl_stringFromCharâ previously defined here
int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len,
UErrorCode *status);
^~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:28:25:
error: âUnicodeStringâ was not declared in this scope
int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len,
UErrorCode *status)
^~~~~~~~~~~~~
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:28:25:
note: suggested alternative:
In file included from
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.h:26,
from
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:21:
/usr/include/unicode/unistr.h:289:20: note: âicu::UnicodeStringâ
class U_COMMON_API UnicodeString : public Replaceable
^~~~~~~~~~~~~
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:28:40:
error: âretâ was not declared in this scope
int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len,
UErrorCode *status)
^~~
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:28:40:
note: suggested alternative: ârecvâ
int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len,
UErrorCode *status)
^~~
recv
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:28:45:
error: expected primary-expression before âcharâ
int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len,
UErrorCode *status)
^~~~
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:28:64:
error: expected primary-expression before âstr_lenâ
int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len,
UErrorCode *status)
^~~~~~~
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:28:84:
error: expected primary-expression before â*â token
int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len,
UErrorCode *status)
^
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:28:85:
error: âstatusâ was not declared in this scope
int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len,
UErrorCode *status)
^~~~~~
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:28:85:
note: suggested alternative: âstat64â
int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len,
UErrorCode *status)
^~~~~~
stat64
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:54:31:
error: âUnicodeStringâ does not name a type; did you mean
âOnUpdateStringâ?
int intl_charFromString(const UnicodeString &from, char **res, int
*res_len, UErrorCode *status)
^~~~~~~~~~~~~
OnUpdateString
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:
In function âint intl_charFromString(const int&, char**, int*,
UErrorCode*)â:
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:56:11:
error: request for member âisBogusâ in âfromâ, which is of
non-class type âconst intâ
if (from.isBogus()) {
^~~~~~~
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:62:26:
error: request for member âlengthâ in âfromâ, which is of
non-class type âconst intâ
int32_t capacity = from.length() * 3 + 1;
^~~~~~
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:64:11:
error: request for member âisEmptyâ in âfromâ, which is of
non-class type âconst intâ
if (from.isEmpty()) {
^~~~~~~
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:74:31:
error: request for member âgetBufferâ in âfromâ, which is of
non-class type âconst intâ
const UChar *utf16buf = from.getBuffer();
^~~~~~~~~
/var/tmp/portage/dev-lang/php-5.6.38/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:76:69:
error: request for member âlengthâ in âfromâ, which is of
non-class type âconst intâ
u_strToUTF8WithSub(*res, capacity - 1, &actual_len, utf16buf,
from.length(),
^~~~~~
make: *** [Makefile:853: ext/intl/intl_convertcpp.lo] Error 1
--
Edit bug report at https://bugs.php.net/bug.php?id=77046&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77046&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77046&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77046&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=77046&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=77046&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=77046&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=77046&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=77046&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=77046&r=support
Expected behavior: https://bugs.php.net/fix.php?id=77046&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=77046&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=77046&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=77046&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77046&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=77046&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=77046&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=77046&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77046&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=77046&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=77046&r=mysqlcfg