MozillaZine

Compiling Phoenix from CVS Issues

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

Post Posted December 8th, 2002, 5:15 pm

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

Post Posted December 8th, 2002, 6:17 pm

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

Post Posted December 8th, 2002, 10:18 pm

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 :/

joshk

User avatar
 
Posts: 33
Joined: November 25th, 2002, 1:33 am
Location: Palo Alto, CA

Post Posted December 13th, 2002, 2:09 pm

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.

Return to Firefox Builds


Who is online

Users browsing this forum: No registered users and 8 guests