Closed Bug 127674 Opened 22 years ago Closed 22 years ago

Mandrake problem with FreeType

Categories

(SeaMonkey :: Build Config, defect)

x86
Linux
defect
Not set
critical

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: bootsy52, Assigned: bstell)

Details

I'm not able to build Mozilla anymore since Feb. 24th. I have even tried to pull
the tree completly again, but same result.

SYSTEM:
Mandrake 8.0 gcc-2.95.3 glib-2.2.2 gtk-1.2.10 kernel-2.4.8-ac7

BUILD OPTIONS:
ac_add_options --prefix=/usr/lib/mozilla-097
ac_add_options --libdir=/usr/lib/mozilla-097
ac_add_options --includedir=/usr/include/mozilla-097
ac_add_options --enable-crypto
ac_add_options --disable-accessibility
ac_add_options --enable-mathml
ac_add_options --enable-svg   
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --enable-optimize="-O6 -march=i686 -mcpu=i68
ac_add_options --disable-dtd-debug
ac_add_options --enable-strip
ac_add_options --with-default-mozilla-five-home=/usr/lib/mo
ac_add_options --with-user-appdir=".mozilla-098"
ac_add_options --enable-static
ac_add_options --disable-shared

WHAT I HAVE TRIED SO FAR:

1. disable the build of svg (no result)
2. Lowering Optimizations to -O2 (no result)
3. Disabling --prefix --includedir --libdir (no result)

I could not enable debug, as I have only 2.1 GIG Free Diskspace, the last time
this filled my Harddisk completley up.

THE ERROR:

In file included from nsFreeType.cpp:49:
../x11shared/nsFreeType.h:70: `FTC_Image_Cache' was not declared in this scope
../x11shared/nsFreeType.h:70: `FTC_Image_Desc' was not declared in this scope
../x11shared/nsFreeType.h:70: parse error before `,'
../x11shared/nsFreeType.h:76: type specifier omitted for parameter
../x11shared/nsFreeType.h:76: parse error before `*'
../x11shared/nsFreeType.h:152: syntax error before `;'
nsFreeType.cpp: In method `struct FT_FaceRec_ * nsFreeTypeFont::getFTFace()':
nsFreeType.cpp:545: `mImageDesc' undeclared (first use this function)
nsFreeType.cpp:545: (Each undeclared identifier is reported only once
nsFreeType.cpp:545: for each function it appears in.)
nsFreeType.cpp: In function `FT_Error nsFreeTypeFaceRequester(void *,
FT_LibraryRec_ *, void *, FT_FaceRec_ **)':
nsFreeType.cpp:1182: `TT_PLATFORM_MICROSOFT' undeclared (first use this function)
nsFreeType.cpp:1183: `TT_MS_ID_UNICODE_CS' undeclared (first use this function)
make[5]: *** [nsFreeType.o] Error 1
make[5]: Leaving directory `/usr/local/src/net/mozilla/gfx/src/gtk'
make[4]: *** [libs] Error 2
make[4]: Leaving directory `/usr/local/src/net/mozilla/gfx/src'
make[3]: *** [libs] Error 2
make[3]: Leaving directory `/usr/local/src/net/mozilla/gfx'
make[2]: *** [tier_9] Error 2
make[2]: Leaving directory `/usr/local/src/net/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/usr/local/src/net/mozilla'
make: *** [build] Error 2
Keywords: mozilla0.9.9
Forget to say, that the tinderboxen were all green when I pulled the tree.
Tried again, today, no resolution
this is probably related to bstell's work on 126713.  Brian?
Lets start by seeing if we can get you building.
Would you add this to the build options:

  --disable-freetype2

Assignee: seawood → bstell
Status: UNCONFIRMED → NEW
Ever confirmed: true
Status: NEW → ASSIGNED
Carsten: Since I don't see this problem in house I'd like to work with you
to figure out how to fix this. What hours are you online?
Wow, what a quick reply, I was actually online the whole day (it's daytime here
in Europe), now I have to leave the house for a couple of hours, I'm back in
around 4 hours, I would gladly help to resolve this problem.

In the meantime why I'm out I try to build it using --disable-freetype2.

Should I email you when I'm back ?
yes, please email me at both bstell@netscape.com and bstell@ix.netcom.com

I will also be on #mozilla on IRC.
Firstly a really big praise goes out to bstell. We have fightened out this issue
on IRC. This happenes because, Mandrake has freetype2 as a seperate package
installed, due to that I upgraded XFree86 to XFree86-4.1.0 from source I had two
freetype2, as XFree86 comes also with freetype2 (version 2.0.1) But Mandrake has
installed 2.0.2 by default.

The problem could be solved to symlink /usr/include/freetype2.
e.g. ln -s /usr/X11R6/include/freetype2 /usr/include/freetype2

to match the Version of XFree86's freetype2. I don't know yet if other
dependices for other programs occour by this, but Mozilla builds again.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Forget to say, that it could also be solved by using

--disable-freetype2

if that is whished.
OK, Just for the case another one is running into this problem I tracked this
further down. I found out, that probably other Mandrake 8.0 users could as well
get into this, wether they recompiled XFree86 with freetype2 or not. 

REASON:
Mandrake 8.0 installs by default ft2build.h in /usr/include and as well in
/usr/include/freetype2/freetype/config/

with the difference that these two files are not the same ones.

WHAT I HAVE DONE: (finally):

In Addition to the Reason at the top, I had also upgraded XFree86 to
XFree86-4.1.0 with freetype2 provided by XFree86. (XFree86-4.1.0 comes with
2.0.1). To solve the problem now for me finally I have downloaded freetype2-2.02
(as Mandrake 8.0 comes with 2.0.2 (but seems to be tweaked by Mandrake)).
from: http://www.freetype.org

I deleted (or if you want to feel save rename it)
/usr/X11R6/include/freetype2
/usr/X11R6/lib/libfreetype*
Recompiled it with:
make setup CFG="--prefix=/usr/X11R6 --bindir=/usr/bin --mandir=/usr/share/man"
make 
make install

add /usr/X11R6/lib to /etc/ld.so.conf and run 'ldconfig'

IMPORTANT NOTE:
don't remove or symlink /usr/X11R6/lib/module/fonts/libfreetype.a
as otherwise, XFree86 will make you problems.

RESOLUTION:
1. Mozilla builds fine
2. No further problems remarked
changed title
Summary: Compile breaks, since Feb. 24th in nsFreeType.cpp → Mandrake problem with FreeType
OK, one thing remarked later is that the installation of freetype-2.0.2 puts
ft2build.h
under /usr/X11R6/include but it searches ft2build.h under
/usr/X11R6/include/freetype2

Either move it there or do, (as I have done) make a symlink like this:
ln -s /usr/X11R6/include/freetype2/ft2build.h  /usr/X11R6/include/ft2build.h 

Hope that this was the last thing that made problems
verified
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.