|
|
昨天我更新了系统
编译安装firefox3.5.1的时候出错了
nsGnomeVFSProtocolHandler.cpp:52:27: error: nsThreadUtils.h: No such file or directory
nsGnomeVFSProtocolHandler.cpp:53:28: error: nsProxyRelease.h: No such file or directory
nsGnomeVFSProtocolHandler.cpp:54:27: error: nsIAuthPrompt.h: No such file or directory
nsGnomeVFSProtocolHandler.cpp:55:29: error: nsIStringBundle.h: No such file or directory
nsGnomeVFSProtocolHandler.cpp:56:28: error: nsIStandardURL.h: No such file or directory
nsGnomeVFSProtocolHandler.cpp:58:25: error: nsMimeTypes.h: No such file or directory
nsGnomeVFSProtocolHandler.cpp:59:23: error: nsNetUtil.h: No such file or directory
nsGnomeVFSProtocolHandler.cpp:60:24: error: nsINetUtil.h: No such file or directory
nsGnomeVFSProtocolHandler.cpp:61:23: error: nsAutoPtr.h: No such file or directory
nsGnomeVFSProtocolHandler.cpp: In function 'nsresult MapGnomeVFSResult(GnomeVFSResult)':
nsGnomeVFSProtocolHandler.cpp:99: error: 'NS_ERROR_MALFORMED_URI' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:105: error: 'NS_ERROR_IN_PROGRESS' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:110: error: 'NS_ERROR_UNKNOWN_HOST' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:115: error: 'NS_ERROR_UNKNOWN_PROTOCOL' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp: In function 'void ProxiedAuthCallback(const void*, gsize, void*, gsize, void*)':
nsGnomeVFSProtocolHandler.cpp:161: error: 'nsIChannel' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:161: error: 'channel' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:161: error: expected primary-expression before ')' token
nsGnomeVFSProtocolHandler.cpp:161: error: expected `;' before 'callback_data'
nsGnomeVFSProtocolHandler.cpp:165: error: 'nsIAuthPrompt' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:165: error: template argument 1 is invalid
nsGnomeVFSProtocolHandler.cpp:165: error: invalid type in declaration before ';' token
nsGnomeVFSProtocolHandler.cpp:166: error: 'NS_QueryNotificationCallbacks' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:202: error: 'nsCAutoString' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:202: error: expected `;' before 'scheme'
nsGnomeVFSProtocolHandler.cpp:203: error: 'scheme' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:204: error: 'hostPort' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:214: error: 'nsAutoString' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:214: error: expected `;' before 'key'
nsGnomeVFSProtocolHandler.cpp:216: error: 'NS_ConvertUTF8toUTF16' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:216: error: expected `;' before 'dispHost'
nsGnomeVFSProtocolHandler.cpp:217: error: 'dispHost' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:217: error: 'NS_LITERAL_STRING' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:220: error: 'key' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:226: error: 'realm' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:227: error: 'NS_ConvertASCIItoUTF16' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:239: error: 'nsIStringBundleService' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:239: error: template argument 1 is invalid
nsGnomeVFSProtocolHandler.cpp:239: error: invalid type in declaration before '=' token
nsGnomeVFSProtocolHandler.cpp:240: error: 'NS_STRINGBUNDLE_CONTRACTID' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:244: error: 'nsIStringBundle' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:244: error: template argument 1 is invalid
nsGnomeVFSProtocolHandler.cpp:244: error: invalid type in declaration before ';' token
nsGnomeVFSProtocolHandler.cpp:245: error: base operand of '->' is not a pointer
nsGnomeVFSProtocolHandler.cpp:246: error: no matching function for call to 'getter_AddRefs(int&)'
nsGnomeVFSProtocolHandler.cpp:250: error: 'nsString' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:250: error: expected `;' before 'message'
nsGnomeVFSProtocolHandler.cpp:251: error: 'realm' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:254: error: base operand of '->' is not a pointer
nsGnomeVFSProtocolHandler.cpp:255: error: 'message' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:255: error: 'getter_Copies' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:260: error: base operand of '->' is not a pointer
nsGnomeVFSProtocolHandler.cpp:261: error: 'message' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:261: error: 'getter_Copies' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:263: error: 'message' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:271: error: base operand of '->' is not a pointer
nsGnomeVFSProtocolHandler.cpp:271: error: 'message' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:273: error: 'nsIAuthPrompt' is not a class or namespace
nsGnomeVFSProtocolHandler.cpp:286: error: 'NS_LossyConvertUTF16toASCII' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:289: error: 'nsMemory' has not been declared
nsGnomeVFSProtocolHandler.cpp:290: error: 'nsMemory' has not been declared
nsGnomeVFSProtocolHandler.cpp: At global scope:
nsGnomeVFSProtocolHandler.cpp:294: error: expected class-name before '{' token
nsGnomeVFSProtocolHandler.cpp: In function 'void AuthCallback(const void*, gsize, void*, gsize, void*)':
nsGnomeVFSProtocolHandler.cpp:317: error: 'nsRefPtr' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:317: error: expected primary-expression before '>' token
nsGnomeVFSProtocolHandler.cpp:317: error: 'ev' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:327: error: 'NS_DISPATCH_SYNC' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:327: error: 'NS_DispatchToMainThread' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp: At global scope:
nsGnomeVFSProtocolHandler.cpp:344: error: expected class-name before '{' token
nsGnomeVFSProtocolHandler.cpp:347: error: 'NS_DECL_NSIINPUTSTREAM' does not name a type
nsGnomeVFSProtocolHandler.cpp:362: error: 'nsIChannel' has not been declared
nsGnomeVFSProtocolHandler.cpp:386: error: 'nsCString' does not name a type
nsGnomeVFSProtocolHandler.cpp:387: error: ISO C++ forbids declaration of 'nsIChannel' with no type
nsGnomeVFSProtocolHandler.cpp:387: error: expected ';' before '*' token
nsGnomeVFSProtocolHandler.cpp:393: error: 'nsCString' does not name a type
nsGnomeVFSProtocolHandler.cpp: In destructor 'nsGnomeVFSInputStream::~nsGnomeVFSInputStream()':
nsGnomeVFSProtocolHandler.cpp:360: error: 'Close' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp: In member function 'void nsGnomeVFSInputStream::SetChannel(int*)':
nsGnomeVFSProtocolHandler.cpp:377: error: 'mChannel' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp: In member function 'GnomeVFSResult nsGnomeVFSInputStream: oOpen()':
nsGnomeVFSProtocolHandler.cpp:410: error: 'mChannel' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:426: error: 'mSpec' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:458: error: 'APPLICATION_OCTET_STREAM' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:478: error: 'mDirBuf' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:491: error: 'APPLICATION_HTTP_INDEX_FORMAT' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp: In member function 'GnomeVFSResult nsGnomeVFSInputStream: oRead(char*, PRUint32, PRUint32*)':
nsGnomeVFSProtocolHandler.cpp:521: error: 'mDirBuf' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:552: error: 'nsCString' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:552: error: expected `;' before 'escName'
nsGnomeVFSProtocolHandler.cpp:553: error: 'nsINetUtil' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:553: error: template argument 1 is invalid
nsGnomeVFSProtocolHandler.cpp:553: error: invalid type in declaration before '=' token
nsGnomeVFSProtocolHandler.cpp:553: error: 'NS_NETUTIL_CONTRACTID' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:555: error: base operand of '->' is not a pointer
nsGnomeVFSProtocolHandler.cpp:555: error: 'nsDependentCString' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:556: error: 'nsINetUtil' is not a class or namespace
nsGnomeVFSProtocolHandler.cpp:556: error: 'escName' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp: At global scope:
nsGnomeVFSProtocolHandler.cpp:615: error: expected class-name before '{' token
nsGnomeVFSProtocolHandler.cpp:617: error: expected `)' before '*' token
nsGnomeVFSProtocolHandler.cpp:631: error: ISO C++ forbids declaration of 'nsIChannel' with no type
nsGnomeVFSProtocolHandler.cpp:631: error: expected ';' before '*' token
nsGnomeVFSProtocolHandler.cpp:632: error: 'nsCString' does not name a type
nsGnomeVFSProtocolHandler.cpp: In member function 'virtual nsresult nsGnomeVFSSetContentTypeEvent::Run()':
nsGnomeVFSProtocolHandler.cpp:626: error: 'mChannel' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:626: error: 'mContentType' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp: In member function 'nsresult nsGnomeVFSInputStream::SetContentTypeOfChannel(const char*)':
nsGnomeVFSProtocolHandler.cpp:645: error: 'nsIRunnable' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:645: error: template argument 1 is invalid
nsGnomeVFSProtocolHandler.cpp:645: error: invalid type in declaration before '=' token
nsGnomeVFSProtocolHandler.cpp:646: error: 'mChannel' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp:653: error: 'NS_DispatchToMainThread' was not declared in this scope
nsGnomeVFSProtocolHandler.cpp: In member function 'virtual nsresult nsGnomeVFSInputStream: ueryInterface(const nsIID&, void**)':
nsGnomeVFSProtocolHandler.cpp:658: error: 'nsIInputStream' has not been declared
nsGnomeVFSProtocolHandler.cpp:658: error: expected primary-expression before 'int'
nsGnomeVFSProtocolHandler.cpp:658: error: expected `}' before 'int'
nsGnomeVFSProtocolHandler.cpp:658: error: expected `}' before 'int'
nsGnomeVFSProtocolHandler.cpp:658: error: expected ',' or ';' before 'int'
nsGnomeVFSProtocolHandler.cpp: At global scope:
nsGnomeVFSProtocolHandler.cpp:658: error: mixing declarations and function-definitions is forbidden
nsGnomeVFSProtocolHandler.cpp:658: error: expected unqualified-id before '{' token
nsGnomeVFSProtocolHandler.cpp:658: error: expected unqualified-id before ',' token
nsGnomeVSProtocolHandler.cpp:658: error: expected unqualified-id before '{' token
nsGnomeVFSProtocolHandler.cpp:658: error: expected declaration before '}' token
gmake[4]: *** [nsGnomeVFSProtocolHandler.o] Error 1
我看了下主要是几个头文件找不到比如nsThreadUtils.h
然后我到我的系统里面找了下,发现nsThreadUtils.h在./var/tmp/portage/www-client/mozilla-firefox-3.5.1/work/mozilla-1.9.1/xpcom/glue/nsThreadUtils.h
于是我打开了/var/tmp/portage/www-client/mozilla-firefox-3.5.1/work/mozilla-1.9.1/extensions/gnomevfs/nsGnomeVFSProtocolHandler.cpp文件
结果发现它的头文件是这样include的
#include "nsServiceManagerUtils.h"
#include "nsComponentManagerUtils.h"
#include "nsIGenericFactory.h"
#include "nsIInterfaceRequestorUtils.h"
#include "nsIPrefService.h"
#include "nsIPrefBranch2.h"
#include "nsIObserver.h"
#include "nsThreadUtils.h"
#include "nsProxyRelease.h"
#include "nsIAuthPrompt.h"
#include "nsIStringBundle.h"
#include "nsIStandardURL.h"
#include "nsIURL.h"
#include "nsMimeTypes.h"
#include "nsNetUtil.h"
#include "nsINetUtil.h"
#include "nsAutoPtr.h"
#include "nsError.h"
#include "prlog.h"
#include "prtime.h"
#include "prprf.h"
#include "plstr.h"
应该是路径不对
自己改又不行(gentoo有portage验证)
现在我是在opera上,用不了firefox(emerge了个bin版的,发现一动菜单就会死),极度郁闷,没有firefox方便,毕竟firefox好用的插件比较多
请问怎么解决,急
-_-# |
|