Build Thunderbird(2.0.0.22) failed using mozilla-build and msvc8 (visual studio 2005)

Hi,

I want fix a bug in Thunderbird, and I have download the source code tarball
of thunderbird 2.0.0.22 to modified the source code files, but I can't build
it with MSVC8.

The following information is the build tools output:

g:/Temp/Test/mozilla/xpcom/base/nsStackFrameWin.cpp(330) : error C2664:
'BOOL (H
ANDLE,PENUMLOADED_MODULES_CALLBACK,PVOID)' : cannot convert parameter 2 from
'ov
erloaded-function' to 'PENUMLOADED_MODULES_CALLBACK'
        None of the functions with this name in scope match the target type
g:/Temp/Test/mozilla/xpcom/base/nsStackFrameWin.cpp(380) : error C2664:
'BOOL (H
ANDLE,PENUMLOADED_MODULES_CALLBACK64,PVOID)' : cannot convert parameter 2
from '
overloaded-function' to 'PENUMLOADED_MODULES_CALLBACK64'
        None of the functions with this name in scope match the target type
make[3]: *** [nsStackFrameWin.obj] Error 2
make[3]: Leaving directory `/g/Temp/Test/mozilla/xpcom/base'
make[2]: *** [libs] Error 2
make[2]: Leaving directory `/g/Temp/Test/mozilla/xpcom'
make[1]: *** [tier_2] Error 2
make[1]: Leaving directory `/g/Temp/Test/mozilla'
make: *** [default] Error 2

How can I solve these problems?

My system information:
"Mozilla tools directory: C:\mozilla-build\"
Windows SDK directory: C:\Program Files\Microsoft SDKs\Windows\v6.0A\
Windows SDK version: 6.0A
Setting environment for using Microsoft Visual Studio 2005 x86 tools.
Mozilla build environment: MSVC version 8.
Microsoft Windows XP [Ver 5.1.2600.5512] Service Pack 3
Microsoft Visual Studio 2005 8.0.50727.42

Samuel
Zeeis Team
http://www.zeeis.com/
0
Samuel
7/31/2009 9:42:04 AM
mozilla.dev.apps.thunderbird 3464 articles. 0 followers. Post Follow

2 Replies
814 Views

Similar Articles

[PageSpeed] 13
Get it on Google Play
Get it on Apple App Store

On 31/07/2009 10:42, Samuel wrote:
> Hi,
>
> I want fix a bug in Thunderbird, and I have download the source code tarball
> of thunderbird 2.0.0.22 to modified the source code files, but I can't build
> it with MSVC8.
....
> How can I solve these problems?

As per https://developer.mozilla.org/en/Windows_Build_Prerequisites 
MSVC8 isn't a supported build environment for the 1.8.1 branch (which is 
what Thunderbird 2.0.0.x is build on).

So you'll have to downgrade your MSVC version if you can.

Have you considered trying to fix the bug on the Thunderbird 3 builds 
first? These are the up to date builds that we are working on and we 
always require a fix on them first before getting something into the 
security and stability releases (unless it is already fixed or doesn't 
appear on the TB 3 builds).

Standard8
0
Mark
7/31/2009 10:00:20 AM
Samuel wrote:
> Hi,
> 
> I want fix a bug in Thunderbird, and I have download the source code tarball
> of thunderbird 2.0.0.22 to modified the source code files, but I can't build
> it with MSVC8.
> 
> The following information is the build tools output:
> 
> g:/Temp/Test/mozilla/xpcom/base/nsStackFrameWin.cpp(330) : error C2664:
> 'BOOL (H
> ANDLE,PENUMLOADED_MODULES_CALLBACK,PVOID)' : cannot convert parameter 2 from
> 'ov
> erloaded-function' to 'PENUMLOADED_MODULES_CALLBACK'
>         None of the functions with this name in scope match the target type
> g:/Temp/Test/mozilla/xpcom/base/nsStackFrameWin.cpp(380) : error C2664:
> 'BOOL (H
> ANDLE,PENUMLOADED_MODULES_CALLBACK64,PVOID)' : cannot convert parameter 2
> from '
> overloaded-function' to 'PENUMLOADED_MODULES_CALLBACK64'
>         None of the functions with this name in scope match the target type
> make[3]: *** [nsStackFrameWin.obj] Error 2
> make[3]: Leaving directory `/g/Temp/Test/mozilla/xpcom/base'
> make[2]: *** [libs] Error 2
> make[2]: Leaving directory `/g/Temp/Test/mozilla/xpcom'
> make[1]: *** [tier_2] Error 2
> make[1]: Leaving directory `/g/Temp/Test/mozilla'
> make: *** [default] Error 2
> 
> How can I solve these problems?
> 
> My system information:
> "Mozilla tools directory: C:\mozilla-build\"
> Windows SDK directory: C:\Program Files\Microsoft SDKs\Windows\v6.0A\
> Windows SDK version: 6.0A
> Setting environment for using Microsoft Visual Studio 2005 x86 tools.
> Mozilla build environment: MSVC version 8.
> Microsoft Windows XP [Ver 5.1.2600.5512] Service Pack 3
> Microsoft Visual Studio 2005 8.0.50727.42
> 
> Samuel
> Zeeis Team
> http://www.zeeis.com/
Problem is that you have different windows sdk, but it is solvable.
I've successfully compiled tb2 with win6.0 sdk and with msvc8.

