aviary + win32 build error help

Discussion of third-party/unofficial Firefox/Thunderbird/SeaMonkey builds.
User avatar
bangbang023
Posts: 1726
Joined: July 7th, 2003, 12:23 am
Location: Brooklyn, NY
Contact:

aviary + win32 build error help

Post by bangbang023 »

I've been using my usual setup and am getting this error:

Code: Select all

LINK : warning LNK4044: unrecognized option '/L../../dist/lib/components'; ignor
ed
nsBrowserApp.obj : warning LNK4218: non-native module found; restarting link wit
h /LTCG
LINK : warning LNK4044: unrecognized option '/L../../dist/lib/components'; ignor
ed
   Creating library firefox.lib and object firefox.exp
gkwidget.lib(nsClipboard.obj) : error LNK2001: unresolved external symbol _CopyS
tgMedium@8
firefox.exe : fatal error LNK1120: 1 unresolved externals
make[4]: *** [firefox.exe] Error 96
make[4]: Leaving directory `/cygdrive/j/mozilla/mozilla/browser/app'
make[3]: *** [libs] Error 2
make[3]: Leaving directory `/cygdrive/j/mozilla/mozilla/browser'
make[2]: *** [tier_99] Error 2
make[2]: Leaving directory `/cygdrive/j/mozilla/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/cygdrive/j/mozilla/mozilla'
make: *** [build] Error 2

obviously this is at the very end of building. I have nuked my source completely. any ideas how to fix it?
nrthomas
Posts: 1988
Joined: February 9th, 2003, 3:25 pm

Post by nrthomas »

I also get the fatal link error when attempting to make a static build. Based on the code I pulled before my build and bonsai, the appropriate checkins are labelled:

2004-05-16 17:57 (AVIARY_1_0_20040515_BRANCH )
Port Thunderbird 0.6 changes to the 1.0 branch

2004-04-23 13:13 (THUNDERBIRD_0_6_BRANCH)
Landing thunderbird patch into the 0.6 branch including:
copy & paste of images (windows)
new junk mail filters
new mapi code to register as the default news client

That's looking for changes on mozilla/widget/src/windows/nsClipboard.h by mscott (<a href="http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=&branchtype=match&dir=&file=mozilla%2Fwidget%2Fsrc%2Fwindows%2FnsClipboard.h&filetype=match&who=scott&whotype=regexp&sortby=Date&hours=2&date=all&mindate=&maxdate=&cvsroot=%2Fcvsroot">link</a>), so it's related to the copy and paste of images. Since Thunderbird cannot be compiled staticly there was probably no incentive for mscott to work on that. Perhaps someone with the appropriate skills could look into it as the code is part of SeaMonkey, or perhaps a fix has already been made on the trunk.

I'm doing a clobber build in case it's related to previously doing a depend build.
User avatar
bangbang023
Posts: 1726
Joined: July 7th, 2003, 12:23 am
Location: Brooklyn, NY
Contact:

Post by bangbang023 »

so it's also thunderbird? Damn. Does not building a static build correct it?
User avatar
bangbang023
Posts: 1726
Joined: July 7th, 2003, 12:23 am
Location: Brooklyn, NY
Contact:

Post by bangbang023 »

nope nonstatic builds won't work either. Diff error

Code: Select all

jvmmgr.obj : warning LNK4218: non-native module found; restarting link with /LTC
G
   Creating library oji.lib and object oji.exp
nsJVMManager.obj : error LNK2001: unresolved external symbol "public: void __thi
scall nsRect::Deflate(int,int)" (?Deflate@nsRect@@QAEXHH@Z)
nsJVMManager.obj : error LNK2001: unresolved external symbol "public: void __thi
scall nsRect::Inflate(int,int)" (?Inflate@nsRect@@QAEXHH@Z)
nsJVMManager.obj : error LNK2001: unresolved external symbol "public: int __this
call nsRect::Contains(int,int)const " (?Contains@nsRect@@QBEHHH@Z)
oji.dll : fatal error LNK1120: 3 unresolved externals
make[4]: *** [oji.dll] Error 96
make[4]: Leaving directory `/cygdrive/j/mozilla/mozilla/modules/oji/src'
make[3]: *** [libs] Error 2
make[3]: Leaving directory `/cygdrive/j/mozilla/mozilla/modules/oji'
make[2]: *** [tier_9] Error 2
make[2]: Leaving directory `/cygdrive/j/mozilla/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/cygdrive/j/mozilla/mozilla'
make: *** [build] Error 2
nrthomas
Posts: 1988
Joined: February 9th, 2003, 3:25 pm

Post by nrthomas »

Uhh .. maybe you need make clean when switching to a shared build. There have been minimal <a href="http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=PhoenixTinderbox&branch=&branchtype=regexp&dir=mozilla%2Fmodules%2Foji&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=week&mindate=&maxdate=&cvsroot=%2Fcvsroot">changes</a> to that directory in recent times, and then only on the trunk.
User avatar
bangbang023
Posts: 1726
Joined: July 7th, 2003, 12:23 am
Location: Brooklyn, NY
Contact:

Post by bangbang023 »

hmm ok I'll try that.
User avatar
bangbang023
Posts: 1726
Joined: July 7th, 2003, 12:23 am
Location: Brooklyn, NY
Contact:

Post by bangbang023 »

thanks man. not using static, it compiled fine. I hope they fix it soon though.

edit: compiled fine but doesn't run correctly. Just shows the "please wait finishing installing extensions" popup and never does anything else. I used to be able to close that window and restart the fox to get it working, but not with this.
nrthomas
Posts: 1988
Joined: February 9th, 2003, 3:25 pm

Post by nrthomas »

Cool. Moox is on the case so he'll probably have it sussed soon.

For extension manager bugs - over to Ben ! Did you try a new profile ? bsmedberg is doing profile stuff at the moment.
Nick Thomas - Mozilla Release Engineer
User avatar
bangbang023
Posts: 1726
Joined: July 7th, 2003, 12:23 am
Location: Brooklyn, NY
Contact:

Post by bangbang023 »

yeah brand new profile and all, I tried. I noticed it tried creating a "primary" directory instead of "profiles\Default User" so that mus tbe the problem right now.
MozJF
Posts: 2007
Joined: July 14th, 2003, 10:07 am
Location: Near Atlantic Ocean

Post by MozJF »

Build process is broken...

Here is what I get while trying to build thunderbird with an up-to-date aviary branch. Dynamic build, of course ;o)


Code: Select all

nsAppShellService.cpp
c++ -o nsAppShellService.o -c -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -DHAVE_DEPENDENT_LIBS  -I../../../dist/include/xpcom -I../../../dist/include/string -I../../../dist/include/widget -I../../../dist/include/docshell -I../../../dist/include/webshell -I../../../dist/include/gfx -I../../../dist/include/layout -I../../../dist/include/content -I../../../dist/include/dom -I../../../dist/include/necko -I../../../dist/include/uriloader -I../../../dist/include/js -I../../../dist/include/locale -I../../../dist/include/webbrwsr -I../../../dist/include/pref -I../../../dist/include/xpconnect -I../../../dist/include/intl -I../../../dist/include/windowwatcher -I../../../dist/include/browser -I../../../dist/include/caps -I../../../dist/include/profile -I../../../dist/include/unicharutil -I../../../dist/include/uconv -I../../../dist/include/exthandler -I../../../dist/include/appshell -I../../../dist/include -I/home/fred/logs/thun/mozilla/dist/include/nspr     -I. -I/usr/X11R6/include   -fPIC  -I/usr/X11R6/include -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -pedantic -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -O  -I/usr/X11R6/include -DMOZILLA_CLIENT -include ../../../mozilla-config.h -Wp,-MD,.deps/nsAppShellService.pp nsAppShellService.cpp
In file included from nsAppShellService.cpp:59:
nsXULWindow.h:107: warning: `virtual nsresult nsXULWindow::NotifyObservers(const PRUnichar*, const PRUnichar*)' was hidden
nsWebShellWindow.h:142: warning:   by `nsresult nsWebShellWindow::NotifyObservers(const nsString&, const nsString&)'
nsAppShellService.cpp:306: error: no `nsresult nsAppShellService::CheckAndRemigrateDefunctProfile()' member function declared in class `nsAppShellService'
gmake[4]: *** [nsAppShellService.o] Erreur 1
gmake[4]: Leaving directory `/home/fred/logs/thun/mozilla/xpfe/appshell/src'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/home/fred/logs/thun/mozilla/xpfe/appshell'
gmake[2]: *** [tier_9] Error 2
gmake[2]: Leaving directory `/home/fred/logs/thun/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/fred/logs/thun/mozilla'
make: *** [build] Error 2"


Should be related to "Semi-single-profile for the aviary 1.0 branch." added into branch at 2004-05-17 18:26 by bsmedberg%covad.net. ?!

Sigh...
Last edited by MozJF on May 18th, 2004, 12:07 am, edited 1 time in total.
MozJF
User avatar
bangbang023
Posts: 1726
Joined: July 7th, 2003, 12:23 am
Location: Brooklyn, NY
Contact:

Post by bangbang023 »

As long as it's not just me, I'm ok. I hate when it's me doing someting wrong.
MozJF
Posts: 2007
Joined: July 14th, 2003, 10:07 am
Location: Near Atlantic Ocean

Post by MozJF »

Don't worry. It seems there working on profile management... Which kills a lot of things :[
MozJF
User avatar
bangbang023
Posts: 1726
Joined: July 7th, 2003, 12:23 am
Location: Brooklyn, NY
Contact:

Post by bangbang023 »

Yeah, I'd imagine it would. Hopefully it gets sorted out soon.
MozJF
Posts: 2007
Joined: July 14th, 2003, 10:07 am
Location: Near Atlantic Ocean

Post by MozJF »

Ben added a patch, but my thunderbird build process is still broken :

Code: Select all

c++ -o nsNativeAppSupportBase.o -c -DOSTYPE=\"Linux3.6\" -DOSARCH=\"Linux\" -I..                   /../xpfe/bootstrap -I../../dist/include/appcomps -I../../dist/include/appshell -                   I../../dist/include/content -I../../dist/include/docshell -I../../dist/include/d                   om -I../../dist/include/embed_base -I../../dist/include/embedcomponents -I../../                   dist/include/extensions -I../../dist/include/gfx -I../../dist/include/intl -I../                   ../dist/include/js -I../../dist/include/locale -I../../dist/include/necko -I../.                   ./dist/include/pref -I../../dist/include/profile -I../../dist/include/shellservi                   ce -I../../dist/include/string -I../../dist/include/uconv -I../../dist/include/u                   riloader -I../../dist/include/webbrwsr -I../../dist/include/widget -I../../dist/                   include/windowwatcher -I../../dist/include/winhooks -I../../dist/include/xulapp                    -I../../dist/include/xpcom -I../../dist/include/xpconnect -I../../dist/include/x                   pinstall -I../../dist/include/xremoteservice -I../../dist/include/xulapp -I../..                   /dist/include -I/home/fred/logs/thun/mozilla/dist/include/nspr     -I/usr/X11R6/                   include   -fPIC  -I/usr/X11R6/include -fno-rtti -fno-exceptions -Wall -Wconversi                   on -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-priv                   acy -Wno-non-virtual-dtor -Wno-long-long -fshort-wchar -pthread -pipe  -DNDEBUG                    -DTRIMMED -Os -freorder-blocks -gstabs+ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.                   0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -                   I/usr/include/freetype2 -I/usr/include/freetype2/freetype2 -I/usr/include/glib-2                   .0 -I/usr/lib/glib-2.0/include    -I/usr/X11R6/include -DMOZILLA_CLIENT -include                    ../../mozilla-config.h -Wp,-MD,.deps/nsNativeAppSupportBase.pp nsNativeAppSuppo                   rtBase.cpp
gmake[4]: *** No rule to make target « nsNativeAppSupportDefault.cpp », needed for « nsNativeAppSupportDefault.o ». Stopping.
gmake[4]: Leaving directory `/home/fred/logs/thun/mozilla/toolkit/xre'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/home/fred/logs/thun/mozilla/toolkit'
gmake[2]: *** [tier_50] Error 2
gmake[2]: Leaving directory `/home/fred/logs/thun/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/fred/logs/thun/mozilla'
make: *** [build] Error 2
[fred@localhost mozilla]
MozJF
User avatar
moox
Posts: 923
Joined: February 29th, 2004, 1:07 am
Location: Wish I were in Alaska...

Post by moox »

Cool. Moox is on the case so he'll probably have it sussed soon.

I plugged away last night for a few hours and did not resolve squat. Anyone else get anywhere with this?
Post Reply