Switcher 5.0.5 php between update php not possible.

  • /php7.1/php-5.3.29/ext/intl/dateformat/dateformat_parse.c:95:18: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

    parsed_calendar = udat_getCalendar(DATE_FORMAT_OBJECT(dfo));

    ^

    /php7.1/php-5.3.29/ext/intl/dateformat/dateformat_format.c: In function 'internal_get_timestamp':

    /php7.1/php-5.3.29/ext/intl/dateformat/dateformat_format.c:109:7: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

    pcal = udat_getCalendar(DATE_FORMAT_OBJECT(dfo));

    ^

    cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C

    cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C

    cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C

    cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C

    cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C

    cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C

    cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C

    cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C

    In file included from /usr/include/unicode/uformattable.h:37:0,

    from /usr/include/unicode/fmtable.h:33,

    from /usr/include/unicode/format.h:39,

    from /usr/include/unicode/msgfmt.h:33,

    from /php7.1/php-5.3.29/ext/intl/msgformat/msgformat_helpers.cpp:22:

    /usr/include/unicode/ubrk.h:353:1: error: conflicting declaration of C function 'void icu_65::swap(icu_65::LocalUBreakIteratorPointer&, icu_65::LocalUBreakIteratorPointer&)'

    U_DEFINE_LOCAL_OPEN_POINTER(LocalUBreakIteratorPointer, UBreakIterator, ubrk_close);

    ^

    /usr/include/unicode/utext.h:199:1: note: previous declaration 'void icu_65::swap(icu_65::LocalUTextPointer&, icu_65::LocalUTextPointer&)'

    U_DEFINE_LOCAL_OPEN_POINTER(LocalUTextPointer, UText, utext_close);

    ^

    /usr/include/unicode/umsg.h:428:1: error: conflicting declaration of C function 'void icu_65::swap(icu_65::LocalUMessageFormatPointer&, icu_65::LocalUMessageFormatPointer&)'

    U_DEFINE_LOCAL_OPEN_POINTER(LocalUMessageFormatPointer, UMessageFormat, umsg_close);

    ^

    /usr/include/unicode/ubrk.h:353:1: note: previous declaration 'void icu_65::swap(icu_65::LocalUBreakIteratorPointer&, icu_65::LocalUBreakIteratorPointer&)'

    U_DEFINE_LOCAL_OPEN_POINTER(LocalUBreakIteratorPointer, UBreakIterator, ubrk_close);

    ^

    /usr/include/unicode/umsg.h:428:1: error: conflicting declaration of C function 'void icu_65::swap(icu_65::LocalUMessageFormatPointer&, icu_65::LocalUMessageFormatPointer&)'

    U_DEFINE_LOCAL_OPEN_POINTER(LocalUMessageFormatPointer, UMessageFormat, umsg_close);

    ^

    /usr/include/unicode/utext.h:199:1: note: previous declaration 'void icu_65::swap(icu_65::LocalUTextPointer&, icu_65::LocalUTextPointer&)'

    U_DEFINE_LOCAL_OPEN_POINTER(LocalUTextPointer, UText, utext_close);

    ^

    In file included from /php7.1/php-5.3.29/ext/intl/grapheme/grapheme_string.c:24:0:

    /php7.1/php-5.3.29/ext/intl/grapheme/grapheme_util.h:45:14: warning: inline function 'grapheme_memrchr_grapheme' declared but never defined

    inline void *grapheme_memrchr_grapheme(const void *s, int c, int32_t n);

    ^~~~~~~~~~~~~~~~~~~~~~~~~

    In file included from /php7.1/php-5.3.29/Zend/zend.h:237:0,

    from /php7.1/php-5.3.29/ext/intl/resourcebundle/resourcebundle.c:19:

    /php7.1/php-5.3.29/ext/intl/resourcebundle/resourcebundle.c: In function 'resourcebundle_extract_value':

    /php7.1/php-5.3.29/Zend/zend_alloc.h:72:33: warning: passing argument 1 of '_efree' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

    #define efree(ptr) _efree((ptr) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)

    ^

    /php7.1/php-5.3.29/ext/intl/intl_data.h:82:3: note: in expansion of macro 'efree'

    efree(ustring); \

    ^~~~~

    /php7.1/php-5.3.29/ext/intl/resourcebundle/resourcebundle.c:44:4: note: in expansion of macro 'INTL_METHOD_RETVAL_UTF8'

    INTL_METHOD_RETVAL_UTF8(source, ufield, ilen, 0);

    ^~~~~~~~~~~~~~~~~~~~~~~

    /php7.1/php-5.3.29/Zend/zend_alloc.h:60:15: note: expected 'void *' but argument is of type 'const UChar * {aka const short unsigned int *}'

    ZEND_API void _efree(void *ptr ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC);

    ^~~~~~

    make[1]: *** [ext/intl/msgformat/msgformat_helpers.lo] Error 1

    make[1]: *** Waiting for unfinished jobs....

    cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C

    cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C

    make: *** [build-5.3-stamp] Error 2



    I get this error message when I want to update the php with the command.


    Code
    1. perl /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/php_compiler.pl

    my System :

    - Distribution: Debian | Release: 9.13 | Codename: wheezy
    - i-MSCP Version: i-MSCP 1.5.3| Build: 20181208 | Codename: Ennio Morricone
    - Plugins installed: ClamAV (v. 1.3.0), Mailgraph (v 1.1.1), OpenDKIM (v 2.0.0), SpamAssassin (v 2.0.1)
    - LetsEncrypt (v3.3.0), PhpSwitcher (v 5.0.5), RoundcubePlugins (v 2.0.2)YubiKeyAuth 1.1.0

  • my system is up to date

    Debian

    my System :

    - Distribution: Debian | Release: 9.13 | Codename: wheezy
    - i-MSCP Version: i-MSCP 1.5.3| Build: 20181208 | Codename: Ennio Morricone
    - Plugins installed: ClamAV (v. 1.3.0), Mailgraph (v 1.1.1), OpenDKIM (v 2.0.0), SpamAssassin (v 2.0.1)
    - LetsEncrypt (v3.3.0), PhpSwitcher (v 5.0.5), RoundcubePlugins (v 2.0.2)YubiKeyAuth 1.1.0