Closed
Bug 519021
Opened 16 years ago
Closed 16 years ago
nsMessenger.cpp isn't 64-bit compatible
Categories
(MailNews Core :: Build Config, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: Nomis101, Unassigned)
References
Details
(Keywords: 64bit)
Attachments
(1 file)
|
1.52 KB,
patch
|
standard8
:
review+
standard8
:
superreview+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_1; de-de) AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9
Build Identifier:
nsMessenger.cpp isn't 64bit compatible, if you try to build in x86_64, you will get:
from /temp/src/mailnews/base/src/nsMsgAccountManager.cpp:64:
../../../mozilla/dist/include/msgbase/msgCore.h:221:1: warning: this is the location of the previous definition
/temp/src/mailnews/base/src/nsMessenger.cpp: In member function ‘nsresult nsSaveMsgListener::InitializeDownload(nsIRequest*, PRUint32)’:
/temp/src/mailnews/base/src/nsMessenger.cpp:1645: error: ‘nsIAppleFileDecoder’ was not declared in this scope
/temp/src/mailnews/base/src/nsMessenger.cpp:1645: error: template argument 1 is invalid
/temp/src/mailnews/base/src/nsMessenger.cpp:1645: error: invalid type in declaration before ‘=’ token
/temp/src/mailnews/base/src/nsMessenger.cpp:1645: error: ‘NS_IAPPLEFILEDECODER_CONTRACTID’ was not declared in this scope
/temp/src/mailnews/base/src/nsMessenger.cpp:1648: error: base operand of ‘->’ is not a pointer
/temp/src/mailnews/base/src/nsMessenger.cpp:1650: error: invalid conversion from ‘int’ to ‘nsISupports*’
/temp/src/mailnews/base/src/nsMessenger.cpp:1650: error: initializing argument 1 of ‘nsQueryInterfaceWithError do_QueryInterface(nsISupports*, nsresult*)’
nsMsgAccount.cpp
But this is very easy to fix, you only have to change in nsMessenger.cpp all lines
> #ifdef XP_MACOSX
into
> #if defined(XP_MACOSX) && !defined(__LP64__)
After that it builds just fine in x86_64
Reproducible: Always
Mac OS X 10.6.1, gcc-4.2
Updated•16 years ago
|
Product: Thunderbird → MailNews Core
QA Contact: build-config → build-config
Updated•16 years ago
|
Attachment #405659 -
Flags: review?(bugzilla)
Updated•16 years ago
|
Attachment #405659 -
Flags: superreview+
Attachment #405659 -
Flags: review?(bugzilla)
Attachment #405659 -
Flags: review+
Comment 2•16 years ago
|
||
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•