Firefox build instructions

Discussion about official Mozilla Firefox builds
User avatar
kindofabuzz
Posts: 3859
Joined: July 20th, 2003, 1:13 am
Location: Memphis, TN
Contact:

Post by kindofabuzz »

CrazyFred wrote:Checkout is all you need to update your source tree. The following all do the same thing

Code: Select all

# one after the other, only continue if first doesn't fail
make -f client.mk checkout && make -f client.mk build 

# let make handle two task sequentually
make -f client.mk checkout build   

# use the default options in client.mk
make -f client.mk   


then make -f client.mk build_all?
Collapse unwanted MozillaZine forum sections ** Give a man a fish and he will eat for a day; teach a man to fish and he will eat for a lifetime; give a man religion and he will die praying for a fish.
nrthomas
Posts: 1988
Joined: February 9th, 2003, 3:25 pm

Post by nrthomas »

From client.mk (starting line 490):

Code: Select all

# Windows equivalents
pull_all: checkout
build_all: build

So they are equivalent.
User avatar
Waldo
Posts: 596
Joined: July 29th, 2003, 8:21 am
Location: Cambridge, MA
Contact:

Post by Waldo »

CrazyFred wrote:I thought it was <code> patch -p0 < patchfile</code>, where you are in the directory above mozilla. Not sure though - I haven't done this much.

Info - part of an excellent mozilla.org *nix cheat sheet.
User avatar
bangbang023
Posts: 1726
Joined: July 7th, 2003, 12:23 am
Location: Brooklyn, NY
Contact:

Post by bangbang023 »

where do I put in the vendor comment? I have completely forgotten.
Elen
Posts: 395
Joined: February 13th, 2004, 5:53 am

Post by Elen »

pref("general.useragent.vendorComment", "insert vendor comment"); in mozilla\browser\app\profile\firefox.js

And thanks CrazyFred for taking time to answer.
User avatar
bangbang023
Posts: 1726
Joined: July 7th, 2003, 12:23 am
Location: Brooklyn, NY
Contact:

Post by bangbang023 »

thanks crazyfred lol....i figured it out after i asked
maxheadroom
Posts: 63
Joined: September 4th, 2003, 5:36 am
Location: Dublin, IE

Post by maxheadroom »

Elen wrote:pref("general.useragent.vendorComment", "insert vendor comment"); in mozilla\browser\app\profile\firefox.js


And, it can't be more than 47 characters IIRC - I'll check when I get home.
User avatar
bangbang023
Posts: 1726
Joined: July 7th, 2003, 12:23 am
Location: Brooklyn, NY
Contact:

Post by bangbang023 »

getting this error today:

Code: Select all

c:/mozilla/mozilla/security/manager/boot/src/nsSecurityWarningDialogs.cpp: In
   member function `nsresult
   nsSecurityWarningDialogs::ConfirmDialog(nsIInterfaceRequestor*, const char*,

   const PRUnichar*, const PRUnichar*, PRBool*)':
c:/mozilla/mozilla/security/manager/boot/src/nsSecurityWarningDialogs.cpp:261: e
rror: no
   matching function for call to `nsXPIDLString::BeginWriting()'
../../../../dist/include/string/nsTSubstring.h:103: error: candidates are:
   nsWritingIterator<PRUnichar>&
   nsSubstring::BeginWriting(nsWritingIterator<PRUnichar>&)
../../../../dist/include/string/nsTSubstring.h:121: error:
   PRUnichar*& nsSubstring::BeginWriting(PRUnichar*&)
make[5]: *** [nsSecurityWarningDialogs.o] Error 1
make[5]: Leaving directory `/cygdrive/c/mozilla/mozilla/security/manager/boot/sr
c'
make[4]: *** [libs] Error 2
make[4]: Leaving directory `/cygdrive/c/mozilla/mozilla/security/manager/boot'
make[3]: *** [libs] Error 2
make[3]: Leaving directory `/cygdrive/c/mozilla/mozilla/security/manager'
make[2]: *** [tier_40] Error 2
make[2]: Leaving directory `/cygdrive/c/mozilla/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/cygdrive/c/mozilla/mozilla'
make: *** [build] Error 2
Press any key to continue . . .
mmoy
Posts: 5030
Joined: February 17th, 2004, 9:05 pm
Location: New Hampshire
Contact:

