Bug #77046 [Opn->Wfx]: Compilation failure with ICU>61.1

From: Date: Mon, 22 Oct 2018 16:12:39 +0000
Subject: Bug #77046 [Opn->Wfx]: Compilation failure with ICU>61.1
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217655@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77046&edit=1 ID: 77046 Updated by: cmb@php.net Reported by: info at icod dot de Summary: Compilation failure with ICU>61.1 -Status: Open +Status: Wont fix Type: Bug Package: Compile Failure Operating System: Linux Gentoo PHP Version: 5.6.38 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: PHP 5.6 is no longer actively supported as of 2017-01-20. Therefore it doesn't receive any non-security related bugfixes anymore. [1] <http://php.net/supported-versions.php> Previous Comments: ------------------------------------------------------------------------ [2018-10-22 12:01:05] info at icod dot de 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 this bug report at https://bugs.php.net/bug.php?id=77046&edit=1

« previous php.bugs (#217655) next »