Closed Bug 1059626 Opened 10 years ago Closed 10 years ago

Bustage: > 0:34.61 MSVCRT.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup

Categories

(Core Graveyard :: Widget: WinRT, defect)

x86_64
Windows 8.1
defect
Not set
blocker

Tracking

(Not tracked)

RESOLVED FIXED
mozilla36

People

(Reporter: masayuki, Assigned: jimm)

References

Details

(Keywords: regression)

Attachments

(1 file, 1 obsolete file)

> 0:34.61 Executing: link -NOLOGO -OUT:CommandExecuteHandler.exe -PDB:CommandExecuteHandler.pdb -SUBSYSTEM:CONSOLE,5.01 -LARGEADDRESSAWARE -NXCOMPAT -DYNAMICBASE -SAFESEH -DEBUG -DEBUGTYPE:CV @a:\mozilla\mc-c\fx-dbg\browser\metro\shell\commandexecutehandler\tmp1ro9an.list module.res kernel32.lib user32.lib gdi32.lib winmm.lib wsock32.lib advapi32.lib secur32.lib netapi32.lib kernel32.lib user32.lib ole32.lib shlwapi.lib propsys.lib advapi32.lib wininet.lib > 0:34.61 a:\mozilla\mc-c\fx-dbg\browser\metro\shell\commandexecutehandler\tmp1ro9an.list: > 0:34.61 CEHHelper.obj > 0:34.61 CommandExecuteHandler.obj > 0:34.61 > 0:34.61 MSVCRT.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup > 0:34.61 > 0:34.61 CommandExecuteHandler.exe : fatal error LNK1120: 1 unresolved externals > 0:34.61 > 0:34.62 a:/mozilla/mc-c/src/config/rules.mk:676: recipe for target 'CommandExecuteHandler.exe' failed > 0:34.62 mozmake.EXE[5]: *** [CommandExecuteHandler.exe] Error 1120 > 0:34.63 a:/mozilla/mc-c/src/config/recurse.mk:85: recipe for target 'browser/metro/shell/commandexecutehandler/target' failed > 0:34.63 mozmake.EXE[4]: *** [browser/metro/shell/commandexecutehandler/target] Error 2 > 0:34.63 mozmake.EXE[4]: *** Waiting for unfinished jobs.... I can reproduce this with current m-c. I couldn't reproduce this yesterday's m-c.
FYI: If --enable-metro is not specified, this bug isn't reproduced.
I'll take a look, I haven't built w/metro code in a couple weeks. :/
maybe this is regression of bug 1001332?
(In reply to Jim Mathies [:jimm] from comment #2) > I'll take a look, I haven't built w/metro code in a couple weeks. :/ Do you need help for this bug? We realy need to synchronize bug 977003 to project/metro branch.
Blocks: 1042108
(In reply to Maksim Lebedev from comment #4) > (In reply to Jim Mathies [:jimm] from comment #2) > > I'll take a look, I haven't built w/metro code in a couple weeks. :/ > Do you need help for this bug? We realy need to synchronize bug 977003 to > project/metro branch. waiting on a resolution to bug 1071568.
(In reply to Masayuki Nakano (:masayuki) (Mozilla Japan) from comment #0) > > 0:34.61 Executing: link -NOLOGO -OUT:CommandExecuteHandler.exe -SUBSYSTEM:CONSOLE,5.01 > > 0:34.61 MSVCRT.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main Some investigation: Maybe the issue is in wrong -SUBSYSTEM:CONSOLE,5.01 Maybe the correct value is -SUBSYSTEM:WINDOWS,5.01 Because CommandExecuteHandler.cpp contains "int APIENTRY wWinMain" function
Some investigation: Maybe we should #define flag MOZ_WINCONSOLE as 0
Attached patch fix (obsolete) (deleted) — Splinter Review
stole this from plugin-container.exe.
Assignee: nobody → jmathies
Attachment #8507423 - Flags: review?(alessarik)
Comment on attachment 8507423 [details] [diff] [review] fix I might have something cleaner.
Attachment #8507423 - Flags: review?(alessarik)
Attached patch fix (deleted) — Splinter Review
Attachment #8507423 - Attachment is obsolete: true
Comment on attachment 8507507 [details] [diff] [review] fix can you check this to be sure it addresses the problem? I had to do a mach build to get it to kick in.
Attachment #8507507 - Flags: review?(alessarik)
Comment on attachment 8507507 [details] [diff] [review] fix (In reply to Jim Mathies [:jimm] from comment #11) > can you check this to be sure it addresses the problem? I had to do a mach > build to get it to kick in. Yes. Patch fixed issue. I got file CommandExecureHandler.exe
Attachment #8507507 - Flags: review?(alessarik) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: