Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

following error while using nsIHttpAuthManager.idl.h

12 views
Skip to first unread message

Vikas Pushkar

unread,
Jun 17, 2015, 2:53:58 AM6/17/15
to
In file included from ./nsIHttpAuthManager.idl.h:10:
In file included from /Developer/SDKs/xulrunner-sdk/include/nsISupports.h:10:
In file included from /Developer/SDKs/xulrunner-sdk/include/nsrootidl.h:11:
In file included from /Developer/SDKs/xulrunner-sdk/include/nscore.h:50:
/Developer/SDKs/xulrunner-sdk/include/mozilla/mozalloc.h:229:12: error: use of undeclared identifier 'moz_xmalloc'
return moz_xmalloc(size);
^
/Developer/SDKs/xulrunner-sdk/include/mozilla/mozalloc.h:232:21: warning: replacement function 'operator new' cannot be declared 'inline' [-Winline-new-delete]
MOZALLOC_EXPORT_NEW MOZALLOC_INLINE
^
/Developer/SDKs/xulrunner-sdk/include/mozilla/mozalloc.h:76:27: note: expanded from macro 'MOZALLOC_INLINE'
# define MOZALLOC_INLINE inline
^
/Developer/SDKs/xulrunner-sdk/include/mozilla/mozalloc.h:235:12: error: use of undeclared identifier 'moz_malloc'
return moz_malloc(size);
^
/Developer/SDKs/xulrunner-sdk/include/mozilla/mozalloc.h:238:21: warning: replacement function 'operator new[]' cannot be declared 'inline' [-Winline-new-delete]
MOZALLOC_EXPORT_NEW MOZALLOC_INLINE
^
/Developer/SDKs/xulrunner-sdk/include/mozilla/mozalloc.h:76:27: note: expanded from macro 'MOZALLOC_INLINE'
# define MOZALLOC_INLINE inline
^
/Developer/SDKs/xulrunner-sdk/include/mozilla/mozalloc.h:239:7: error: exception specification in declaration does not match previous declaration
void* operator new[](size_t size) MOZALLOC_THROW_BAD_ALLOC
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/new:136:30: note: previous declaration is here
_LIBCPP_NEW_DELETE_VIS void* operator new[](std::size_t __sz)
^


I can see that moose_xalloc function is in libmozalloc.dylib but don't know why it is not taking it.

please help!!!

Neil

unread,
Jun 19, 2015, 8:22:10 AM6/19/15
to
Vikas Pushkar wrote:

>/Developer/SDKs/xulrunner-sdk/include/mozilla/mozalloc.h:229:12: error: use of undeclared identifier 'moz_xmalloc'
> return moz_xmalloc(size);
> ^
>
>
Strange; moz_xmalloc should be defined earlier in mozalloc.h (although I
may not be looking at the same version of mozalloc.h that you are).

--
Warning: May contain traces of nuts.
0 new messages