Closed Bug 629896 Opened 13 years ago Closed 13 years ago

Link fails when linking TestMsgStripRE.exe in mailnews/base/test

Categories

(Thunderbird :: Build Config, defect)

x86
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 632429

People

(Reporter: joachim.herb, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b10) Gecko/20100101 Firefox/4.0b10
Build Identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b11pre) Gecko/20110129 Thunderbird/3.3a3pre

When compiling Thunderbird 3.3a3pre from sources on Windows, compilation (linking) fails in directory mailnews/base/test

(work around to ignore error: make -i -k -f client.mk build)

Building environment:
Windows SDK directory: C:\Program Files\Microsoft SDKs\Windows\v7.0\
Windows SDK version: 0.0
Platform SDK directory: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\
Platform SDK version: 5
Setting environment for using Microsoft Visual Studio 2008 x86 tools.
Mozilla build environment: MSVC version 9.


Here is the .mozconfig file:
ac_add_options --enable-application=mail
ac_add_options --disable-static --disable-libxul
ac_add_options --disable-crashreporter
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-tb
mk_add_options MOZ_CO_PROJECT=mail
ac_add_options --enable-chrome-format=jar

And here the error messages, if compilation is restarted in mailnews/base/test:
make export
make[1]: Entering directory `/c/Users/joachim/workspace/comm/obj-tb/mailnews/base/test'
Creating /c/Users/joachim/workspace/comm/obj-tb/mailnews/base/test/.deps
make[1]: Leaving directory `/c/Users/joachim/workspace/comm/obj-tb/mailnews/base/test'
make libs
make[1]: Entering directory `/c/Users/joachim/workspace/comm/obj-tb/mailnews/base/test'
c:/Users/joachim/mozilla-build/python/python2.6.exe /c/Users/joachim/workspace/comm/mozilla/config/nsinstall.py /c/Users/joachim/workspace/comm/mailnews/base/test/unit/head_mailbase.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/nodelist_test.xml /c/Users/joachim/workspace/comm/mailnews/base/test/unit/tail_base.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_accountMgr.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_accountMigration.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_acctRepair.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_autoconfigUtils.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_autoconfigXML.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_bccInDatabase.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_bug366491.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_bug404489.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_bug428427.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_bug434810.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_bug465805.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_bug471682.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_bug514945.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_copyChaining.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_copyThenMoveManual.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_detachToFile.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_dictUtils.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_emptyTrash.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_fix_deferred_accounts.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_folderCompact.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_getMsgTextFromStream.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_imapPump.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_inheritedFolderProperties.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_iteratorUtils.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_jsTreeSelection.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_junkWhitelisting.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_junkingWhenDisabled.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_loadVirtualFolders.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_mimemaltdetach.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_nsIMsgFolder.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_nsIMsgFolderListener.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_nsIMsgFolderListenerLocal.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_nsIMsgTagService.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_nsMailDirProvider.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_nsMsgDBView.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_nsMsgMailSession_Alerts.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_nsMsgMailSession_Listeners.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_nsMsgTraitService.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_postPluginFilters.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_search.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_searchAddressInAb.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_searchBody.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_searchBoolean.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_searchChaining.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_searchCustomTerm.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_searchJunk.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_searchLocalizationStrings.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_searchTag.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_searchUint32HdrProperty.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_testsuite_base64.js /c/Users/joachim/workspace/comm/mailnews/base/test/unit/test_testsuite_fakeserverAuth.js ../../../mozilla/_tests/xpcshell/mailnews/base/test/unit
c:/Users/joachim/mozilla-build/python/python2.6.exe /c/Users/joachim/workspace/comm/mozilla/config/buildlist.py \
	  ../../../mozilla/_tests/xpcshell/all-test-dirs.list \
	  mailnews/base/test/unit
TestMsgStripRE.cpp
c:/Users/joachim/mozilla-build/python/python2.6.exe -O c:/Users/joachim/workspace/comm/mozilla/build/cl.py cl -FoTestMsgStripRE.obj -c -D_HAS_EXCEPTIONS=0 -I../../../mozilla/dist/stl_wrappers  -DMOZILLA_INTERNAL_API -DMOZ_THUNDERBIRD=1 -DOSTYPE=\"WINNT6.1\" -DOSARCH=WINNT -I/c/Users/joachim/workspace/comm/mozilla/xpcom/tests  -I/c/Users/joachim/workspace/comm/mailnews/base/test -I. -I../../../mozilla/dist/include -I../../../mozilla/dist/include/nsprpub  -Ic:/Users/joachim/workspace/comm/obj-tb/mozilla/dist/include/nspr -Ic:/Users/joachim/workspace/comm/obj-tb/mozilla/dist/include/nss     -I../../../mozilla/dist/include/testing    -GR- -TP -nologo -Zc:wchar_t- -W3 -Gy -FdTestMsgStripRE.pdb -wd4800  -DNDEBUG -DTRIMMED -O1 -MD            -FI ../../../comm-config.h -DMOZILLA_CLIENT /c/Users/joachim/workspace/comm/mailnews/base/test/TestMsgStripRE.cpp
TestMsgStripRE.cpp

c:/Users/joachim/workspace/comm/mailnews/base/test/TestMsgStripRE.cpp(102) : warning C4309: 'initializing' : truncation of constant value

c:/Users/joachim/workspace/comm/mailnews/base/test/TestMsgStripRE.cpp(102) : warning C4309: 'initializing' : truncation of constant value

c:/Users/joachim/workspace/comm/mailnews/base/test/TestMsgStripRE.cpp(102) : warning C4309: 'initializing' : truncation of constant value

c:/Users/joachim/workspace/comm/mailnews/base/test/TestMsgStripRE.cpp(102) : warning C4309: 'initializing' : truncation of constant value

c:/Users/joachim/workspace/comm/mailnews/base/test/TestMsgStripRE.cpp(102) : warning C4309: 'initializing' : truncation of constant value

c:/Users/joachim/workspace/comm/mailnews/base/test/TestMsgStripRE.cpp(102) : warning C4309: 'initializing' : truncation of constant value

link -nologo -out:TestMsgStripRE.exe -pdb:TestMsgStripRE.pdb TestMsgStripRE.obj  -MANIFESTUAC:NO -NXCOMPAT -DYNAMICBASE -SAFESEH    c:/Users/joachim/workspace/comm/obj-tb/mozilla/dist/lib/xpcomglue_s.lib c:/Users/joachim/workspace/comm/obj-tb/mozilla/dist/lib/xpcom.lib c:/Users/joachim/workspace/comm/obj-tb/mozilla/dist/lib/mozalloc.lib c:/Users/joachim/workspace/comm/obj-tb/mozilla/dist/lib/nspr4.lib c:/Users/joachim/workspace/comm/obj-tb/mozilla/dist/lib/plc4.lib c:/Users/joachim/workspace/comm/obj-tb/mozilla/dist/lib/plds4.lib @../../base/util/msgbsutl_s.lib.fake c:/Users/joachim/workspace/comm/obj-tb/mozilla/dist/lib/xpcom.lib c:/Users/joachim/workspace/comm/obj-tb/mozilla/dist/lib/xpcom_core.lib c:/Users/joachim/workspace/comm/obj-tb/mozilla/dist/lib/mozalloc.lib c:/Users/joachim/workspace/comm/obj-tb/mozilla/dist/lib/nspr4.lib c:/Users/joachim/workspace/comm/obj-tb/mozilla/dist/lib/plc4.lib c:/Users/joachim/workspace/comm/obj-tb/mozilla/dist/lib/plds4.lib kernel32.lib user32.lib gdi32.lib winmm.lib wsock32.lib advapi32.lib
xpcom_core.lib(xpcom_core.dll) : error LNK2005: "public: __thiscall nsCOMPtr_base::~nsCOMPtr_base(void)" (??1nsCOMPtr_base@@QAE@XZ) already defined in xpcomglue_s.lib(nsCOMPtr.obj)
xpcom_core.lib(xpcom_core.dll) : error LNK2005: "unsigned int __fastcall NS_TableDrivenQI(void *,struct QITableEntry const *,struct nsID const &,void * *)" (?NS_TableDrivenQI@@YIIPAXPBUQITableEntry@@ABUnsID@@PAPAX@Z) already defined in xpcomglue_s.lib(nsISupportsImpl.obj)
xpcom_core.lib(xpcom_core.dll) : error LNK2005: "public: void __fastcall nsCOMPtr_base::assign_with_AddRef(class nsISupports *)" (?assign_with_AddRef@nsCOMPtr_base@@QAIXPAVnsISupports@@@Z) already defined in xpcomglue_s.lib(nsCOMPtr.obj)
xpcom_core.lib(xpcom_core.dll) : error LNK2005: "public: void __fastcall nsCOMPtr_base::assign_from_gs_contractid_with_error(class nsGetServiceByContractIDWithError const &,struct nsID const &)" (?assign_from_gs_contractid_with_error@nsCOMPtr_base@@QAIXABVnsGetServiceByContractIDWithError@@ABUnsID@@@Z) already defined in xpcomglue_s.lib(nsCOMPtr.obj)
xpcom_core.lib(xpcom_core.dll) : error LNK2005: "public: void __fastcall nsCOMPtr_base::assign_from_helper(class nsCOMPtr_helper const &,struct nsID const &)" (?assign_from_helper@nsCOMPtr_base@@QAIXABVnsCOMPtr_helper@@ABUnsID@@@Z) already defined in xpcomglue_s.lib(nsCOMPtr.obj)
xpcom_core.lib(xpcom_core.dll) : error LNK2005: "public: void __fastcall nsCOMPtr_base::assign_from_qi(class nsQueryInterface,struct nsID const &)" (?assign_from_qi@nsCOMPtr_base@@QAIXVnsQueryInterface@@ABUnsID@@@Z) already defined in xpcomglue_s.lib(nsCOMPtr.obj)
xpcom_core.lib(xpcom_core.dll) : error LNK2005: "public: void __fastcall nsCOMPtr_base::assign_from_qi_with_error(class nsQueryInterfaceWithError const &,struct nsID const &)" (?assign_from_qi_with_error@nsCOMPtr_base@@QAIXABVnsQueryInterfaceWithError@@ABUnsID@@@Z) already defined in xpcomglue_s.lib(nsCOMPtr.obj)
xpcom_core.lib(xpcom_core.dll) : error LNK2005: "public: void __fastcall nsCOMPtr_base::assign_from_gs_contractid(class nsGetServiceByContractID,struct nsID const &)" (?assign_from_gs_contractid@nsCOMPtr_base@@QAIXVnsGetServiceByContractID@@ABUnsID@@@Z) already defined in xpcomglue_s.lib(nsCOMPtr.obj)
xpcom_core.lib(xpcom_core.dll) : error LNK2005: "public: void __fastcall nsCOMPtr_base::assign_from_gs_cid_with_error(class nsGetServiceByCIDWithError const &,struct nsID const &)" (?assign_from_gs_cid_with_error@nsCOMPtr_base@@QAIXABVnsGetServiceByCIDWithError@@ABUnsID@@@Z) already defined in xpcomglue_s.lib(nsCOMPtr.obj)
xpcom_core.lib(xpcom_core.dll) : error LNK2005: "class nsIWeakReference * __cdecl NS_GetWeakReference(class nsISupports *,unsigned int *)" (?NS_GetWeakReference@@YAPAVnsIWeakReference@@PAVnsISupports@@PAI@Z) already defined in xpcomglue_s.lib(nsWeakReference.obj)
xpcom_core.lib(xpcom_core.dll) : error LNK2005: "protected: void __thiscall nsSupportsWeakReference::ClearWeakReferences(void)" (?ClearWeakReferences@nsSupportsWeakReference@@IAEXXZ) already defined in xpcomglue_s.lib(nsWeakReference.obj)
nsMsgDBFolder.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall nsCaseInsensitiveStringComparator::operator()(unsigned short const *,unsigned short const *,unsigned int,unsigned int)const " (??RnsCaseInsensitiveStringComparator@@UBEHPBG0II@Z)
nsMsgDBFolder.obj : error LNK2019: unresolved external symbol "public: virtual unsigned int __stdcall nsRDFResource::QueryInterface(struct nsID const &,void * *)" (?QueryInterface@nsRDFResource@@UAGIABUnsID@@PAPAX@Z) referenced in function "public: virtual unsigned int __stdcall nsMsgDBFolder::QueryInterface(struct nsID const &,void * *)" (?QueryInterface@nsMsgDBFolder@@UAGIABUnsID@@PAPAX@Z)
nsMsgDBFolder.obj : error LNK2019: unresolved external symbol "public: virtual unsigned long __stdcall nsRDFResource::AddRef(void)" (?AddRef@nsRDFResource@@UAGKXZ) referenced in function "public: virtual unsigned long __stdcall nsMsgDBFolder::AddRef(void)" (?AddRef@nsMsgDBFolder@@UAGKXZ)
nsMsgDBFolder.obj : error LNK2019: unresolved external symbol "public: virtual unsigned long __stdcall nsRDFResource::Release(void)" (?Release@nsRDFResource@@UAGKXZ) referenced in function "public: virtual unsigned long __stdcall nsMsgDBFolder::Release(void)" (?Release@nsMsgDBFolder@@UAGKXZ)
nsMsgDBFolder.obj : error LNK2019: unresolved external symbol "public: virtual unsigned int __stdcall nsRDFResource::Init(char const *)" (?Init@nsRDFResource@@UAGIPBD@Z) referenced in function "public: virtual unsigned int __stdcall nsMsgDBFolder::Init(char const *)" (?Init@nsMsgDBFolder@@UAGIPBD@Z)
nsMsgDBFolder.obj : error LNK2019: unresolved external symbol "public: virtual unsigned int __stdcall nsRDFResource::GetValueUTF8(class nsACString_internal &)" (?GetValueUTF8@nsRDFResource@@UAGIAAVnsACString_internal@@@Z) referenced in function "public: virtual unsigned int __stdcall nsMsgDBFolder::GetURI(class nsACString_internal &)" (?GetURI@nsMsgDBFolder@@UAGIAAVnsACString_internal@@@Z)
nsMsgDBFolder.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall nsRDFResource::~nsRDFResource(void)" (??1nsRDFResource@@UAE@XZ) referenced in function "public: virtual __thiscall nsMsgDBFolder::~nsMsgDBFolder(void)" (??1nsMsgDBFolder@@UAE@XZ)
nsMsgDBFolder.obj : error LNK2001: unresolved external symbol "public: virtual unsigned int __stdcall nsRDFResource::EqualsNode(class nsIRDFNode *,int *)" (?EqualsNode@nsRDFResource@@UAGIPAVnsIRDFNode@@PAH@Z)
nsMsgDBFolder.obj : error LNK2001: unresolved external symbol "public: virtual unsigned int __stdcall nsRDFResource::GetValue(char * *)" (?GetValue@nsRDFResource@@UAGIPAPAD@Z)
nsMsgDBFolder.obj : error LNK2001: unresolved external symbol "public: virtual unsigned int __stdcall nsRDFResource::GetValueConst(char const * *)" (?GetValueConst@nsRDFResource@@UAGIPAPBD@Z)
nsMsgDBFolder.obj : error LNK2001: unresolved external symbol "public: virtual unsigned int __stdcall nsRDFResource::EqualsString(char const *,int *)" (?EqualsString@nsRDFResource@@UAGIPBDPAH@Z)
nsMsgDBFolder.obj : error LNK2001: unresolved external symbol "public: virtual unsigned int __stdcall nsRDFResource::GetDelegate(char const *,struct nsID const &,void * *)" (?GetDelegate@nsRDFResource@@UAGIPBDABUnsID@@PAPAX@Z)
nsMsgDBFolder.obj : error LNK2001: unresolved external symbol "public: virtual unsigned int __stdcall nsRDFResource::ReleaseDelegate(char const *)" (?ReleaseDelegate@nsRDFResource@@UAGIPBD@Z)
nsMsgDBFolder.obj : error LNK2019: unresolved external symbol "public: __thiscall nsRDFResource::nsRDFResource(void)" (??0nsRDFResource@@QAE@XZ) referenced in function "public: __thiscall nsMsgDBFolder::nsMsgDBFolder(void)" (??0nsMsgDBFolder@@QAE@XZ)
nsMsgCompressIStream.obj : error LNK2019: unresolved external symbol _MOZ_Z_inflate referenced in function "protected: unsigned int __thiscall nsMsgCompressIStream::DoInflation(void)" (?DoInflation@nsMsgCompressIStream@@IAEIXZ)
nsMsgCompressIStream.obj : error LNK2019: unresolved external symbol _MOZ_Z_inflateInit2_ referenced in function "public: unsigned int __thiscall nsMsgCompressIStream::InitInputStream(class nsIInputStream *)" (?InitInputStream@nsMsgCompressIStream@@QAEIPAVnsIInputStream@@@Z)
nsMsgCompressIStream.obj : error LNK2019: unresolved external symbol _MOZ_Z_inflateEnd referenced in function "public: virtual unsigned int __stdcall nsMsgCompressIStream::CloseWithStatus(unsigned int)" (?CloseWithStatus@nsMsgCompressIStream@@UAGII@Z)
nsMsgCompressOStream.obj : error LNK2019: unresolved external symbol _MOZ_Z_deflateInit2_ referenced in function "public: unsigned int __thiscall nsMsgCompressOStream::InitOutputStream(class nsIOutputStream *)" (?InitOutputStream@nsMsgCompressOStream@@QAEIPAVnsIOutputStream@@@Z)
nsMsgCompressOStream.obj : error LNK2019: unresolved external symbol _MOZ_Z_deflateEnd referenced in function "public: virtual unsigned int __stdcall nsMsgCompressOStream::Close(void)" (?Close@nsMsgCompressOStream@@UAGIXZ)
nsMsgCompressOStream.obj : error LNK2019: unresolved external symbol _MOZ_Z_deflate referenced in function "public: virtual unsigned int __stdcall nsMsgCompressOStream::Write(char const *,unsigned int,unsigned int *)" (?Write@nsMsgCompressOStream@@UAGIPBDIPAI@Z)
TestMsgStripRE.exe : fatal error LNK1120: 20 unresolved externals
make[1]: Leaving directory `/c/Users/joachim/workspace/comm/obj-tb/mailnews/base/test'


Reproducible: Always
If in mailnews/base/test/Makefile.in you remove the $(XPCOM_LIBS) addition to LIBS on line 86, does that fix the issue?
Summary: Linker crashes when linking TestMsgStripRE.exe in mailnews/base/test → Link fails when linking TestMsgStripRE.exe in mailnews/base/test
Unfortunately the suggestion in comment #1 didn't help.
Depends on: 659205
Depends on: 702937
No longer depends on: 659205
Lets just have one bug for these similar issues.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
No longer depends on: 702937
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: