Closed Bug 263199 Opened 20 years ago Closed 20 years ago

Build failure with freetype-2.1.9 (9.7.3)

Categories

(Core Graveyard :: GFX, defect)

x86
Linux
defect
Not set
blocker

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 234035

People

(Reporter: andrewbass, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a4) Gecko/20040927
Build Identifier: 

Trying to build mozilla-1.8a4, I get the following error:

c++ -o nsDeviceContextPS.o -c -DOSTYPE=\"Linux2.4\" -DOSARCH=\"Linux\"
-DHAVE_DEPENDENT_LIBS -I../.. -I./..  -I./../shared
-I../../../dist/include/xpcom -I../../../dist/include/string
-I../../../dist/include/widget -I../../../dist/include/pref
-I../../../dist/include/caps -I../../../dist/include/locale
-I../../../dist/include/uconv -I../../../dist/include/view
-I../../../dist/include/necko -I../../../dist/include/imglib2
-I../../../dist/include/unicharutil -I../../../dist/include/gfx
-I../../../dist/include -I/tmp/mozilla/dist/include/nspr     -I.
-I/usr/X11R6/include -I/usr/include/freetype2   -I/usr/X11R6/include   -fPIC 
-I/usr/X11R6/include -frtti -fexceptions -Wall -Wconversion -Wpointer-arith
-Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy
-Wno-non-virtual-dtor -Wno-long-long -pedantic -O9 -mtune=pentium4
-march=pentium4 -mmmx -msse -msse2 -mfpmath=sse -I/usr/local/include/freetype2
-fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -ffunction-sections -O9
-mtune=pentium4 -march=pentium4 -mmmx -msse -msse2 -mfpmath=sse
-I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include
-I/usr/X11R6/include -I/usr/local/include/atk-1.0 -I/usr/local/include/pango-1.0
-I/usr/include/freetype2 -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include    -I/usr/X11R6/include -DMOZILLA_CLIENT
-include ../../../mozilla-config.h -Wp,-MD,.deps/nsDeviceContextPS.pp
nsDeviceContextPS.cpp
In file included from nsDeviceContextPS.h:50,
                 from nsDeviceContextPS.cpp:55:
nsFontMetricsPS.h:344: error: `FTC_Image_Desc' does not name a type
nsFontMetricsPS.h:344: error: extra semicolon
nsFontMetricsPS.h:347: error: `FTC_Image_Cache' does not name a type
nsFontMetricsPS.h:347: error: extra semicolon
nsFontMetricsPS.h:481: error: `FTC_Image_Desc' does not name a type
nsFontMetricsPS.h:481: error: extra semicolon
gmake[4]: *** [nsDeviceContextPS.o] Error 1
gmake[4]: Leaving directory `/tmp/mozilla/gfx/src/ps'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/tmp/mozilla/gfx/src'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/tmp/mozilla/gfx'
gmake[1]: *** [tier_9] Error 2
gmake[1]: Leaving directory `/tmp/mozilla'
make: *** [default] Error 2

It seems that these types used to reside in <freetype/ftcache.h>, but were
renamed. Configure options:

CFLAGS="${CFLAGS} `pkg-config --cflags freetype2`" \
CXXFLAGS="${CXXFLAGS} `pkg-config --cflags freetype2`" \
MOZ_INTERNAL_LIBART_LGPL=1 \
`dirname $0`/configure \
--prefix=/usr/local \
--sysconfdir=/etc \
--build=pentium4-pc-linux-gnu \
--host=pentium4-pc-linux-gnu \
--target=pentium4-pc-linux-gnu \
--with-x \
--with-pthreads \
--with-system-jpeg \
--with-system-zlib \
--with-system-png \
--disable-cairo \
--enable-default-toolkit=gtk2 \
--enable-calendar \
--enable-mailnews \
--enable-ldap \
--enable-official-branding \
--disable-freetype2 \
--enable-xft \
--enable-pango \
--enable-postscript \
--enable-xprint \
--enable-gnomevfs \
--enable-gnomeui \
--disable-crypto \
--enable-jsd \
--enable-oji \
--enable-xinerama \
--enable-ctl \
--enable-view-source \
--enable-accessibility \
--enable-xpfe-components \
--enable-xpinstall \
--enable-jsloader \
--enable-composer \
--enable-extensions \
--with-gssapi=/usr/kerberos \
--enable-image-decoders=all \
--enable-ldap-experimental \
--enable-mathml \
--enable-svg \
--enable-svg-renderer-libart \
--enable-installer \
--disable-leaky \
--enable-xpctools \
--enable-tests \
--disable-debug \
--enable-optimize="-O9 -mtune=pentium4 -march=pentium4 -mmmx -msse -msse2
-mfpmath=sse" \
--disable-logging \
--enable-reorder \
--enable-xterm-updates \
--enable-chrome-format=jar \
--enable-cpp-rtti \
--enable-cpp-exceptions \
--enable-shared \
--disable-static \
--enable-xul \
--enable-necko-protocols=all \
--enable-cookies

Gcc version is 3.4.2, Linux 2.4.25

Reproducible: Always
Steps to Reproduce:
Try to configure with options specified, then make -- and build will certainly
fail (assumed your freetype lib is v2.1.9 or higher).
Actual Results:  
Build fails.

Expected Results:  
Wuild was assumed to succeed.

The only resolution is to downgrade the freetype lib.
FTC_Image_Cache was renamed to FTC_ImageCache, while FTC_Image_Desc was replaced
with FTC_ImageTypeRec, but not in a compatible manner. So patching mozilla
sources doesn't help.
The latest usable version of freetype is 2.1.7 (revision 1.25 of
<include/freetype/cache/ftcimage.h>); freetype-2.1.8-2.1.9 (revisions 1.26-1.27)
is incompatible with mozilla.

*** This bug has been marked as a duplicate of 234035 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.