Error attempting to build phoenix, need some help please

Discussion about official Mozilla Firefox builds
agamid
Posts: 190
Joined: January 16th, 2003, 9:32 pm

Post by agamid »

cdn, you have gtk-2.92??? I thought they were only at 2.2.0.... at least that's what I have and that's what I found on the gtk web page. or are those super beta libs?
cdn
Posts: 999
Joined: November 4th, 2002, 5:47 pm
Location: UK
Contact:

Post by cdn »

agamid wrote:cdn, you have gtk-2.92??? I thought they were only at 2.2.0.... at least that's what I have and that's what I found on the gtk web page. or are those super beta libs?


I meant gcc 2.96 : )
gtk is 2.0.6 afact

I haven't upgraded things recently, and I've got Mandrake 9 [download version] CDs I could use : )
agamid
Posts: 190
Joined: January 16th, 2003, 9:32 pm

Post by agamid »

okay. that makes more sense...

gcc-2.96, gtk-2.0.6? wow. you are behind.
you should have said you had gtk-2.96. :)
sig
Posts: 118
Joined: January 14th, 2003, 6:12 pm

Post by sig »

Now with a simple .mozconfig:

Code: Select all

export MOZ_PHOENIX=1
mk_add_options MOZ_PHOENIX=1
ac_add_options --enable-crypto
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --disable-mailnews
ac_add_options --disable-composer
ac_add_options --enable-optimize=-O2
ac_add_options --disable-ldap
ac_add_options --disable-mailnews
ac_add_options --enable-extensions=default,-inspector,-irc,-venkman,-content-packs,-help
ac_add_options --enable-plaintext-editor-only


I get this make error:

Code: Select all

gmake[6]: Leaving directory `/home/jphillips/test/mozilla/browser/components/downloads/public'
gmake[6]: Entering directory `/home/jphillips/test/mozilla/browser/components/downloads/src'
Makefile:42: *** missing separator (did you mean TAB instead of 8 spaces?).  Stop.
gmake[6]: Leaving directory `/home/jphillips/test/mozilla/browser/components/downloads/src'
gmake[5]: *** [export] Error 2
gmake[5]: Leaving directory `/home/jphillips/test/mozilla/browser/components/downloads'
gmake[4]: *** [export] Error 2
gmake[4]: Leaving directory `/home/jphillips/test/mozilla/browser/components'
gmake[3]: *** [export] Error 2
gmake[3]: Leaving directory `/home/jphillips/test/mozilla/browser'
gmake[2]: *** [tier_99] Error 2
gmake[2]: Leaving directory `/home/jphillips/test/mozilla'
gmake[1]: *** [default] Error 2
gmake[1]: Leaving directory `/home/jphillips/test/mozilla'
gmake: *** [build] Error 2
cdn
Posts: 999
Joined: November 4th, 2002, 5:47 pm
Location: UK
Contact:

Post by cdn »

what does line 42 of /home/jphillips/test/mozilla/browser/components/downloads/src/Makefile look like ?

altenatively, try using make -f client.mk build rather than gmake ...
sig
Posts: 118
Joined: January 14th, 2003, 6:12 pm

Post by sig »

Code: Select all

webbrowserpersist \


That is line 42.
woody
Posts: 1
Joined: February 2nd, 2003, 8:11 pm
Location: Ottawa

PhoenixARM build problems

Post by woody »

Howdy guys,

I have attempted 3 times to build Phoenix on ARM, and failed. Mozilla itself builds fine.

1. According to your docs, I grabbed your example .mozconfig, grabbed mozilla source .tar.gz (stable 1.2.1) and tried it. Failed because the toolkit directory is a mockup only (according to messages on this forum, no harm adding this info to the docs, eh???).