Post by mmoy »

Looks like an overloading problem or a missing function signature. I'd try pulling again. It may be that you got one piece of a checkin.
Dell E521 X2 5600+ MacBookPro 17'' 2.5 Ghz Penryn Dell M1330 2.0 Ghz Merom 4 GB Vista x64 Compaq r3000z AMD 64 3200+ (Win 32/64) PowerMac G5 1.8 Ghz MMOY-1.5 (OSX 10) Inspiron 8500, 4100, 4000, Dimension 2300 MacBook Pro 2.2 Ghz HP E6600 HP X2 4400+
User avatar
bangbang023
Posts: 1726
Joined: July 7th, 2003, 12:23 am
Location: Brooklyn, NY
Contact:

Post by bangbang023 »

I have tried pulling 3 times already. I think it's another problem with building with GCC.
User avatar
Goldzilla
Posts: 2579
Joined: November 22nd, 2002, 6:52 pm

Post by Goldzilla »

Maybe you could try the tarball.
Dell Inspiron 8500 P4 M 2.0 Ghz 1 GB 40 GB XP Pro NVidia 64 MB WUXGA CME, CH, TBE , EZS Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040325 Firefox/0.8.0+ (mmoy-O2-GL7-SSE2-crc32-Zp16-quek013)
User avatar
bangbang023
Posts: 1726
Joined: July 7th, 2003, 12:23 am
Location: Brooklyn, NY
Contact:

Post by bangbang023 »

guess I'll try it now, cause now I got this error:

Code: Select all

ENT /cygdrive/c/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:62:32: nsIProfileIntern
al.h: No such file or directory
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp: In constructor `
   Mutex::Mutex(const char*)':
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:207: warning: initializ
ation
    of negative value `-1' to `DWORD'
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:207: warning: argument

   of negative value `-1' to `long unsigned int'
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp: In member function `
   Mutex::~Mutex()':
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:218: warning: unused
   variable `BOOL rc'
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp: In member function `
   void Mutex::Unlock()':
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:246: warning: assignmen
t
    of negative value `-1' to `DWORD'
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:246: warning: argument

   of negative value `-1' to `long unsigned int'
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp: In member function `
   void nsSplashScreenWin::LoadBitmapA()':
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:481: warning: unused
   variable `BOOL ok'
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp: In member function `
   void nsNativeAppSupportWin::CheckConsole()':
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:663: warning: unused
   variable `int rv'
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp: In static member
   function `static void nsNativeAppSupportWin::ParseDDEArg(HSZ__*, int,
   nsCString&)':
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:1678: warning: passing

   NULL used for non-pointer argument passing 4 of `DWORD DdeQueryStringA(long
   unsigned int, HSZ__*, CHAR*, long unsigned int, int)'
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:1678: warning: argument

    to non-pointer type `long unsigned int' from NULL
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp: In function `static
   nsresult nsNativeAppSupportWin::GetCmdLineArgs(BYTE*, nsICmdLineService**)':
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:1890: warning: `int
   between' might be used uninitialized in this function
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:1890: warning: `int
   quoted' might be used uninitialized in this function
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:1890: warning: `int
   bSlashCount' might be used uninitialized in this function
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:1891: warning: `int
   argc' might be used uninitialized in this function
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:1892: warning: `char*p
   ' might be used uninitialized in this function
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp: In member function `
   virtual nsresult nsNativeAppSupportWin::EnsureProfile(nsICmdLineService*)':
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:2088: error: `
   nsIProfileInternal' undeclared (first use this function)
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:2088: error: (Each
   undeclared identifier is reported only once for each function it appears
   in.)
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:2088: error: template
   argument 1 is invalid
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:2088: error: `
   NS_PROFILE_CONTRACTID' undeclared (first use this function)
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:2088: error: ISO C++
   forbids declaration of `profileMgr' with no type
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:2099: error: base
   operand of `->' is not a pointer
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:2105: error: base
   operand of `->' is not a pointer
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp: In static member
   function `static void nsNativeAppSupportWin::SetupSysTrayIcon()':
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:2347: warning: passing

   NULL used for non-pointer argument passing 6 of `void*
   LoadImageA(HINSTANCE__*, const CHAR*, unsigned int, int, int, unsigned int)'
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:2347: warning: argument

    to non-pointer type `unsigned int' from NULL
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:2432: warning: passing

   NULL used for non-pointer argument passing 3 of `BOOL AppendMenuA(HMENU__*,
   unsigned int, unsigned int, const CHAR*)'
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:2432: warning: argument

    to non-pointer type `unsigned int' from NULL
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:2442: warning: passing

   NULL used for non-pointer argument passing 3 of `BOOL AppendMenuW(HMENU__*,
   unsigned int, unsigned int, const WCHAR*)'
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:2442: warning: argument

    to non-pointer type `unsigned int' from NULL
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp: In member function `
   virtual nsresult nsNativeAppSupportWin::OnLastWindowClosing()':
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:2589: error: `
   nsIProfile' undeclared (first use this function)
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:2589: error: template
   argument 1 is invalid
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:2589: error: ISO C++
   forbids declaration of `profileMgr' with no type
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:2592: error: base
   operand of `->' is not a pointer
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:2658: warning: unused
   variable `DWORD rc'
../../dist/include/xpcom/nsCOMPtr.h: At top level:
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:1338: warning: `
   nsCString uTypeDesc(unsigned int)' defined but not used