you have to add an explicit type conversion on that line
line 330:       enumRes = _EnumerateLoadedModules(aProcess, 
(PENUMLOADED_MODULES_CALLBACK)callbackEspecial, (PVOID)&aAddr);

line 380:         enumRes = _EnumerateLoadedModules64(aProcess, 
(PENUMLOADED_MODULES_CALLBACK64)callbackEspecial64, (PVOID)&aAddr);


you will also need to modify you have to disable some typedefs:
netwerk\system\win32\nsNotifyAddrListener.cpp:

#if 0
typedef enum {
     IpPrefixOriginOther = 0,
     IpPrefixOriginManual,
     IpPrefixOriginWellKnown,
     IpPrefixOriginDhcp,
     IpPrefixOriginRouterAdvertisement
} IP_PREFIX_ORIGIN;
#endif
typedef NL_PREFIX_ORIGIN IP_PREFIX_ORIGIN;
#if 0
typedef enum {
     IpSuffixOriginOther = 0,
     IpSuffixOriginManual,
     IpSuffixOriginWellKnown,
     IpSuffixOriginDhcp,
     IpSuffixOriginLinkLayerAddress,
     IpSuffixOriginRandom
} IP_SUFFIX_ORIGIN;
#endif

typedef NL_SUFFIX_ORIGIN IP_SUFFIX_ORIGIN;

#if 0
typedef enum {
     IpDadStateInvalid    = 0,
     IpDadStateTentative,
     IpDadStateDuplicate,
     IpDadStateDeprecated,
     IpDadStatePreferred
} IP_DAD_STATE;
#endif


#if 0
typedef enum {
     IfOperStatusUp = 1,
     IfOperStatusDown,
     IfOperStatusTesting,
     IfOperStatusUnknown,
     IfOperStatusDormant,
     IfOperStatusNotPresent,
     IfOperStatusLowerLayerDown
} IF_OPER_STATUS;
#endif


you will encountered with crash during build in xpidl because it is 
linked without microsoft manifest.

When I built it I also changed WINVER in configure.* to 
AC_DEFINE_UNQUOTED(WINVER,0x500).

PM-
0
Pavol
7/31/2009 11:30:06 AM
Reply:

Similar Artilces:

Firefox & Thunderbird 1.5.0.12rc2, Firefox 2.0.0.4rc2 builds available
Release candidate builds (rc2) for Firefox/Thunderbird 1.5.0.12 and Firefox 2.0.0.4 are now available here: http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/1.5.0.12-candidates/rc2/ http://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/1.5.0.12-candidates/rc2/ http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2.0.0.4-candidates/rc2/ L10n builds for Firefox & Thunderbird 2.0.0.4/1.5.0.12 and en-US Thunderbird 1.5.0.12 builds are in progress but will be available later today. Last week we discovered a problem with RC1 builds that forced us to do a re-spin (...

