nsFreetype.o not found for mozilla build

Francis Lavoie francisl at aei.ca
Thu Sep 2 19:29:02 PDT 2004


I can say that I successfully build my gnome desktop, except the web portion
I'm trying to build mozilla, but I get stock with an long error:

-------------------------------------------------------------------------------------------------------------------------------------------------------------------
c++ -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/usr/src/Stage3.3_Desktop/packages/mozilla/dist/include/nspr     
-I/usr/include/freetype2 -I/usr/X11R6/include   -fPIC  
-I/usr/X11R6/include -frtti -fno-exceptions -Wall -Wconversion 
-Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth 
-Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long 
-fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -ffunction-sections  
-I/usr/X11R6/include -DMOZILLA_CLIENT -include ../../../mozilla-config.h 
-Wp,-MD,.deps/nsFreeType.pp nsFreeType.cpp
In file included from nsFreeType.h:39,
                 from nsFreeType.cpp:48:
../../../dist/include/gfx/nsIFreeType2.h:53: error: `FTC_Image_Cache' 
was not declared in this scope
../../../dist/include/gfx/nsIFreeType2.h:53: error: `aImageCache' was 
not declared in this scope
../../../dist/include/gfx/nsIFreeType2.h:53: error: variable declaration 
is not allowed here
../../../dist/include/gfx/nsIFreeType2.h:92: error: `FTC_Image_Cache' 
was not declared in this scope
../../../dist/include/gfx/nsIFreeType2.h:92: error: syntax error before 
`,' token
../../../dist/include/gfx/nsIFreeType2.h:104: error: type specifier 
omitted for parameter `FTC_Image_Cache'
../../../dist/include/gfx/nsIFreeType2.h:104: error: syntax error before 
`*' token
In file included from nsFreeType.cpp:48:
nsFreeType.h:107: error: `FTC_Image_Cache' was not declared in this scope
nsFreeType.h:107: error: `FTC_Image_Desc' was not declared in this scope
nsFreeType.h:107: error: syntax error before `,' token
nsFreeType.h:113: error: type specifier omitted for parameter 
`FTC_Image_Cache'
nsFreeType.h:113: error: syntax error before `*' token
nsFreeType.h:145: error: `FTC_Image_Cache' was not declared in this scope
nsFreeType.h:145: error: `aImageCache' was not declared in this scope
nsFreeType.h:145: error: invalid data member initialization
nsFreeType.h:145: error: (use `=' to initialize static data members)
nsFreeType.h:145: error: `GetImageCache' declared as a `virtual' field
nsFreeType.h:145: warning: `visibility' attribute ignored
nsFreeType.h:145: error: `FTC_Image_Cache' was not declared in this scope
nsFreeType.h:145: error: syntax error before `,' token
nsFreeType.h:145: error: type specifier omitted for parameter 
`FTC_Image_Cache'
nsFreeType.h:145: error: syntax error before `*' token
nsFreeType.h:216: error: 'FTC_Image_Cache' is used as a type, but is not 
defined as 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 object
nsFreeType.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 object
nsFreeType.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 object
nsFreeType.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 object
nsFreeType.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: `FTC_Image_Cache' was not declared in this scope
nsFreeType.cpp:285: error: syntax error before `,' token
nsFreeType.cpp: In member function `virtual nsresult 
nsFreeType2::ImageCacheLookup(...)':
nsFreeType.cpp:289: error: `cache' undeclared (first use this function)
nsFreeType.cpp:289: error: (Each undeclared identifier is reported only 
once for each function it appears in.)
nsFreeType.cpp:289: error: `desc' undeclared (first use this function)
nsFreeType.cpp:289: error: `glyphID' undeclared (first use this function)
nsFreeType.cpp:289: error: `glyph' undeclared (first use this function)
nsFreeType.cpp: At global scope:
nsFreeType.cpp:323: error: type specifier omitted for parameter 
`FTC_Image_Cache'
nsFreeType.cpp:323: error: syntax error before `*' token
nsFreeType.cpp: In member function `virtual nsresult 
nsFreeType2::ImageCacheNew(...)':
nsFreeType.cpp:326: error: `manager' undeclared (first use this function)
nsFreeType.cpp: At global scope:
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: `nsresult nsFreeType2::GetImageCache' is not 
a static member of `class nsFreeType2'
nsFreeType.cpp:393: error: syntax error before `{' token
nsFreeType.cpp: In member function `void nsFreeType2::ClearGlobals()':
nsFreeType.cpp:429: error: `mImageCache' undeclared (first use this 
function)
gmake[4]: *** [nsFreeType.o] Error 1
gmake[4]: Leaving directory 
`/usr/src/Stage3.3_Desktop/packages/mozilla/gfx/src/freetype'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory 
`/usr/src/Stage3.3_Desktop/packages/mozilla/gfx/src'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/usr/src/Stage3.3_Desktop/packages/mozilla/gfx'
gmake[1]: *** [tier_9] Error 2
gmake[1]: Leaving directory `/usr/src/Stage3.3_Desktop/packages/mozilla'
make: *** [default] Error 2
-------------------------------------------------------------------------------------------------------------------------------------------------------------------

is it a problem with mozilla or freetype?





More information about the blfs-support mailing list