2. Got the sample browser-toolkit (http://cdn.mozdev.org/browser-toolkit-20030128.tar.bz2)
and tried again on 1.2.1. Added browser and toolkit directories, configure with your .mozconfig, make, build errors: (snip-snip)

../../../../config/nsinstall -R -m 644 libautocomplete_s.a ../../../../dist/lib make[5]: Leaving directory `/root/mozilla-1.2.1/toolkit/components/autocomplete/src'
make[4]: Leaving directory `/root/mozilla-1.2.1/toolkit/components/autocomplete'make[4]: Entering directory `/root/mozilla-1.2.1/toolkit/components/history'
make[5]: Entering directory `/root/mozilla-1.2.1/toolkit/components/history/public'
nsIGlobalHistory.idl
../../../../dist/bin/xpidl -m typelib -w -I ../../../../dist/idl -I. -o _xpidlgen/nsIGlobalHistory nsIGlobalHistory.idl
nsIBrowserHistory.idl
../../../../dist/bin/xpidl -m typelib -w -I ../../../../dist/idl -I. -o _xpidlgen/nsIBrowserHistory nsIBrowserHistory.idl
../../../../dist/bin/xpt_link _xpidlgen/history.xpt _xpidlgen/nsIGlobalHistory.xpt _xpidlgen/nsIBrowserHistory.xpt
../../../../config/nsinstall -R -m 644 _xpidlgen/history.xpt ../../../../dist/bin/components
make[5]: Leaving directory `/root/mozilla-1.2.1/toolkit/components/history/public'
make[5]: Entering directory `/root/mozilla-1.2.1/toolkit/components/history/src'nsGlobalHistory.cpp
c++ -o nsGlobalHistory.o -c -DOSTYPE=\"Linux2.4\" -DOSARCH=\"Linux\" -DOJI -I../../../../dist/include/xpcom -I../../../../dist/include/string -I../../../../dist/include/rdf -I../../../../dist/include/mork -I../../../../dist/include/pref -I../../../../dist/include/necko -I../../../../dist/include/intl -I../../../../dist/include/unicharutil -I../../../../dist/include/autocomplete -I../../../../dist/include/history -I../../../../dist/include -I/root/mozilla-1.2.1/dist/include/nspr -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 -pedantic -Wno-long-long -pthread -pipe -DNDEBUG -DTRIMMED -fsigned-char -O -I/usr/X11R6/include -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -Wp,-MD,.deps/nsGlobalHistory.pp nsGlobalHistory.cpp
In file included from /usr/include/sys/socket.h:35,
from /root/mozilla-1.2.1/dist/include/nspr/prinet.h:65,
from /root/mozilla-1.2.1/dist/include/nspr/prio.h:48,
from ../../../../dist/include/xpcom/nsILocalFile.h:17,
from ../../../../dist/include/necko/nsNetUtil.h:74,
from nsGlobalHistory.cpp:54:
/usr/include/bits/socket.h: In function `struct cmsghdr * __cmsg_nxthdr(msghdr *, cmsghdr *)':
/usr/include/bits/socket.h:271: warning: cast increases required alignment of target type
nsGlobalHistory.cpp: At top level:
nsGlobalHistory.cpp:2236: no `nsresult nsGlobalHistory::FlushTo(const char *)' member function declared in class `nsGlobalHistory'
make[5]: *** [nsGlobalHistory.o] Error 1
make[5]: Leaving directory `/root/mozilla-1.2.1/toolkit/components/history/src'
make[4]: *** [libs] Error 2
make[4]: Leaving directory `/root/mozilla-1.2.1/toolkit/components/history'
make[3]: *** [libs] Error 2
make[3]: Leaving directory `/root/mozilla-1.2.1/toolkit/components'
make[2]: *** [libs] Error 2
make[2]: Leaving directory `/root/mozilla-1.2.1/toolkit'
make[1]: *** [tier_9] Error 2
make[1]: Leaving directory `/root/mozilla-1.2.1'
make: *** [default] Error 2

3. Grabbed mozilla 1.3a.tar.gz, add browser and toolkit directory, your .mozconfig, configure, make:

make[5]: Leaving directory `/root/mozilla-1.3a/browser/app/profile/chrome'
make[4]: Leaving directory `/root/mozilla-1.3a/browser/app/profile'
../../config/nsinstall -R -m 644 profile/all.js ../../dist/bin/defaults/pref
make[3]: Leaving directory `/root/mozilla-1.3a/browser/app'
make[2]: Leaving directory `/root/mozilla-1.3a/browser'
make[2]: Entering directory `/root/mozilla-1.3a/embedding/browser/gtk/tests'
Creating .deps
make[2]: Leaving directory `/root/mozilla-1.3a/embedding/browser/gtk/tests'
make[2]: Entering directory `/root/mozilla-1.3a/browser'
make[3]: Entering directory `/root/mozilla-1.3a/browser/base'
+++ making chrome /root/mozilla-1.3a/browser/base => ../../dist/bin/chrome/browser.jar
+++ adding chrome ../../dist/bin/chrome/installed-chrome.txt
+++ content,install,url,jar:resource:/chrome/browser.jar!/content/browser/
../../config/preprocessor.pl:/root/mozilla-1.3a/browser/base/content/browser.xul'206: error evaluating ifdef: not a valid variable name: 'XP_WIN

Preprocessing of content/browser.xul failed: 1 at ../../config/make-jars.pl line 340, <STDIN> line 3.
make[3]: *** [libs] Error 2
make[3]: Leaving directory `/root/mozilla-1.3a/browser/base'
make[2]: *** [libs] Error 2
make[2]: Leaving directory `/root/mozilla-1.3a/browser'
make[1]: *** [tier_99] Error 2
make[1]: Leaving directory `/root/mozilla-1.3a'
make: *** [default] Error 2

So how to build Phoenix????
I am using Debian Woody on ARM Netwinder. Repeat: Mozilla alone build fine.

Thanks, Woody
Post Reply