Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59849 - mozilla/firefox/thunderbird with freetype-2.1.9
Summary: mozilla/firefox/thunderbird with freetype-2.1.9
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High major (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
: 60222 62958 66706 70636 70743 (view as bug list)
Depends on:
Blocks: 49494
  Show dependency tree
 
Reported: 2004-08-09 06:12 UTC by Imad R. Faiad
Modified: 2004-12-20 23:21 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
mozilla-firefox-0.9.3-r1.ebuild (mozilla-firefox-0.9.3-r1.ebuild,5.13 KB, text/plain)
2004-08-13 03:19 UTC, Dick Marinus
Details
mozilla-firefox-0.9.3-freetype-2.1.9.patch (mozilla-firefox-0.9.3-freetype-2.1.9.patch,14.11 KB, patch)
2004-08-13 03:20 UTC, Dick Marinus
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Imad R. Faiad 2004-08-09 06:12:34 UTC
net-www/mozilla-1.7.2 fails to compile, so does
net-www/mozilla-firefox-0.9.3-r1
tested by recompiling net-www/mozilla-firefox-0.9.3, there were
no such problems.
so it must be an ebuild issue
hth

g++ -o nsFreeType.o -c -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -I../.. -I../../../dist/includexpcom -I../../../dist/include/string -I../../../dist/include/pref -I../../../dist/include/uconv-I../../../dist/include/unicharutil -I../../../dist/include/gfx -I../../../dist/include -I/mnt/da4/tmp/portage/mozilla-1.7.2/work/mozilla/dist/include/nspr     -I/usr/include/freetype2 -I/us/X11R6/include   -fPIC  -I/usr/X11R6/include -fno-rtti -fno-exceptions  -Wconversion -Wpointer-rith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wn-long-long -march=pentium4 -Wno-deprecated -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -ffnction-sections -O2  -I/usr/X11R6/include -DMOZILLA_CLIENT -include ../../../mozilla-config.h -p,-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 `/mnt/sda4/tmp/portage/mozilla-1.7.2/work/mozilla/gfx/src/freetype'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/mnt/sda4/tmp/portage/mozilla-1.7.2/work/mozilla/gfx/src'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/mnt/sda4/tmp/portage/mozilla-1.7.2/work/mozilla/gfx'
gmake[1]: *** [tier_9] Error 2
gmake[1]: Leaving directory `/mnt/sda4/tmp/portage/mozilla-1.7.2/work/mozilla'
make: *** [default] Error 2

!!! ERROR: net-www/mozilla-1.7.2 failed.
!!! Function src_compile, Line 105, Exitcode 2
!!! (no error message)
Comment 1 Aron Griffis (RETIRED) gentoo-dev 2004-08-09 08:29:31 UTC
What version of freetype do you have installed?
Comment 2 Imad R. Faiad 2004-08-09 13:09:24 UTC
freetype 2.1.9
hth
Comment 3 Aron Griffis (RETIRED) gentoo-dev 2004-08-09 14:27:59 UTC
could you please provide emerge --info
Comment 4 Imad R. Faiad 2004-08-10 03:50:21 UTC
for what it's worth, please find below my emerge info output.
gcc-3.3.5 is based on the 2004-08-04 snapshot with the propolice patch.

however, i think it's an eclass issue, what i did is replace
src_compile() with that of mozilla-1.7-r1, and mozilla-1.7.2
emerged fine my end.

hth

root@gentoo4 ~ # emerge info
Portage 2.0.50-r9 (default-x86-2004.2, gcc-3.3.5, glibc-2.3.4.20040619-r1, 2.6.7-gentoo-r13)
=================================================================
System uname: 2.6.7-gentoo-r13 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
Gentoo Base System version 1.5.2
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -fomit-frame-pointer"
DISTDIR="/mnt/sda4/distfiles"
FEATURES="autoaddcvs buildpkg ccache"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu"
MAKEOPTS="-j3"
PKGDIR="/mnt/sda4/shared/packages"
PORTAGE_TMPDIR="/mnt/sda4/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://134.68.220.73/gentoo-portage"
USE="X alsa arts avi berkdb cdr crypt cups dvd encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 idea imlib ipv6 java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell ssl svga tcpd tetex truetype x86 xml2 xmms xv zlib"
Comment 5 Aron Griffis (RETIRED) gentoo-dev 2004-08-10 08:29:15 UTC
The problem is that I enabled usage of freetype when USE=truetype for mozilla-1.7.2 and firefox-0.9.3-r1.  It builds for some people but not for others.  I haven't tracked it down yet.
Comment 6 Imad R. Faiad 2004-08-10 11:19:29 UTC
must be the freetype version >= 2.16 then
do you want me to give a try with freetype 2.15?
hth
Comment 7 Aaron Peterson 2004-08-10 15:02:11 UTC
my firefox just finally compiled.. I don't want to wait for mozilla to build... and I had better have the truetype useflag... cause I wouldn't use linux without it!
Comment 8 Aron Griffis (RETIRED) gentoo-dev 2004-08-10 18:46:36 UTC
Imad, sure, if you would try a couple versions of freetype, that would be great.
Comment 9 Dick Marinus 2004-08-13 03:18:16 UTC
I suppose this is related to a bug in mozilla:
http://bugzilla.mozilla.org/show_bug.cgi?id=234035

I've tried the patch supplied from the bugreport (it applies without a failure) the build goes fine (i've tried twice) but I can't start firefox (no error).

