note 128178 added to intl.installation
| From: | Evgene at main dot php dot net | Date: | Wed, 01 Feb 2023 20:20:21 +0000 |
| Subject: | note 128178 added to intl.installation | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-220135@lists.php.net to get a copy of this message | ||
Hi! How can I install intl on FreeBSD 11 + php5.6.40 ?
Tried compile it with php 56 and received errors:
In file included from /usr/local/src/php-5.6.40/ext/intl/intl_convertcpp.cpp:24:
/usr/local/src/php-5.6.40/main/php.h:337:52: warning: 'register' storage class specifier
is deprecated and incompatible with C++17 [-Wdeprecated-register]
PHPAPI int php_mergesort(void *base, size_t nmemb, register size_t size, int (*cmp)(const void *,
const void * TSRMLS_DC) TSRMLS_DC);
^~~~~~~~~
/usr/local/src/php-5.6.40/ext/intl/intl_convertcpp.cpp:28:25: error: unknown type name
'UnicodeString'
int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status)
^
/usr/local/src/php-5.6.40/ext/intl/intl_convertcpp.cpp:54:31: error: unknown type name
'UnicodeString'; did you mean 'icu::UnicodeString'?
int intl_charFromString(const UnicodeString &from, char **res, int *res_len, UErrorCode *status)
^~~~~~~~~~~~~
icu::UnicodeString
/usr/local/include/unicode/unistr.h:289:20: note: 'icu::UnicodeString' declared here
class U_COMMON_API UnicodeString : public Replaceable
^
18 warnings and 4 errors generated.
*** Error code 1
Stop.
make: stopped in /usr/local/src/php-5.6.40
Many thanks for your help
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.158.213 (proxied: 67.58.110.219)
----
Manual Page -- https://php.net/manual/en/intl.installation.php
Edit -- https://main.php.net/note/edit/128178
Del: integrated -- https://main.php.net/note/delete/128178/integrated
Del: useless -- https://main.php.net/note/delete/128178/useless
Del: bad code -- https://main.php.net/note/delete/128178/bad+code
Del: spam -- https://main.php.net/note/delete/128178/spam
Del: non-english -- https://main.php.net/note/delete/128178/non-english
Del: in docs -- https://main.php.net/note/delete/128178/in+docs
Del: other reasons-- https://main.php.net/note/delete/128178
Reject -- https://main.php.net/note/reject/128178
Search -- https://main.php.net/manage/user-notes.php