Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 651708 - games-strategy/0ad with =dev-libs/icu-61.1: L10n.h:89:2: error: ‘Locale’ does not name a type
Summary: games-strategy/0ad with =dev-libs/icu-61.1: L10n.h:89:2: error: ‘Locale’ does...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: icu-61
  Show dependency tree
 
Reported: 2018-03-27 12:59 UTC by Lars Wendler (Polynomial-C) (RETIRED)
Modified: 2018-07-16 10:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,203.71 KB, text/plain)
2018-03-27 12:59 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-03-27 12:59:46 UTC
Created attachment 525666 [details]
build.log

c++  -march=native -mtune=native -O2 -pipe  -DNDEBUG -MMD -MP -DNDEBUG -DCONFIG_FINAL=1 -DCONFIG2_NVTT=0 -DLIB_STATIC_LINK -DINSTALLED_BINDIR=/usr/bin -DINSTALLED_DATADIR=/usr/share/0ad -DINSTALLED_LIBDIR=/usr/lib64/0ad -I../../../source/pch/lobby -I../../../source -I../../../libraries/source/spidermonkey/include-unix-release -I../../../source/third_party/tinygettext/include -I/usr/X11R6/include/X11 -I/usr/X11R6/include -I/usr/local/include/X11 -I/usr/local/include -I/usr/include/X11 -std=c++0x -fvisibility=hidden -MF obj/lobby_Release/XmppClient.d -MT "obj/lobby_Release/XmppClient.o" -o "obj/lobby_Release/XmppClient.o" -c "../../../source/lobby/XmppClient.cpp"
In file included from /usr/include/bits/types/stack_t.h:23:0,
                 from /usr/include/signal.h:299,
                 from ../../../libraries/source/spidermonkey/include-unix-release/mozilla/Assertions.h:44,
                 from ../../../libraries/source/spidermonkey/include-unix-release/jspubtd.h:14,
                 from ../../../source/scriptinterface/ScriptTypes.h:60,
                 from ../../../source/lobby/IXmppClient.h:21,
                 from ../../../source/lobby/XmppClient.h:21,
                 from ../../../source/lobby/XmppClient.cpp:19:
../../../libraries/source/spidermonkey/include-unix-release/jspubtd.h:459:60: warning: offsetof within non-standard-layout type ‘js::PerThreadDataFriendFields::RuntimeDummy’ is undefined [-Winvalid-offsetof]
     static const size_t RuntimeMainThreadOffset = offsetof(RuntimeDummy, mainThread);
                                                            ^
In file included from ../../../source/lobby/XmppClient.cpp:26:0:
../../../source/i18n/L10n.h:89:2: error: ‘Locale’ does not name a type; did you mean ‘locale_t’?
  Locale GetCurrentLocale() const;
  ^~~~~~
  locale_t
../../../source/i18n/L10n.h:133:24: error: ‘Locale’ does not name a type; did you mean ‘locale_t’?
  bool SaveLocale(const Locale& locale) const;
                        ^~~~~~
                        locale_t
../../../source/i18n/L10n.h:235:54: error: ‘Locale’ does not name a type; did you mean ‘locale_t’?
  std::wstring GetFallbackToAvailableDictLocale(const Locale& locale) const;
                                                      ^~~~~~
                                                      locale_t
../../../source/i18n/L10n.h:283:66: error: ‘Locale’ has not been declared
  void GetDictionaryLocale(const std::string& configLocaleString, Locale& outLocale) const;
                                                                  ^~~~~~
../../../source/i18n/L10n.h:314:28: error: ‘Locale’ does not name a type; did you mean ‘locale_t’?
  bool ValidateLocale(const Locale& locale) const;
                            ^~~~~~
                            locale_t
In file included from ../../../source/lobby/XmppClient.cpp:26:0:
../../../source/i18n/L10n.h:411:98: error: ‘Locale’ does not name a type; did you mean ‘locale_t’?
 d::string& dateTimeString, const std::string& dateTimeFormat, const Locale& locale) const;
                                                                     ^~~~~~
                                                                                                  locale_t
../../../source/i18n/L10n.h:427:85: error: ‘DateFormat’ does not name a type; did you mean ‘UDateFormat’?
 alizeDateTime(const UDate dateTime, const DateTimeType& type, const DateFormat::EStyle& style) const;
                                                                     ^~~~~~~~~~
                                                                                     UDateFormat
../../../source/i18n/L10n.h:427:103: error: expected unqualified-id before ‘&’ token
 t UDate dateTime, const DateTimeType& type, const DateFormat::EStyle& style) const;
                                                                     ^
../../../source/i18n/L10n.h:427:103: error: expected ‘)’ before ‘&’ token
../../../source/i18n/L10n.h:427:103: error: expected ‘;’ at end of member declaration
../../../source/i18n/L10n.h:427:105: error: ‘style’ does not name a type; did you mean ‘stime’?
 UDate dateTime, const DateTimeType& type, const DateFormat::EStyle& style) const;
                                                                     ^~~~~
                                                                                                         stime
../../../source/i18n/L10n.h:508:2: error: ‘Locale’ does not name a type; did you mean ‘locale_t’?
  Locale currentLocale;
  ^~~~~~
  locale_t
../../../source/i18n/L10n.h:519:14: error: ‘Locale’ was not declared in this scope
  std::vector<Locale*> availableLocales;
              ^~~~~~
../../../source/i18n/L10n.h:519:14: note: suggested alternative:
In file included from /usr/include/unicode/calendar.h:39:0,
                 from /usr/include/unicode/datefmt.h:29,
                 from /usr/include/unicode/smpdtfmt.h:38,
                 from ../../../source/lib/external_libraries/icu.h:26,
                 from ../../../source/i18n/L10n.h:30,
                 from ../../../source/lobby/XmppClient.cpp:26:
/usr/include/unicode/locid.h:188:20: note:   ‘icu::Locale’
 class U_COMMON_API Locale : public UObject {
                    ^~~~~~
In file included from ../../../source/lobby/XmppClient.cpp:26:0:
../../../source/i18n/L10n.h:519:21: error: template argument 1 is invalid
  std::vector<Locale*> availableLocales;
                     ^
../../../source/i18n/L10n.h:519:21: error: template argument 2 is invalid
../../../source/i18n/L10n.h:590:2: error: ‘DateFormat’ does not name a type; did you mean ‘UDateFormat’?
  DateFormat* CreateDateTimeInstance(const DateTimeType& type, const DateFormat::EStyle& style, const Locale& locale) const;
  ^~~~~~~~~~
  UDateFormat
make[1]: *** [lobby.make:180: obj/lobby_Release/XmppClient.o] Error 1
make: *** [Makefile:29: lobby] Error 2
make: Leaving directory '/var/tmp/portage/games-strategy/0ad-0.0.22_alpha/work/0ad-0.0.22-alpha/build/workspaces/gcc'
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-07-16 10:03:18 UTC
Fixed in 0ad-0.0.23_alpha