Installing mozilla

Mark Carey mark.carey at gmail.com
Fri Oct 15 19:54:29 PDT 2004


Hi all on a lazy compiling saturday.

I am having problems compiling mozilla (1.7.3) using the BLFS 5.1
instructions on what was an LFS 5.0 system.

I have xorg 6.8.1 installed along with the majority of Gnome 2.8.0
(installed in /opt/gnome2.8.0), I am trying to get mozilla going as I
need gecko for ephiany.

The problem appears to be freetype related,

make[4]: Leaving directory `/usr/src/mozilla/gfx/src/shared'
make[4]: Entering directory `/usr/src/mozilla/gfx/src/freetype'
nsFreeType.cpp
c++ -o nsFreeType.o -c -DOSTYPE=\"Linux2.6.8\" -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/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

<snip>

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)
make[4]: *** [nsFreeType.o] Error 1
make[4]: Leaving directory `/usr/src/mozilla/gfx/src/freetype'
make[3]: *** [libs] Error 2
make[3]: Leaving directory `/usr/src/mozilla/gfx/src'
make[2]: *** [libs] Error 2
make[2]: Leaving directory `/usr/src/mozilla/gfx'
make[1]: *** [tier_9] Error 2
make[1]: Leaving directory `/usr/src/mozilla'
make: *** [default] Error 2

libfreetype is installed in /usr/lib, with freetype2.pc in
/usr/lib/pkgconfig, PKG_CONFIG_PATH includes the location of
freetype2.pc.

It looks to me like a missing header problem, from all the undefined
functions etc and from the first segment in the above error I note
that make is attempting to include /usr/include/freetype2 which only
does not contain any header files only a freetype directory, could
this be the problem?

Any one got any suggestions?

I will try moving the freetype headers into /usr/include/freetype2

Mark



More information about the blfs-support mailing list