[MacPorts] #61041: icu @67.1_2: ld: duplicate symbol icu_67::number::NumberFormatterSettings<icu_67::number::UnlocalizedNumberFormatter>::copyErrorTo(UErrorCode&) const in number_skeletons.o and number_fluent.o

MacPorts noreply at macports.org
Sat Oct 31 02:42:41 UTC 2020


#61041: icu @67.1_2: ld: duplicate symbol
icu_67::number::NumberFormatterSettings<icu_67::number::UnlocalizedNumberFormatter>::copyErrorTo(UErrorCode&)
const in number_skeletons.o and number_fluent.o
---------------------+---------------------------
  Reporter:  kencu   |      Owner:  (none)
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:
Resolution:          |   Keywords:  tiger leopard
      Port:  icu     |
---------------------+---------------------------

Comment (by kencu):

 For the curious, the issue appear to involve this bit of code:

 <https://github.com/unicode-
 org/icu/blob/7c8f857da820506b061604db21a6bbd3ec908f0f/icu4c/source/i18n/number_skeletons.cpp#L1705>

 which takes you to this explanation:

 <https://stackoverflow.com/a/495056/1407170>

 and this bit of c++ wisdom:

 <https://isocpp.org/wiki/faq/templates#templates-defn-vs-decl>

 which is causing the symbols to be multiply defined, and the linker to
 (therefore) barf.

-- 
Ticket URL: <https://trac.macports.org/ticket/61041#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list