Bug #80425 [NEW]: MessageFormatAdapter::getArgTypeList redefined

From: Date: Thu, 26 Nov 2020 14:18:29 +0000
Subject: Bug #80425 [NEW]: MessageFormatAdapter::getArgTypeList redefined
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230645@lists.php.net to get a copy of this message
From: bjornar dot ness at gmail dot com Operating system: Linux PHP version: Irrelevant Package: Compile Failure Bug Type: Bug Bug description:MessageFormatAdapter::getArgTypeList redefined Description: ------------ libicui18n.a(umsg.ao): In function `icu_68::MessageFormatAdapter::getArgTypeList(icu_68::MessageFormat const&, int&)': umsg.cpp:(.text+0x20): multiple definition of `icu_68::MessageFormatAdapter::getArgTypeList(icu_68::MessageFormat const&, int&)' ext/intl/msgformat/msgformat_helpers.o:/usr/src/php-build/install/icu-release-68-1/include/unicode/msgfmt.h:1076: first defined here collect2: error: ld returned 1 exit status Makefile:288: recipe for target 'sapi/cli/php' failed make: *** [sapi/cli/php] Error 1 MessageFormatAdapter::getArgTypeList(icu_68::MessageFormat const&, int&) is defined in: https://github.com/unicode-org/icu/blob/3d706fac426fe4b4ac5e84b21a8f3bcb4eb5953e/icu4c/source/i18n/umsg.cpp#L51 and https://github.com/unicode-org/icu/blob/3d706fac426fe4b4ac5e84b21a8f3bcb4eb5953e/icu4c/source/i18n/unicode/msgfmt.h#L1075 (unless compiled with -DUCONFIG_NO_FORMATTING, which makes php not compile against it) php-src for some reason redefines this function in: https://github.com/php/php-src/blob/08006e8337ceb9e8d3e6294aa65fb3b4b42d4776/ext/intl/msgformat/msgformat_helpers.cpp#L58 This redefinition is mostly unnoticed unless linked against a static libicu -- Edit bug report at https://bugs.php.net/bug.php?id=80425&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80425&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80425&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80425&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80425&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80425&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80425&r=support Expected behavior: https://bugs.php.net/fix.php?id=80425&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80425&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80425&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80425&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80425&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80425&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80425&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80425&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80425&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80425&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80425&r=mysqlcfg

« previous php.bugs (#230645) next »