Could someone please try my ebuild?
Comment 10 Dick Marinus 2004-08-13 03:19:23 UTC
Created attachment 37341 [details]
mozilla-firefox-0.9.3-r1.ebuild
Comment 11 Dick Marinus 2004-08-13 03:20:23 UTC
Created attachment 37342 [details, diff]
mozilla-firefox-0.9.3-freetype-2.1.9.patch
Comment 12 Imad R. Faiad 2004-08-14 03:50:49 UTC
confirm this is a freetype-2.1.9 issue
applying the freetype-2.1.9, which was
posted by Dick Marinus, works with both
mozilla-1.7.2 and mozilla-firefox-0.9.3-r1
and appears to have solved the compile problem.
hth
Comment 13 Aron Griffis (RETIRED) gentoo-dev 2004-08-21 18:08:18 UTC
*** Bug 60222 has been marked as a duplicate of this bug. ***
Comment 14 Martin Mokrejš 2004-09-17 15:10:52 UTC
I have successfully used mozilla-firefox-0.9.3-freetype-2.1.9.patch to build mozilla-1.7.2-r1 on my system using freetype-2.1.9.
Comment 15 Loren Enders 2004-09-17 18:56:48 UTC
Successfully compiled Mozilla 1.7.3, Firefox 1.0_pre, and Thunderbird 0.8 with the freetype-2.1.9 patch.  (Only thing that bombed out was the SVG on Mozilla which is known.)
Comment 16 Seemant Kulleen (RETIRED) gentoo-dev 2004-10-29 20:40:59 UTC
*** Bug 66706 has been marked as a duplicate of this bug. ***
Comment 17 Dice Random 2004-10-30 19:02:28 UTC
This patch fixed my problems building mozilla-firefox-1.0_rc1 with freetype-2.1.9
Comment 18 Bernd Wurst 2004-11-10 22:27:22 UTC
This issue isn't new, right? It's also a working fix for all newer versions of mozilla-firefox...
So why couldn't this be included in CVS? I think the "firefox-1.0 mania" will run many users into this problem.
Comment 19 foser (RETIRED) gentoo-dev 2004-11-12 09:45:13 UTC
can the mozilla team consider including this patch by default in mozilla based ebuilds ? This is the showstopper for considering the newer freetype's stable.
Comment 20 Aron Griffis (RETIRED) gentoo-dev 2004-11-13 18:44:24 UTC
foser, we'll get this fixed, sorry for the holdup
Comment 21 Aron Griffis (RETIRED) gentoo-dev 2004-11-14 17:37:37 UTC
*** Bug 70636 has been marked as a duplicate of this bug. ***
Comment 22 Aron Griffis (RETIRED) gentoo-dev 2004-11-15 12:48:22 UTC
firefox-1.0-r3 is in portage with the patch from https://bugzilla.mozilla.org/show_bug.cgi?id=234035#c65 modified to apply to version 1.0.  I've verified this provides binary compatibility between 2.1.5 and 2.1.9 and presumably versions in between.

Before the freetype pmask can be removed, we need to finish the following:

- check for application and functionality of the patch on mozilla and thunderbird.  If anybody is interested in testing this, you can try with the patch in mozilla's bugzilla referenced above, or you can try with my modified version that might apply more easily.  My version is at net-www/mozilla-firefox/files/mozilla-firefox-1.0-4ft2.patch

- I think the only way to set up a sane dependency is for freetype-2.1.9 to RDEPEND="!<net-www/mozilla-firefox-1.0-r3 ..." to prevent anybody from updating freetype without updating firefox as well.  We'll have to add lines for the other mozilla components that are affected as well.
Comment 23 Ernst Sjöstrand 2004-11-15 15:38:38 UTC
Thought I'd mention this.

https://bugzilla.mozilla.org/show_bug.cgi?id=180309

Oh, there's a patch for it now, didn't know. Apply?
Comment 24 Aron Griffis (RETIRED) gentoo-dev 2004-11-18 06:07:40 UTC
Patch is now applied to mozilla-1.7.3-r3 and mozilla-thunderbird-0.9-r3.  I'll follow up here with a list of next steps this afternoon.
Comment 25 Aron Griffis (RETIRED) gentoo-dev 2004-11-18 06:15:11 UTC
*** Bug 62958 has been marked as a duplicate of this bug. ***
Comment 26 Aron Griffis (RETIRED) gentoo-dev 2004-11-18 06:16:36 UTC
*** Bug 70743 has been marked as a duplicate of this bug. ***
Comment 27 Aron Griffis (RETIRED) gentoo-dev 2004-11-18 06:33:41 UTC
Ok, I added to freetype-2.1.9 to ensure that installed moz/ff/tb has the binary compatibility patch:

RDEPEND="${DEPEND}
        !<net-www/mozilla-1.7.3-r3
        !<net-www/mozilla-firefox-1.0-r3
        !<net-www/mozilla-thunderbird-0.9-r3"

Assuming that the only remaining blocker was the mozilla ebuilds, we can remove the freetype-2.1.9 package mask now.  HOWEVER it can't go arch-stable until the above listed ebuilds go stable first, otherwise we'll have a lot of frustrated users...

Foser, you want to handle removing the freetype-2.1.9 pmask?  In a few days we can pursue marking the moz ebuilds stable.
Comment 28 Mike Gardiner (RETIRED) gentoo-dev 2004-12-20 23:21:18 UTC
Aron, this is fixed now isn't it? We'll defer back to the tracker (bug 49494) for the final unmasking of freetype-2.1.9.