Compiling Phoenix from CVS Issues

Discussion about official Mozilla Firefox builds
Post Reply
psiox
Posts: 2
Joined: December 8th, 2002, 5:14 pm

Compiling Phoenix from CVS Issues

Post by psiox »

Everything seems to go fine until I hit this:

Code: Select all

c++ -o nsGfxFactoryGTK.o -c -DNATIVE_THEME_SUPPORT -DOSTYPE=\"Linux2.4\" -DOSARCH=\"Linux\" -DOJI -D_BSD_SOURCE -DUSE_POSTSCRIPT -DUSE_XPRINT -DUSE_MOZILLA_TYPES -DMOZ_ENABLE_FREETYPE2 -I./. -I./.. -I./../shared -I./../freetype -I./../x11shared  -I../../../dist/include/xpcom -I../../../dist/include/string -I../../../dist/include/widget -I../../../dist/include/view -I../../../dist/include/util -I../../../dist/include/pref -I../../../dist/include/uconv -I../../../dist/include/unicharutil -I../../../dist/include/locale -I../../../dist/include/necko -I../../../dist/include/content -I../../../dist/include/layout -I../../../dist/include/imglib2 -I../../../dist/include/gfx -I../../../dist/include -I/mnt/ide2/src/mozilla/dist/include/nspr      -I/usr/X11R6/include/freetype2 -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 -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -O2 -I/usr/include/freetype2 -I/usr/X11R6/include   -I/usr/local/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/nsGfxFactoryGTK.pp nsGfxFactoryGTK.cpp
In file included from /usr/local/include/gtk-1.2/gdk/gdktypes.h:33,
                 from /usr/local/include/gtk-1.2/gdk/gdk.h:31,
                 from /usr/local/include/gtk-1.2/gtk/gtk.h:31,
                 from nsDrawingSurfaceGTK.h:48,
                 from nsRenderingContextGTK.h:55,
                 from nsGfxFactoryGTK.cpp:47:
/usr/include/glib-1.2/glib.h:1308:23: warning: ISO C does not permit named variadic macros
/usr/include/glib-1.2/glib.h:1311:25: warning: ISO C does not permit named variadic macros
/usr/include/glib-1.2/glib.h:1314:26: warning: ISO C does not permit named variadic macros
/usr/include/glib-1.2/glib.h:1317:25: warning: ISO C does not permit named variadic macros
In file included from nsGfxFactoryGTK.cpp:65:
nsFontMetricsXft.h:248: syntax error before `*' token
make[4]: *** [nsGfxFactoryGTK.o] Error 1
make[4]: Leaving directory `/mnt/ide2/src/mozilla/gfx/src/gtk'
make[3]: *** [libs] Error 2
make[3]: Leaving directory `/mnt/ide2/src/mozilla/gfx/src'
make[2]: *** [libs] Error 2
make[2]: Leaving directory `/mnt/ide2/src/mozilla/gfx'
make[1]: *** [tier_9] Error 2
make[1]: Leaving directory `/mnt/ide2/src/mozilla'
make: *** [default] Error 2

I noticed ONE person turned up as having this same problem, on Google. Any ideas?
jrt
Posts: 38
Joined: November 16th, 2002, 5:27 pm

Re: Compiling Phoenix from CVS Issues

Post by jrt »

psiox wrote:Everything seems to go fine until I hit this:

Code: Select all

c++ -o nsGfxFactoryGTK.o -c -DNATIVE_THEME_SUPPORT -DOSTYPE="Linux2.4" 
...
/usr/include/glib-1.2/glib.h:1308:23: warning: ISO C does not permit named variadic macros
/usr/include/glib-1.2/glib.h:1311:25: warning: ISO C does not permit named variadic macros
/usr/include/glib-1.2/glib.h:1314:26: warning: ISO C does not permit named variadic macros
/usr/include/glib-1.2/glib.h:1317:25: warning: ISO C does not permit named variadic macros
In file included from nsGfxFactoryGTK.cpp:65:
nsFontMetricsXft.h:248: syntax error before `*' token
make[4]: *** [nsGfxFactoryGTK.o] Error 1
make[4]: Leaving directory `/mnt/ide2/src/mozilla/gfx/src/gtk'

I noticed ONE person turned up as having this same problem, on Google. Any ideas?



I don't build Phoenix on Unix, but I would guess that your system has an incompatable version of gcc3 (3.2?). There are several bugs in Bugzilla dealing with gcc 3 issues, and that fact that it errors out in what looks like increased standard compliance leads me to believe that you are probably using a newer version of gcc than is typically used. Maybe you could try gcc 2.95.2 and see if that works any better?

Also, this is erroring out in non-Phoenix code, so you might be better off asking in the Mozilla forums.
psiox
Posts: 2
Joined: December 8th, 2002, 5:14 pm

Re: Compiling Phoenix from CVS Issues

Post by psiox »

Actually, I /am/ running GCC 3.2. Thanks for the heads up. After fighting for two hours, I've installed gcc-2.95.2 and just started up a fresh build of Phoenix. Thanks for the help, and I apologise for sticking this thread in the wrong sub-forum :/
User avatar
joshk
Posts: 33
Joined: November 25th, 2002, 1:33 am
Location: Palo Alto, CA
Contact:

Post by joshk »

The real reason for this error is not having the right Xft.h...
You should install the latest fcpackage from fontconfig.org, or if you use Debian, try apt-get install libxft2 libfontconfig1 fontconfig. This works with gcc-3.2 for sure.
<mspencer> Hitler used an aimbot.
Post Reply