I'm trying to compile Firefox trunk on a Mandrake Cooker ("10.1") system with gcc 3.4.0 with GTK+2 & Xft. I'm getting an error.
Did anyone succeed in compiling Ff w/ GTK2+Xft @ gcc3.4?
Here's the error I get:
Code: Select all
gfxImageFrame.cpp: In member function `virtual nsresult gfxImageFrame::Init(nscoord, nscoord, nscoord, nscoord, gfx_format, gfx_depth)':
gfxImageFrame.cpp:103: warning: 'maskReq' might be used uninitialized in this function
rm -f libgfxshared_s.a
ar cr libgfxshared_s.a nsRenderingContextImpl.o gfxImageFrame.o
ranlib libgfxshared_s.a
/opt/tmp/src/mozilla/firefox/mozilla/config/nsinstall -R -m 644 libgfxshared_s.a ../../../dist/lib
gmake[5]: Leaving directory `/opt/tmp/src/mozilla/firefox/mozilla/gfx/src/shared'
gmake[5]: Entering directory `/opt/tmp/src/mozilla/firefox/mozilla/gfx/src/freetype'
nsFreeType.cpp
g++-3.4.0 -o nsFreeType.o -c -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -I../.. -I../../../dist/include/xpcom -I../../../dist/include/string -I../../../dist/include/pref -I../../../dist/include/uconv -I../../../dist/include/unicharutil -I../../../dist/include/gfx -I../../../dist/include -I/opt/tmp/src/mozilla/firefox/mozilla/dist/include/nspr -I/usr/include/freetype2 -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 -march=athlon-xp -msse -funit-at-a-time -funroll-loops -fpeel-loops -funswitch-loops -O3 -pipe -fomit-frame-pointer -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -march=athlon-xp -msse -funit-at-a-time -funroll-loops -fpeel-loops -funswitch-loops -O3 -pipe -fomit-frame-pointer -I/usr/X11R6/include -DMOZILLA_CLIENT -include ../../../mozilla-config.h -Wp,-MD,.deps/nsFreeType.pp nsFreeType.cpp
In file included from nsFreeType.h:55,
from nsFreeType.cpp:48:
../../../dist/include/gfx/nsIFreeType2.h:53: error: `GetImageCache' declared as a `virtual' field
../../../dist/include/gfx/nsIFreeType2.h:53: warning: `visibility' attribute ignored
../../../dist/include/gfx/nsIFreeType2.h:53: error: expected `;' before '(' token
../../../dist/include/gfx/nsIFreeType2.h:92: error: `ImageCacheLookup' declared as a `virtual' field
../../../dist/include/gfx/nsIFreeType2.h:92: warning: `visibility' attribute ignored
../../../dist/include/gfx/nsIFreeType2.h:92: error: expected `;' before '(' token
../../../dist/include/gfx/nsIFreeType2.h:104: error: `FTC_Image_Cache' has not been declared
../../../dist/include/gfx/nsIFreeType2.h:104: error: ISO C++ forbids declaration of `cache' with no type
In file included from nsFreeType.cpp:48:
nsFreeType.h:123: error: typedef `FTC_Image_Cache_Lookup_t' is initialized (use __typeof__ instead)
nsFreeType.h:123: error: `FTC_Image_Cache' was not declared in this scope
nsFreeType.h:123: error: `FTC_Image_Desc' was not declared in this scope
nsFreeType.h:123: error: expected primary-expression before ',' token
nsFreeType.h:123: error: expected primary-expression before ',' token
nsFreeType.h:123: error: expected primary-expression before '*' token
nsFreeType.h:123: error: expected primary-expression before ')' token
nsFreeType.h:129: error: `FTC_Image_Cache' has not been declared
nsFreeType.h:129: error: ISO C++ forbids declaration of `parameter' with no type
nsFreeType.h:161: error: `GetImageCache' declared as a `virtual' field
nsFreeType.h:161: warning: `visibility' attribute ignored
nsFreeType.h:161: error: expected `;' before '(' token
nsFreeType.h:161: error: `ImageCacheLookup' declared as a `virtual' field
nsFreeType.h:161: warning: `visibility' attribute ignored
nsFreeType.h:161: error: expected `;' before '(' token
nsFreeType.h:161: error: `FTC_Image_Cache' has not been declared
nsFreeType.h:161: error: ISO C++ forbids declaration of `cache' with no type
nsFreeType.h:232: error: `FTC_Image_Cache' does not name a type
nsFreeType.cpp:101: warning: invalid access to non-static data member `nsFreeType2::nsFT_Done_Face' of NULL object
nsFreeType.cpp:101: warning: (perhaps the `offsetof' macro was used incorrectly)
nsFreeType.cpp:102: warning: invalid access to non-static data member `nsFreeType2::nsFT_Done_FreeType' of NULL object
nsFreeType.cpp:102: warning: (perhaps the `offsetof' macro was used incorrectly)
nsFreeType.cpp:103: warning: invalid access to non-static data member `nsFreeType2::nsFT_Done_Glyph' of NULL object
nsFreeType.cpp:103: warning: (perhaps the `offsetof' macro was used incorrectly)
nsFreeType.cpp:104: warning: invalid access to non-static data member `nsFreeType2::nsFT_Get_Char_Index' of NULL objectnsFreeType.cpp:104: warning: (perhaps the `offsetof' macro was used incorrectly)
nsFreeType.cpp:105: warning: invalid access to non-static data member `nsFreeType2::nsFT_Get_Glyph' of NULL object
nsFreeType.cpp:105: warning: (perhaps the `offsetof' macro was used incorrectly)
nsFreeType.cpp:106: warning: invalid access to non-static data member `nsFreeType2::nsFT_Get_Sfnt_Table' of NULL objectnsFreeType.cpp:106: warning: (perhaps the `offsetof' macro was used incorrectly)
nsFreeType.cpp:107: warning: invalid access to non-static data member `nsFreeType2::nsFT_Glyph_Get_CBox' of NULL objectnsFreeType.cpp:107: warning: (perhaps the `offsetof' macro was used incorrectly)
nsFreeType.cpp:108: warning: invalid access to non-static data member `nsFreeType2::nsFT_Init_FreeType' of NULL object
nsFreeType.cpp:108: warning: (perhaps the `offsetof' macro was used incorrectly)
nsFreeType.cpp:109: warning: invalid access to non-static data member `nsFreeType2::nsFT_Load_Glyph' of NULL object
nsFreeType.cpp:109: warning: (perhaps the `offsetof' macro was used incorrectly)
nsFreeType.cpp:110: warning: invalid access to non-static data member `nsFreeType2::nsFT_New_Face' of NULL object
nsFreeType.cpp:110: warning: (perhaps the `offsetof' macro was used incorrectly)
nsFreeType.cpp:111: warning: invalid access to non-static data member `nsFreeType2::nsFT_Outline_Decompose' of NULL object
nsFreeType.cpp:111: warning: (perhaps the `offsetof' macro was used incorrectly)
nsFreeType.cpp:112: warning: invalid access to non-static data member `nsFreeType2::nsFT_Set_Charmap' of NULL object
nsFreeType.cpp:112: warning: (perhaps the `offsetof' macro was used incorrectly)
nsFreeType.cpp:113: warning: invalid access to non-static data member `nsFreeType2::nsFTC_Image_Cache_Lookup' of NULL object
nsFreeType.cpp:113: warning: (perhaps the `offsetof' macro was used incorrectly)
nsFreeType.cpp:114: warning: invalid access to non-static data member `nsFreeType2::nsFTC_Manager_Lookup_Size' of NULL object
nsFreeType.cpp:114: warning: (perhaps the `offsetof' macro was used incorrectly)
nsFreeType.cpp:115: warning: invalid access to non-static data member `nsFreeType2::nsFTC_Manager_Done' of NULL object
nsFreeType.cpp:115: warning: (perhaps the `offsetof' macro was used incorrectly)
nsFreeType.cpp:116: warning: invalid access to non-static data member `nsFreeType2::nsFTC_Manager_New' of NULL object
nsFreeType.cpp:116: warning: (perhaps the `offsetof' macro was used incorrectly)
nsFreeType.cpp:117: warning: invalid access to non-static data member `nsFreeType2::nsFTC_Image_Cache_New' of NULL object
nsFreeType.cpp:117: warning: (perhaps the `offsetof' macro was used incorrectly)
nsFreeType.cpp:119: warning: invalid access to non-static data member `nsFreeType2::nsFT_Glyph_Transform' of NULL object
nsFreeType.cpp:119: warning: (perhaps the `offsetof' macro was used incorrectly)
nsFreeType.cpp:120: warning: invalid access to non-static data member `nsFreeType2::nsFT_Get_Kerning' of NULL object
nsFreeType.cpp:120: warning: (perhaps the `offsetof' macro was used incorrectly)
nsFreeType.cpp:121: warning: invalid access to non-static data member `nsFreeType2::nsFT_Glyph_Copy' of NULL object
nsFreeType.cpp:121: warning: (perhaps the `offsetof' macro was used incorrectly)
nsFreeType.cpp:122: warning: invalid access to non-static data member `nsFreeType2::nsFT_Glyph_To_Bitmap' of NULL object
nsFreeType.cpp:122: warning: (perhaps the `offsetof' macro was used incorrectly)
nsFreeType.cpp:124: warning: invalid access to non-static data member `nsFreeType2::nsFT_Get_First_Char' of NULL objectnsFreeType.cpp:124: warning: (perhaps the `offsetof' macro was used incorrectly)
nsFreeType.cpp:125: warning: invalid access to non-static data member `nsFreeType2::nsFT_Get_Next_Char' of NULL object
nsFreeType.cpp:125: warning: (perhaps the `offsetof' macro was used incorrectly)
nsFreeType.cpp:285: error: `nsresult nsFreeType2::ImageCacheLookup' is not a static member of `class nsFreeType2'
nsFreeType.cpp:285: error: `FTC_Image_Cache' was not declared in this scope
nsFreeType.cpp:285: error: `FTC_Image_Desc' was not declared in this scope
nsFreeType.cpp:285: error: `desc' was not declared in this scope
nsFreeType.cpp:286: error: expected primary-expression before "glyphID"
nsFreeType.cpp:286: error: expected primary-expression before '*' token
nsFreeType.cpp:286: error: `glyph' was not declared in this scope
nsFreeType.cpp:287: error: initializer expression list treated as compound expression
nsFreeType.cpp:287: error: expected `,' or `;' before '{' token
nsFreeType.cpp:323: error: `FTC_Image_Cache' has not been declared
nsFreeType.cpp:324: error: ISO C++ forbids declaration of `cache' with no type
nsFreeType.cpp:392: error: `nsresult nsFreeType2::GetImageCache' is not a static member of `class nsFreeType2'
nsFreeType.cpp:392: error: `FTC_Image_Cache' was not declared in this scope
nsFreeType.cpp:392: error: `aCache' was not declared in this scope
nsFreeType.cpp:393: error: expected `,' or `;' before '{' token
nsFreeType.cpp: In member function `void nsFreeType2::ClearGlobals()':
nsFreeType.cpp:429: error: `mImageCache' undeclared (first use this function)
nsFreeType.cpp:429: error: (Each undeclared identifier is reported only once for each function it appears in.)
nsFreeType.cpp: In member function `PRBool nsFreeType2::InitLibrary()':
nsFreeType.cpp:668: error: `mImageCache' undeclared (first use this function)
gmake[5]: *** [nsFreeType.o] Error 1
gmake[5]: Leaving directory `/opt/tmp/src/mozilla/firefox/mozilla/gfx/src/freetype'
gmake[4]: *** [libs] Error 2
gmake[4]: Leaving directory `/opt/tmp/src/mozilla/firefox/mozilla/gfx/src'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/opt/tmp/src/mozilla/firefox/mozilla/gfx'
gmake[2]: *** [tier_9] Error 2
gmake[2]: Leaving directory `/opt/tmp/src/mozilla/firefox/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/opt/tmp/src/mozilla/firefox/mozilla'
make: *** [build] Error 2
Command exited with non-zero status 2