-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
I'm trying to install ecma_intl with PECL on an Alpine 3.22 docker image with PHP 8.2.
That fails with errors like these
[...omissis...]
/bin/sh /tmp/pear/temp/pear-build-defaultuserhJOfOa/ecma_intl-0.2.0/libtool --tag=CXX --mode=compile g++ -I. -I/tmp/pear/temp/ecma_intl -I/tmp/pear/temp/pear-build-defaultuserhJOfOa/ecma_intl-0.2.0/include -I/tmp/pear/temp/pear-build-defaultuserhJOfOa/ecma_intl-0.2.0/main -I/tmp/pear/temp/ecma_intl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/tmp/pear/temp/ecma_intl/src -I/tmp/pear/temp/pear-build-defaultuserhJOfOa/ecma_intl-0.2.0/src -DHAVE_CONFIG_H -g -O2 -std=c++11 -c /tmp/pear/temp/ecma_intl/src/ecma402/locale.cpp -o src/ecma402/locale.lo -MMD -MF src/ecma402/locale.dep -MT src/ecma402/locale.lo
g++ -I. -I/tmp/pear/temp/ecma_intl -I/tmp/pear/temp/pear-build-defaultuserhJOfOa/ecma_intl-0.2.0/include -I/tmp/pear/temp/pear-build-defaultuserhJOfOa/ecma_intl-0.2.0/main -I/tmp/pear/temp/ecma_intl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/tmp/pear/temp/ecma_intl/src -I/tmp/pear/temp/pear-build-defaultuserhJOfOa/ecma_intl-0.2.0/src -DHAVE_CONFIG_H -g -O2 -std=c++11 -c /tmp/pear/temp/ecma_intl/src/ecma402/locale.cpp -MMD -MF src/ecma402/locale.dep -MT src/ecma402/locale.lo -fPIC -DPIC -o src/ecma402/.libs/locale.o
In file included from /usr/include/unicode/locid.h:39,
from /usr/include/unicode/localebuilder.h:10,
from /tmp/pear/temp/ecma_intl/src/ecma402/locale.cpp:20:
/usr/include/unicode/localpointer.h:561:26: error: parameter declared 'auto'
561 | template <typename Type, auto closeFunction>
| ^~~~
/usr/include/unicode/localpointer.h:573:76: error: template argument 2 is invalid
573 | explicit LocalOpenPointer(std::unique_ptr<Type, decltype(closeFunction)> &&p)
| ^
/usr/include/unicode/localpointer.h:583:78: error: template argument 2 is invalid
583 | LocalOpenPointer &operator=(std::unique_ptr<Type, decltype(closeFunction)> &&p) {
| ^
/usr/include/unicode/localpointer.h:599:59: error: template argument 2 is invalid
599 | operator std::unique_ptr<Type, decltype(closeFunction)> () && {
| ^
In file included from /usr/include/unicode/unistr.h:37,
from /usr/include/unicode/strenum.h:20,
from /usr/include/unicode/locid.h:40:
/usr/include/unicode/char16ptr.h:317:10: error: 'is_convertible_v' is not a member of 'std'; did you mean 'is_convertible'?
317 | std::is_convertible_v<T, std::u16string_view>
| ^~~~~~~~~~~~~~~~
| is_convertible
/usr/include/unicode/char16ptr.h:317:28: error: expected primary-expression before ',' token
317 | std::is_convertible_v<T, std::u16string_view>
| ^
/usr/include/unicode/char16ptr.h:331:13: error: 'u16string_view' in namespace 'std' does not name a type; did you mean 'u16string'?
331 | inline std::u16string_view toU16StringView(std::u16string_view sv) { return sv; }
| ^~~~~~~~~~~~~~
| u16string
[...]
Steps to reproduce
In a docker container started with
docker run --rm -it php:8.2-cli-alpine3.22 shtry to compile pecl_intl with
$ apk -U add $PHPIZE_DEPS icu-data-full icu-libs icu-dev libidn-dev
$ pecl install ecma_intl-alphaMetadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working