mozHunspellDirProvider.h:63:5: error: unknown type name 'nsCOMPtr'

RESOLVED FIXED in mozilla27

Status

()

RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: jbeich, Assigned: jbeich)

Tracking

({regression})

Trunk
mozilla27
x86_64
All
regression
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

5 years ago
In file included from extensions/spellcheck/hunspell/src/mozHunspellDirProvider.cpp:36:
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.h:63:5: error:
      unknown type name 'nsCOMPtr'
    nsCOMPtr<nsISimpleEnumerator> mBase;
    ^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.h:63:13: error:
      expected member name or ';' after declaration specifiers
    nsCOMPtr<nsISimpleEnumerator> mBase;
    ~~~~~~~~^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.h:64:5: error:
      unknown type name 'nsCOMPtr'
    nsCOMPtr<nsIFile>             mNext;
    ^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.h:64:13: error:
      expected member name or ';' after declaration specifiers
    nsCOMPtr<nsIFile>             mNext;
    ~~~~~~~~^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.cpp:62:3: error:
      use of undeclared identifier 'nsCOMPtr'
  nsCOMPtr<nsIProperties> dirSvc =
  ^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.cpp:62:12: error:
      use of undeclared identifier 'nsIProperties'
  nsCOMPtr<nsIProperties> dirSvc =
           ^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.cpp:62:27: error:
      use of undeclared identifier 'dirSvc'
  nsCOMPtr<nsIProperties> dirSvc =
                          ^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.cpp:63:5: error:
      use of undeclared identifier 'do_GetService'
    do_GetService(NS_DIRECTORY_SERVICE_CONTRACTID);
    ^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.cpp:64:8: error:
      use of undeclared identifier 'dirSvc'
  if (!dirSvc)
       ^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.cpp:67:3: error:
      use of undeclared identifier 'nsCOMPtr'
  nsCOMPtr<nsISimpleEnumerator> list;
  ^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.cpp:67:12: error:
      'nsISimpleEnumerator' does not refer to a value
  nsCOMPtr<nsISimpleEnumerator> list;
           ^
../../../../dist/include/nsICategoryManager.h:17:7: note: declared here
class nsISimpleEnumerator; /* forward declaration */
      ^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.cpp:67:33: error:
      use of undeclared identifier 'list'
  nsCOMPtr<nsISimpleEnumerator> list;
                                ^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.cpp:68:17: error:
      use of undeclared identifier 'dirSvc'
  nsresult rv = dirSvc->Get(XRE_EXTENSIONS_DIR_LIST,
                ^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.cpp:70:23: error:
      use of undeclared identifier 'list'
                            getter_AddRefs(list));
                                           ^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.cpp:74:3: error:
      use of undeclared identifier 'nsCOMPtr'
  nsCOMPtr<nsISimpleEnumerator> e = new AppendingEnumerator(list);
  ^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.cpp:74:12: error:
      'nsISimpleEnumerator' does not refer to a value
  nsCOMPtr<nsISimpleEnumerator> e = new AppendingEnumerator(list);
           ^
../../../../dist/include/nsICategoryManager.h:17:7: note: declared here
class nsISimpleEnumerator; /* forward declaration */
      ^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.cpp:74:33: error:
      use of undeclared identifier 'e'
  nsCOMPtr<nsISimpleEnumerator> e = new AppendingEnumerator(list);
                                ^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.cpp:74:61: error:
      use of undeclared identifier 'list'
  nsCOMPtr<nsISimpleEnumerator> e = new AppendingEnumerator(list);
                                                            ^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.cpp:75:8: error:
      use of undeclared identifier 'e'
  if (!e)
       ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
gmake[3]: *** [mozHunspellDirProvider.o] Error 1
Keywords: regression
(Assignee)

Comment 1

5 years ago
Created attachment 809964 [details] [diff] [review]
include fix
Attachment #809964 - Flags: review?(ehsan)
Thanks for the fix, Jan.  It fails on my Linux system.  I can't see how this builds anywhere.  Perhaps some conditional inclusion somewhere, but I haven't found it.
OS: FreeBSD → All

Updated

5 years ago
Attachment #809964 - Flags: review?(ehsan) → review+

Updated

5 years ago
Keywords: checkin-needed
https://hg.mozilla.org/integration/mozilla-inbound/rev/ff6fed474ee2
Assignee: nobody → jbeich
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/ff6fed474ee2
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
You need to log in before you can comment on or make changes to this bug.