c:/mozilla/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp:1341: warning: `
   nsCString hszValue(long unsigned int, HSZ__*)' defined but not used
make[4]: *** [nsNativeAppSupportWin.o] Error 1
make[4]: Leaving directory `/cygdrive/c/mozilla/mozilla/toolkit/xre'
make[3]: *** [libs] Error 2
make[3]: Leaving directory `/cygdrive/c/mozilla/mozilla/toolkit'
make[2]: *** [tier_50] Error 2
make[2]: Leaving directory `/cygdrive/c/mozilla/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/cygdrive/c/mozilla/mozilla'
make: *** [build] Error 2
User avatar
bangbang023
Posts: 1726
Joined: July 7th, 2003, 12:23 am
Location: Brooklyn, NY
Contact:

Post by bangbang023 »

traball doesn't work either.....looks as though gcc building isj ust broken once again,
mmoy
Posts: 5030
Joined: February 17th, 2004, 9:05 pm
Location: New Hampshire
Contact:

Post by mmoy »

New problem of the day. I'm trying a plain make -f client.mk now and will see how it goes.

C:\Mozilla\mozilla>make -f client.mk build
Adding client.mk options from /cygdrive/c/Mozilla/mozilla/.mozconfig:
MOZ_PHOENIX=1
MOZ_PHOENIX=1
make
make[1]: Entering directory `/cygdrive/c/Mozilla/mozilla'
makefile:27: config/autoconf.mk: No such file or directory
/cygdrive/c/Mozilla/mozilla/config/config.mk:38: config/autoconf.mk: No such fil
e or directory
make[1]: *** No rule to make target `config/autoconf.mk'. Stop.
make[1]: Leaving directory `/cygdrive/c/Mozilla/mozilla'
make: *** [build] Error 2
Dell E521 X2 5600+ MacBookPro 17'' 2.5 Ghz Penryn Dell M1330 2.0 Ghz Merom 4 GB Vista x64 Compaq r3000z AMD 64 3200+ (Win 32/64) PowerMac G5 1.8 Ghz MMOY-1.5 (OSX 10) Inspiron 8500, 4100, 4000, Dimension 2300 MacBook Pro 2.2 Ghz HP E6600 HP X2 4400+
mmoy
Posts: 5030
Joined: February 17th, 2004, 9:05 pm
Location: New Hampshire
Contact:

Post by mmoy »

Well that didn't work. Blowing everything away and trying fro scratch.
Dell E521 X2 5600+ MacBookPro 17'' 2.5 Ghz Penryn Dell M1330 2.0 Ghz Merom 4 GB Vista x64 Compaq r3000z AMD 64 3200+ (Win 32/64) PowerMac G5 1.8 Ghz MMOY-1.5 (OSX 10) Inspiron 8500, 4100, 4000, Dimension 2300 MacBook Pro 2.2 Ghz HP E6600 HP X2 4400+
Post Reply