Firefox & Thunderbird 1.5.0.12rc1, Firefox 2.0.0.4rc1 builds available
Release candidate builds (rc1) for Firefox/Thunderbird 1.5.0.12 and Firefox 2.0.0.4 are now available here: http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/1.5.0.12-candidates/rc1/ http://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/1.5.0.12-candidates/rc1/ http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2.0.0.4-candidates/rc1/ Assuming our preliminary testing goes well, we plan on pushing these RC1 builds to our "beta" users next Tuesday 5/8. We will use the time between this "beta" push and final release (Tuesday 5/22) to gather commun...

Thunderbird 2.0.0.5rc1 Builds Available
Release candidate builds (rc1) for Thunderbird 2.0.0.5 are now available here: http://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/2.0.0.5-candidates/rc1/ We are looking at releasing Thunderbird 2.0.0.5 as soon as tomorrow, Thursday (7/19) in the afternoon. There will not be a beta period for this release of Thunderbird. As always we appreciate your help testing these builds and sending us feedback. Several new forums for submitting and discussing feedback around release candidates and alphas have been created. You can read the feedback and participate in one of...

Thunderbird 2.0 RC1 = Thunderbird 2.0 final?
Hi, I just wanted to ask if there is any difference between Thunderbird 2.0 RC1 and Thunderbird 2.0 final or is it all the same? I just ask because I need Portable Thunderbird 2.0 and there is only a Portable Thunderbird 2.0 RC1 available. Thanks in advance. Have a nice weekend! On 4/21/2007 6:06 AM, Tbird Leader Spiderman radioed the tower to announce : > Hi, > I just wanted to ask if there is any difference between Thunderbird 2.0 > RC1 and Thunderbird 2.0 final or is it all the same? I just ask because > I need Portable Thunderbird 2.0 and there is only a Portable Th...

Undefined Reference while building Thunderbird 2.0.0.24
Hi all, I'm trying to build Thunderbird 2.0.0.24 on latest Debian Lenny, and I get multiple errors at link with Sqlite3: e.g: mozStorageAsyncIO.cpp:(.text+0x8d9): undefined reference to `sqlite3ApiExit' Does anyone have any idea about fixing this error ? Regards, Thibault Cassan ...

Thunderbird 2.0.0.22 e-mailing photo-attachments from Olympus Master 2.0
Name: Dietmar Lochbihler Email: ddotmlochbihleratsympaticodotca Product: Thunderbird Summary: Thunderbird 2.0.0.22 e-mailing photo-attachments from Olympus Master 2.0 Comments: after updating to the new Thunderbird version 2.0.0.22 I am now unable to attach photos from the Olympus photo program Olympus Master 2.0 to an e-mail. the previous version had no problem with these requests. please advise Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729) From URL: http://hendrix.mozilla.org/ Note to ...

Firefox 2.0.0.4 and Thunderbird 2.0.0.4
Name: Steven C. Stacy Email: bigmosteve_57atwildbluedotnet Product: Firefox Summary: Firefox 2.0.0.4 and Thunderbird 2.0.0.4 Comments: I have been a programmer for 30 years. I just upgraded to the versions on Firefox and Thunderbird listed in the subject line. I think these versions are very buggy. Firefox's password manager doesn't work and even with the link "http://hendrix.mozilla.org" work around link to "force autocomplete=off doesn't do the trick. Thunderbird can get my e-mail but keeps asking for one on the accounts password. When I ca...

Thunderbird 2.0.0.18 for Solaris build was very diffictult to find
Name: Ignatios Souvatzis Email: support5atcsdotuni-bonndotde Product: Thunderbird Summary: Thunderbird 2.0.0.18 for Solaris build was very diffictult to find Comments: We found it finally from a search engine, but only on the German (and I think, on the Russian and the Spanish) Mozilla-Europe "Release Notes" page: http://www.mozilla-europe.org/de/products/thunderbird/2.0.0.18/releasenotes/ > http://www.mozilla-europe.org/ru/products/thunderbird/2.0.0.18/releasenotes/ > http://www.mozilla-europe.org/sp/products/thunderbird/2.0.0.18/releasenotes/ not from ...

