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)
What version of freetype do you have installed?
freetype 2.1.9 hth
could you please provide emerge --info
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"
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.
must be the freetype version >= 2.16 then do you want me to give a try with freetype 2.15? hth
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!
Imad, sure, if you would try a couple versions of freetype, that would be great.
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?
Created attachment 37341 [details] mozilla-firefox-0.9.3-r1.ebuild
Created attachment 37342 [details, diff] mozilla-firefox-0.9.3-freetype-2.1.9.patch
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
*** Bug 60222 has been marked as a duplicate of this bug. ***
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.
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.)
*** Bug 66706 has been marked as a duplicate of this bug. ***
This patch fixed my problems building mozilla-firefox-1.0_rc1 with freetype-2.1.9
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.
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.
foser, we'll get this fixed, sorry for the holdup
*** Bug 70636 has been marked as a duplicate of this bug. ***
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.
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?
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.
*** Bug 62958 has been marked as a duplicate of this bug. ***
*** Bug 70743 has been marked as a duplicate of this bug. ***
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.
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.