当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 4 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : [问题]编译chmsee1.0.0时出现collect2: ld returned 1 exit status错误!求助
帖子发表于 : 2008-03-10 16:02 

注册: 2006-05-22 15:56
帖子: 40
送出感谢: 0 次
接收感谢: 0 次
./configure成功,结果为
====================================================================
ChmSee build options:
====================================================================
Target i686-pc-linux-gnu
Enable debug no
Gecko version firefox


make的时候出错:
:~/packages/chmsee-1.0.0$ make
make all-recursive
make[1]: Entering directory `/home/zouxi/packages/chmsee-1.0.0'
Making all in cs2w
make[2]: Entering directory `/home/zouxi/packages/chmsee-1.0.0/cs2w'
Making all in template
make[3]: Entering directory `/home/zouxi/packages/chmsee-1.0.0/cs2w/template'
Making all in cs2w_icons
make[4]: Entering directory `/home/zouxi/packages/chmsee-1.0.0/cs2w/template/cs2w_icons'
make[4]: 没有什么可以做的为 `all'。
make[4]: Leaving directory `/home/zouxi/packages/chmsee-1.0.0/cs2w/template/cs2w_icons'
Making all in stylesheet
make[4]: Entering directory `/home/zouxi/packages/chmsee-1.0.0/cs2w/template/stylesheet'
make[4]: 没有什么可以做的为 `all'。
make[4]: Leaving directory `/home/zouxi/packages/chmsee-1.0.0/cs2w/template/stylesheet'
make[4]: Entering directory `/home/zouxi/packages/chmsee-1.0.0/cs2w/template'
make[4]: 没有什么可以做的为 `all-am'。
make[4]: Leaving directory `/home/zouxi/packages/chmsee-1.0.0/cs2w/template'
make[3]: Leaving directory `/home/zouxi/packages/chmsee-1.0.0/cs2w/template'
make[3]: Entering directory `/home/zouxi/packages/chmsee-1.0.0/cs2w'
make[3]: 没有什么可以做的为 `all-am'。
make[3]: Leaving directory `/home/zouxi/packages/chmsee-1.0.0/cs2w'
make[2]: Leaving directory `/home/zouxi/packages/chmsee-1.0.0/cs2w'
Making all in doc
make[2]: Entering directory `/home/zouxi/packages/chmsee-1.0.0/doc'
make[2]: 没有什么可以做的为 `all'。
make[2]: Leaving directory `/home/zouxi/packages/chmsee-1.0.0/doc'
Making all in po
make[2]: Entering directory `/home/zouxi/packages/chmsee-1.0.0/po'
make[2]: 没有什么可以做的为 `all'。
make[2]: Leaving directory `/home/zouxi/packages/chmsee-1.0.0/po'
Making all in src
make[2]: Entering directory `/home/zouxi/packages/chmsee-1.0.0/src'
make all-am
make[3]: Entering directory `/home/zouxi/packages/chmsee-1.0.0/src'
/bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -o chmsee chmsee-main.o chmsee-marshal_main.o chmsee-bookmarks.o chmsee-booktree.o chmsee-chmfile.o chmsee-chmsee.o chmsee-html.o chmsee-link.o chmsee-parser.o chmsee-setup.o chmsee-startup.o chmsee-gecko_utils.o chmsee-utils.o -pthread -lgthread-2.0 -lrt -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lpango-1.0 -lcairo -lX11 -lXfixes -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -L -lchm -lssl -lcrypto -ldl -L/usr/lib/firefox -lgtkembedmoz -lxpcom -lplds4 -lplc4 -lnspr4 -lpthread -ldl
g++ -g -O2 -o chmsee chmsee-main.o chmsee-marshal_main.o chmsee-bookmarks.o chmsee-booktree.o chmsee-chmfile.o chmsee-chmsee.o chmsee-html.o chmsee-link.o chmsee-parser.o chmsee-setup.o chmsee-startup.o chmsee-gecko_utils.o chmsee-utils.o -pthread /usr/lib/libgthread-2.0.so -lrt /usr/lib/libglade-2.0.so /usr/lib/libgtk-x11-2.0.so /usr/lib/libxml2.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libpangocairo-1.0.so -lXext -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage /usr/lib/libpango-1.0.so /usr/lib/libcairo.so /usr/lib/libfreetype.so -lz -lfontconfig -lpng12 -lXrender -lm -lX11 -lXfixes /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libglib-2.0.so -L/home/zouxi/packages/chmsee-1.0.0/src /usr/lib/libchm.so -lssl -lcrypto -L/usr/lib/firefox -lgtkembedmoz -lxpcom -lplds4 -lplc4 -lnspr4 -lpthread -ldl
/usr/bin/ld: warning: libxpcom_core.so, needed by /usr/lib/firefox/libgtkembedmoz.so, not found (try using -rpath or -rpath-link)
chmsee-gecko_utils.o: In function `nsCOMPtr<nsIWebBrowser>::StartAssignment()':
/usr/include/firefox/nsCOMPtr.h:901: undefined reference to `nsCOMPtr_base::begin_assignment()'
chmsee-gecko_utils.o: In function `nsGetInterface':
/usr/include/firefox/nsIInterfaceRequestorUtils.h:63: undefined reference to `vtable for nsGetInterface'
chmsee-gecko_utils.o: In function `nsCOMPtr<nsICommandManager>::operator=(nsCOMPtr_helper const&)':
/usr/include/firefox/nsCOMPtr.h:780: undefined reference to `nsCOMPtr_base::assign_from_helper(nsCOMPtr_helper const&, nsID const&)'
chmsee-gecko_utils.o: In function `~nsCOMPtr':
/usr/include/firefox/nsCOMPtr.h:542: undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
chmsee-gecko_utils.o: In function `~nsCOMPtr':
/home/zouxi/packages/chmsee-1.0.0/src/gecko_utils.cpp:90: undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
chmsee-gecko_utils.o: In function `~nsCOMPtr':
/usr/include/firefox/nsCOMPtr.h:542: undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
chmsee-gecko_utils.o: In function `~nsCOMPtr':
/home/zouxi/packages/chmsee-1.0.0/src/gecko_utils.cpp:306: undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
chmsee-gecko_utils.o: In function `nsCOMPtr':
/usr/include/firefox/nsCOMPtr.h:685: undefined reference to `nsCOMPtr_base::assign_from_gs_contractid_with_error(nsGetServiceByContractIDWithError const&, nsID const&)'
chmsee-gecko_utils.o: In function `nsCOMPtr<nsIPrefBranch>::StartAssignment()':
/usr/include/firefox/nsCOMPtr.h:901: undefined reference to `nsCOMPtr_base::begin_assignment()'
chmsee-gecko_utils.o: In function `~nsCOMPtr':
/usr/include/firefox/nsCOMPtr.h:542: undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
chmsee-gecko_utils.o: In function `~nsCOMPtr':
/home/zouxi/packages/chmsee-1.0.0/src/gecko_utils.cpp:167: undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
chmsee-gecko_utils.o: In function `~nsCOMPtr':
/usr/include/firefox/nsCOMPtr.h:685: undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
/usr/include/firefox/nsCOMPtr.h:542: undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
chmsee-gecko_utils.o: In function `nsCOMPtr':
/usr/include/firefox/nsCOMPtr.h:685: undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
chmsee-gecko_utils.o: In function `nsCOMPtr<nsIWebBrowser>::StartAssignment()':
/usr/include/firefox/nsCOMPtr.h:901: undefined reference to `nsCOMPtr_base::begin_assignment()'
chmsee-gecko_utils.o: In function `nsCOMPtr<nsIDOMWindow>::StartAssignment()':
/usr/include/firefox/nsCOMPtr.h:901: undefined reference to `nsCOMPtr_base::begin_assignment()'
chmsee-gecko_utils.o: In function `~nsCOMPtr':
/usr/include/firefox/nsCOMPtr.h:542: undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
chmsee-gecko_utils.o: In function `~nsCOMPtr':
/home/zouxi/packages/chmsee-1.0.0/src/gecko_utils.cpp:346: undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
chmsee-gecko_utils.o: In function `~nsCOMPtr':
/usr/include/firefox/nsCOMPtr.h:542: undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
chmsee-gecko_utils.o: In function `~nsCOMPtr':
/home/zouxi/packages/chmsee-1.0.0/src/gecko_utils.cpp:312: undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
chmsee-gecko_utils.o: In function `nsCOMPtr<nsIWebBrowser>::StartAssignment()':
/usr/include/firefox/nsCOMPtr.h:901: undefined reference to `nsCOMPtr_base::begin_assignment()'
chmsee-gecko_utils.o: In function `nsCOMPtr<nsIDOMWindow>::StartAssignment()':
/usr/include/firefox/nsCOMPtr.h:901: undefined reference to `nsCOMPtr_base::begin_assignment()'
chmsee-gecko_utils.o: In function `~nsCOMPtr':
/usr/include/firefox/nsCOMPtr.h:542: undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
chmsee-gecko_utils.o: In function `~nsCOMPtr':
/home/zouxi/packages/chmsee-1.0.0/src/gecko_utils.cpp:329: undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
/home/zouxi/packages/chmsee-1.0.0/src/gecko_utils.cpp:138: undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
chmsee-gecko_utils.o: In function `~nsCOMPtr':
/usr/include/firefox/nsCOMPtr.h:542: undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
chmsee-gecko_utils.o: In function `nsCOMPtr':
/usr/include/firefox/nsCOMPtr.h:685: undefined reference to `nsCOMPtr_base::assign_from_gs_contractid_with_error(nsGetServiceByContractIDWithError const&, nsID const&)'
chmsee-gecko_utils.o: In function `nsCOMPtr<nsIPrefBranch>::StartAssignment()':
/usr/include/firefox/nsCOMPtr.h:901: undefined reference to `nsCOMPtr_base::begin_assignment()'
chmsee-gecko_utils.o: In function `~nsCOMPtr':
/usr/include/firefox/nsCOMPtr.h:542: undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
chmsee-gecko_utils.o: In function `~nsCOMPtr':
/home/zouxi/packages/chmsee-1.0.0/src/gecko_utils.cpp:151: undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
chmsee-gecko_utils.o: In function `~nsCOMPtr':
/usr/include/firefox/nsCOMPtr.h:685: undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
/usr/include/firefox/nsCOMPtr.h:542: undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
chmsee-gecko_utils.o: In function `nsCOMPtr':
/usr/include/firefox/nsCOMPtr.h:685: undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
/usr/include/firefox/nsCOMPtr.h:685: undefined reference to `nsCOMPtr_base::assign_from_gs_contractid_with_error(nsGetServiceByContractIDWithError const&, nsID const&)'
chmsee-gecko_utils.o: In function `nsCOMPtr<nsILocalFile>::StartAssignment()':
/usr/include/firefox/nsCOMPtr.h:901: undefined reference to `nsCOMPtr_base::begin_assignment()'
chmsee-gecko_utils.o: In function `~nsCOMPtr':
/usr/include/firefox/nsCOMPtr.h:542: undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
chmsee-gecko_utils.o: In function `~nsCOMPtr':
/home/zouxi/packages/chmsee-1.0.0/src/gecko_utils.cpp:212: undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
chmsee-gecko_utils.o: In function `~nsCOMPtr':
/usr/include/firefox/nsCOMPtr.h:542: undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
/usr/include/firefox/nsCOMPtr.h:685: undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
chmsee-gecko_utils.o: In function `nsCOMPtr':
/usr/include/firefox/nsCOMPtr.h:685: undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()'
/usr/lib/firefox/libxpcom.so: undefined reference to `NS_GetDebug_P'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `nsPromiseFlatCString::Init(nsACString_internal const&)'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `nsCOMPtr_base::assign_from_qi(nsQueryInterface, nsID const&)'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `nsCRT::strdup(unsigned short const*)'
/usr/lib/firefox/libxpcom.so: undefined reference to `NS_CStringGetData_P'
/usr/lib/firefox/libxpcom.so: undefined reference to `NS_StringContainerInit_P'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `NS_NewNativeLocalFile_P'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `nsAString_internal::AssignASCII(char const*, unsigned int)'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `nsCharTraits<char>::sEmptyBuffer'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `NS_GetComponentRegistrar_P'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `vtable for nsCreateInstanceByContractID'
/usr/lib/firefox/libxpcom.so: undefined reference to `NS_CStringSetData_P'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `vtable for nsSupportsWeakReference'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `nsCharTraits<unsigned short>::sEmptyBuffer'
/usr/lib/firefox/libxpcom.so: undefined reference to `NS_Alloc_P'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `nsObsoleteACString::sCanonicalVTable'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `CopyUTF16toUTF8(unsigned short const*, nsACString_internal&)'
/usr/lib/firefox/libxpcom.so: undefined reference to `NS_ShutdownXPCOM_P'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `nsCSubstring::Assign(char const*, unsigned int)'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `AppendUTF16toUTF8(nsAString_internal const&, nsACString_internal&)'
/usr/lib/firefox/libxpcom.so: undefined reference to `NS_InitXPCOM3_P'
/usr/lib/firefox/libxpcom.so: undefined reference to `NS_RegisterXPCOMExitRoutine_P'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `ToNewUnicode(nsAString_internal const&)'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `NS_NewGenericFactory(nsIGenericFactory**, nsModuleComponentInfo const*)'
/usr/lib/firefox/libxpcom.so: undefined reference to `NS_InitXPCOM2_P'
/usr/lib/firefox/libxpcom.so: undefined reference to `NS_CStringGetMutableData_P'
/usr/lib/firefox/libxpcom.so: undefined reference to `NS_StringSetDataRange_P'
/usr/lib/firefox/libxpcom.so: undefined reference to `NS_StringContainerFinish_P'
/usr/lib/firefox/libxpcom.so: undefined reference to `NS_GetServiceManager_P'
/usr/lib/firefox/libxpcom.so: undefined reference to `NS_StringGetData_P'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `nsVoidArray::nsVoidArray()'
/usr/lib/firefox/libxpcom.so: undefined reference to `NS_StringCloneData_P'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `NS_Free_P'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `nsMemory::Clone(void const*, unsigned int)'
/usr/lib/firefox/libxpcom.so: undefined reference to `NS_UTF16ToCString_P'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `EmptyString()'
/usr/lib/firefox/libxpcom.so: undefined reference to `NS_NewLocalFile_P'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `vtable for nsCreateInstanceByCID'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `nsSubstring::Equals(nsSubstring const&) const'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `ToNewUTF8String(nsAString_internal const&, unsigned int*)'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `CopyUTF8toUTF16(char const*, nsAString_internal&)'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `nsCOMPtr_base::assign_with_AddRef(nsISupports*)'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `UTF8ToNewUnicode(nsACString_internal const&, unsigned int*)'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `nsVoidArray::RemoveElement(void*)'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `nsSupportsWeakReference::GetWeakReference(nsIWeakReference**)'
/usr/lib/firefox/libxpcom.so: undefined reference to `NS_CStringContainerFinish_P'
/usr/lib/firefox/libxpcom.so: undefined reference to `NS_StringCopy_P'
/usr/lib/firefox/libxpcom.so: undefined reference to `NS_CStringCloneData_P'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `nsSubstring::Assign(unsigned short const*, unsigned int)'
/usr/lib/firefox/libxpcom.so: undefined reference to `NS_GetMemoryManager_P'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `nsCSubstring::Adopt(char*, unsigned int)'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `nsVoidArray::InsertElementAt(void*, int)'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `nsAString_internal::Assign(unsigned short const*)'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `nsObsoleteAString::sCanonicalVTable'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `nsCOMPtr_base::assign_from_gs_contractid(nsGetServiceByContractID, nsID const&)'
/usr/lib/firefox/libxpcom.so: undefined reference to `NS_UnregisterXPCOMExitRoutine_P'
/usr/lib/firefox/libxpcom.so: undefined reference to `NS_Realloc_P'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `nsACString_internal::~nsACString_internal()'
/usr/lib/firefox/libxpcom.so: undefined reference to `NS_StringContainerInit2_P'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `NS_GetComponentManager_P'
/usr/lib/firefox/libxpcom.so: undefined reference to `NS_CStringContainerInit_P'
/usr/lib/firefox/libxpcom.so: undefined reference to `NS_StringGetMutableData_P'
/usr/lib/firefox/libxpcom.so: undefined reference to `NS_GetTraceRefcnt_P'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `nsCOMPtr_base::assign_from_gs_cid_with_error(nsGetServiceByCIDWithError const&, nsID const&)'
/usr/lib/firefox/libxpcom.so: undefined reference to `NS_StringSetData_P'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `CopyUTF8toUTF16(nsACString_internal const&, nsAString_internal&)'
/usr/lib/firefox/libxpcom.so: undefined reference to `NS_CStringToUTF16_P'
/usr/lib/firefox/libxpcom.so: undefined reference to `NS_CStringContainerInit2_P'
/usr/lib/firefox/libxpcom.so: undefined reference to `NS_CStringSetDataRange_P'
/usr/lib/firefox/libxpcom.so: undefined reference to `NS_CStringCopy_P'
/usr/lib/firefox/libgtkembedmoz.so: undefined reference to `nsAString_internal::~nsAString_internal()'
collect2: ld returned 1 exit status
make[3]: *** [chmsee] 错误 1
make[3]: Leaving directory `/home/zouxi/packages/chmsee-1.0.0/src'
make[2]: *** [all] 错误 2
make[2]: Leaving directory `/home/zouxi/packages/chmsee-1.0.0/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/zouxi/packages/chmsee-1.0.0'
make: *** [all] 错误 2


帮我找找原因,谢谢!


页首
 用户资料  
 
2 楼 
 文章标题 :
帖子发表于 : 2008-03-18 17:00 

注册: 2008-03-13 17:13
帖子: 7
送出感谢: 0 次
接收感谢: 0 次
哥们,太长了,吓人, 你自己先找找看


页首
 用户资料  
 
3 楼 
 文章标题 :
帖子发表于 : 2008-04-15 11:05 

注册: 2005-11-17 19:53
帖子: 2
送出感谢: 0 次
接收感谢: 0 次
-lxpcomglue会减少很多链接错误
但我的还是有一些链接错误


页首
 用户资料  
 
4 楼 
 文章标题 :
帖子发表于 : 2008-05-07 10:14 
头像

注册: 2007-08-04 11:06
帖子: 402
送出感谢: 0 次
接收感谢: 0 次
和lz一样的问题,编译0.96版本貌似能用,1.0.0就是不通过,艾。。


_________________
图片


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 4 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译