Firefox 2.0.0.19 beta (build 2) and 3.0.5 beta (build 1) now available
Hello, Candidate builds of Firefox 2.0.0.19 and 3.0.5 are now available for testing. You can get the builds at: ftp://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2.0.0.18-candid .... If you have previously downloaded a beta version of either Firefox 2.0 or 3.0 or have manually set your copy to be using the "beta" release channel for updates, you can update yourself to Firefox 2.0.0.19 / 3.0.5 by selecting "Help > Check for Updates". The status for Firefox 2.0.0.19 / 3.0.5 can be found here: http://wiki.mozilla.org/Releases/Firefox_2.0.0.19 ...

Re: Building Thunderbird 2.0.21 Failed
Forwarding: <http://forums.mozillazine.org/viewtopic.php?f=42&t=1253125> Anybody know what the problem is? Phil -- Philip Chee <philip@aleytys.pc.my>, <philip.chee@gmail.com> http://flashblock.mozdev.org/ http://xsidebar.mozdev.org Guard us from the she-wolf and the wolf, and guard us from the thief, oh Night, and so be good for us to pass. [ ]I haven't lost my mind; it's backed up on tape somewhere! * TagZilla 0.066.6 On 5/20/09 11:55 AM, Philip Chee wrote: > Forwarding: > > <http://forums.mozillazine.org/viewtopic.php?f=42&a...

Thunderbird 2.0.0.18 beta (build 1) now available
Hello, Candidate builds of Thunderbird 2.0.0.18 are now available for testing. You can get the builds at: ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/2.0.0.18-candidates/build1/ If you have previously downloaded a beta version of Thunderbird 2.0 or have manually set your copy to be using the "beta" release channel for updates, you can update yourself to Thunderbird 2.0.0.18 by selecting "Help > Check for Updates". The status for Firefox 2.0.0.18 can be found here: https://wiki.mozilla.org/Releases/Thunderbird_3.0.4 If you see any iss...

Thunderbird 2.0.0.18 beta (build 1) now available
Hello, Candidate builds of Thunderbird 2.0.0.18 are now available for testing. You can get the builds at: ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/2.0.0.18-candidates/build1/ If you have previously downloaded a beta version of Thunderbird 2.0 or have manually set your copy to be using the "beta" release channel for updates, you can update yourself to Thunderbird 2.0.0.18 by selecting "Help > Check for Updates". The status for Firefox 2.0.0.18 can be found here: https://wiki.mozilla.org/Releases/Thunderbird_3.0.4 If you see any iss...

Thunderbird 2.0.0.4 and 2.0.0.5 upgrade mess
Name: Michael Gabel Email: mgabelatgmudotedu Product: Thunderbird Summary: Thunderbird 2.0.0.4 and 2.0.0.5 upgrade mess Comments: Good grief. I keep telling people to use Thunderbird but then I am still having these update problems: partial up-dates, hanging trying to do it, failures of updates - but you all know this. Good grief. Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.5) Gecko/20070713 Firefox/2.0.0.5 ...

Thunderbird 2.0.0.22
Name: C Email: Candacecansleratbellsouthdotnet Product: Firefox Summary: Thunderbird 2.0.0.22 Comments: When I download this update I am unable to send email with attachments. Please advise is there a fix? Browser Details: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; .NET CLR 1.1.4322) From URL: http://hendrix.mozilla.org/ Note to readers: Hendrix gives no expectation of a response to this feedback but if you wish to provide one you must BCC (not CC) the sender for them to see it. ...

Firefox 2.0.0.13, 3.0b5 - Sunbird 0.8
Name: Paul Pazdera Email: pazderaattelusdotnet Product: Mozilla Suite Summary: Firefox 2.0.0.13, 3.0b5 - Sunbird 0.8 - Thunderbird 2.0.0.12 Comments: allow this option to show dates - thanks! Date representation to International Standard ISO 8601 YYYY.MM.DD or YYYMMDD e.g.: 2008.04.16 or 20080416 http://en.wikipedia.org/wiki/ISO_8601 It isn't perhaps one of the most widely adopted of international standards, but for anyone working with date formats that need to be quickly parsed and sorted by computer, it's the best. Browser Details: Mozilla/5.0...

Web resources about - Build Thunderbird(2.0.0.22) failed using mozilla-build and msvc8 (visual studio 2005) - mozilla.dev.apps.thunderbird

Resources last updated: 11/24/2015 3:10:42 AM