Errors while building Firefox 1.0.7 version

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Errors while building Firefox 1.0.7 version

Pratham-2
Hi,

I have tried building Firefox 1.0.7 on RH 9 machine. I have installed
all the
required tools mentioned as "pre-requisite" for building mozilla code
base.

Following is my .mozconfig file

-------------------- .mozconfi     ----------------
. /home/browser/downloads/mozilla/browser/config/mozconfig

export MOZ_PHOENIX=1
mk_add_options MOZ_PHOENIX=1
mk_add_options MOZ_OBJDIR=/home/browser/downloads/build_0103
mk_add_options MOZ_CO_PROJECT=browser

ac_add_options --enable-default-toolkit=gtk
ac_add_options --disable-xft
ac_add_options --disable-freetype2

# disable XUL support to reduce codesize
ac_add_options --disable-xul

# enable minimal profile support
ac_add_options --disable-profilesharing
ac_add_options --disable-profilelocking
ac_add_options --enable-single-profile

# disable features and skip various build steps
ac_add_options --disable-accessibility
ac_add_options --disable-composer
ac_add_options --enable-plaintext-editor-only
ac_add_options --disable-mailnews
ac_add_options --disable-ldap
ac_add_options --disable-postscript
ac_add_options --disable-mathml
ac_add_options --disable-jsd
ac_add_options --disable-jsloader
ac_add_options --disable-installer
ac_add_options --disable-xpinstall
ac_add_options --disable-xpfe-components
ac_add_options --disable-xprint
ac_add_options --disable-necko-disk-cache

# configure necko to allocate smaller network buffers
ac_add_options --enable-necko-small-buffers

# disable debug logging and tests
ac_add_options --disable-dtd-debug
ac_add_options --disable-logging
ac_add_options --disable-tests

# build crypto module (PSM + NSS)
ac_add_options --enable-crypto

# build minimal set of protocol handlers
ac_add_options --enable-necko-protocols=http,file,res,jar

# build minimal set of image decoders
ac_add_options --enable-image-decoders=png

# code generation options (optimize for size)
ac_add_options --enable-optimize=-Os
ac_add_options --enable-strip
ac_add_options --disable-debug
ac_add_options --enable-reorder
ac_add_options --enable-elf-dynstr-gc

# enable static build
ac_add_options --disable-shared
ac_add_options --enable-static

-------------------- END .mozconfi     ----------------

I am getting following errors while building the browser.

[... snip ...]
nsAppRunner.cpp
c++ -o nsAppRunner.o -c -DOSTYPE=\"Linux2.4\" -DOSARCH=\"Linux\"
-D_BUILD_STATIC_BIN -I/home/browser/downloads/mozilla/xpfe/bootstrap
-I/home/browser/downloads/mozilla/toolkit/xre/../profile/src
-I../../dist/include/appcomps -I../../dist/include/appshell
-I../../dist/include/content -I../../dist/include/docshell
-I../../dist/include/dom -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/shellservice -I../../dist/include/string
-I../../dist/include/uconv -I../../dist/include/uriloader
-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/xpinstall
-I../../dist/include/xremoteservice -I../../dist/include/xulapp
-I../../dist/include
-I/home/browser/downloads/build_0103/dist/include/nspr
    -I/usr/X11R6/include     -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 -ffunction-sections -Os
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/X11R6/include  -I/usr/X11R6/include -DMOZILLA_CLIENT -include
../../mozilla-config.h -Wp,-MD,.deps/nsAppRunner.pp
/home/browser/downloads/mozilla/toolkit/xre/nsAppRunner.cpp
/home/browser/downloads/mozilla/toolkit/xre/nsAppRunner.cpp:101:35:
InstallCleanupDefines.h: No such file or directory
/home/browser/downloads/mozilla/toolkit/xre/nsAppRunner.cpp: In
function `int
   VerifyInstallation(nsIFile*)':
/home/browser/downloads/mozilla/toolkit/xre/nsAppRunner.cpp:919: `
   CLEANUP_MESSAGE_FILENAME' undeclared (first use this function)
/home/browser/downloads/mozilla/toolkit/xre/nsAppRunner.cpp:919: (Each
   undeclared identifier is reported only once for each function it
appears
   in.)
/home/browser/downloads/mozilla/toolkit/xre/nsAppRunner.cpp:941:
`CLEANUP_UTIL'
   undeclared (first use this function)
/home/browser/downloads/mozilla/toolkit/xre/nsAppRunner.cpp: In
function `int
   xre_main(int, char**, const nsXREAppData*)':
/home/browser/downloads/mozilla/toolkit/xre/nsAppRunner.cpp:1688: `
   CLEANUP_REGISTRY' undeclared (first use this function)
gmake[4]: *** [nsAppRunner.o] Error 1
gmake[4]: Leaving directory
`/home/browser/downloads/build_0103/toolkit/xre'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory
`/home/browser/downloads/build_0103/toolkit'
gmake[2]: *** [tier_50] Error 2

Can anyone here please help me with what is going wrong here? Am I
missing something in my .mozconfig options?

Thanks for any help/further directions.

_______________________________________________
mozilla-builds mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-builds
Reply | Threaded
Open this post in threaded view
|

Re: Errors while building Firefox 1.0.7 version

walt-2
Pratham wrote:

> Hi,
>
> I have tried building Firefox 1.0.7 on RH 9 machine. I have installed
> all the
> required tools mentioned as "pre-requisite" for building mozilla code
> base.
>
> Following is my .mozconfig file
>
> -------------------- .mozconfi     ----------------
> . /home/browser/downloads/mozilla/browser/config/mozconfig
>
> export MOZ_PHOENIX=1
> mk_add_options MOZ_PHOENIX=1

This is harmless, but obsolete.  You must be reading some
older documentation.

 > # disable XUL support to reduce codesize
> ac_add_options --disable-xul

This one looks risky to me, although I can't say for certain.

Are you sure you really need all of the things you've listed?
You have quite a few unusual items in .mozconfig, things I've
never tried.  My suggestion would be to eliminate most of them
at first and then add them back one at a time until you find
one which creates the error.

Here is what I use:
mk_add_options MOZ_CO_PROJECT=browser
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj
ac_add_options --enable-optimize="-O -march=athlon-xp -pipe -g"
ac_add_options --disable-freetype2
ac_add_options --enable-application=browser
ac_add_options --enable-xft
ac_add_options --disable-installer

_______________________________________________
mozilla-builds mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-builds
Reply | Threaded
Open this post in threaded view
|

Re: Errors while building Firefox 1.0.7 version

Mike Shaver
In reply to this post by Pratham-2
On 2 Jan 2006 22:56:37 -0800, Pratham <[hidden email]> wrote:
> # disable XUL support to reduce codesize
> ac_add_options --disable-xul

That might reduce codesize, if indeed it will still let you build
(might well not), but you won't be able to use the resulting Firefox,
since Firefox is a XUL application.

Mike

_______________________________________________
mozilla-builds mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-builds