Closed Bug 416950 Opened 17 years ago Closed 7 years ago

Mingw build error: undefined reference to `WinMain@16' in progressui_win.cpp

Categories

(Toolkit :: Application Update, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: d_king, Unassigned)

References

Details

Attachments

(1 file)

Build error as follows similar to Bug #411826

-DMOZILLA_CLIENT /cygdrive/e/mozilla/source/mozilla/toolkit/mozapps/update/src/u
pdater/progressui_win.cpp
<command line>:13:1: warning: "_WIN32_IE" redefined
<command line>:3:1: warning: this is the location of the previous definition
/usr/bin/perl /cygdrive/e/mozilla/source/mozilla/config/version_win.pl -QUIET 1
-DEPTH ../../../../.. -TOPSRCDIR /cygdrive/e/mozilla/source/mozilla -BITS 32 -OB
JDIR . -SRCDIR /cygdrive/e/mozilla/source/mozilla/toolkit/mozapps/update/src/upd
ater -DISPNAME Thunderbird -DEBUG 1 -BINARY updater.exe -RCINCLUDE /cygdrive/e/m
ozilla/source/mozilla/toolkit/mozapps/update/src/updater/updater.rc
Creating Resource file: module.res
/cygdrive/e/mozilla/source/mozilla/build/cygwin-wrapper windres -O coff --use-te
mp-file --include-dir /cygdrive/e/mozilla/source/mozilla/toolkit/mozapps/update/
src/updater -DUNICODE -D_UNICODE -D_WIN32_IE=0x300 -DOSTYPE=\"WINNT5.1\" -DOSARC
H=WINNT -DNS_NO_XPCOM --include-dir /cygdrive/e/mozilla/source/mozilla/toolkit/x
re --include-dir /cygdrive/e/mozilla/source/mozilla/toolkit/mozapps/update/src/u
pdater --include-dir . --include-dir ../../../../../dist/include/libmar --includ
e-dir ../../../../../dist/include/libbz2 --include-dir ../../../../../dist/inclu
de/string --include-dir ../../../../../dist/include --include-dir ../../../../..
/dist/include --include-dir ../../../../../dist/include/nspr --include-dir ../..
/../../../dist/sdk/include -o module.res /cygdrive/e/mozilla/source/obj/thunderb
ird/toolkit/mozapps/update/src/updater/module.rc
/cygdrive/e/mozilla/source/mozilla/build/cygwin-wrapper g++ -mno-cygwin -o updat
er.exe  -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Woverloade
d-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno
-long-long -pedantic -fno-strict-aliasing -mms-bitfields -pipe  -DDEBUG -D_DEBUG
 -DDEBUG_David -DTRACING -g  updater.o bspatch.o archivereader.o progressui_win.
o ./module.res -mconsole           -L../../../../../dist/bin -L../../../../../di
st/lib ../../../../../modules/libmar/src/libmar.a ../../../../../modules/libbz2/
src/libbz2.a  -lm  -lgdi32 -lwinmm -lwsock32 -lcomctl32 -lws2_32 -lshell32
e:/gnu/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../libmingw32.a(main.o):main.c:(
.text+0x104): undefined reference to `WinMain@16'
collect2: ld returned 1 exit status
make[8]: *** [updater.exe] Error 1
make[8]: Leaving directory `/cygdrive/e/mozilla/source/obj/thunderbird/toolkit/m
ozapps/update/src/updater'
Component: Data Collection/Metrics → Software Update
Product: Toolkit → Firefox
QA Contact: metrics → software.update
Attached patch v1.0 (deleted) — Splinter Review
Blocks: 421095
For what it's worth, I tried the patch v 1.0 in my MinGW build. 
It works as intended.

But on the other hand, is anyone building with MinGW interested in having the updater operational? Trying it now confirm working, but of course, no updates are found.
Product: Firefox → Toolkit
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: