Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75879 - >=freetype-2.1.9 breaks mozilla and every mozilla derived browser
Summary: >=freetype-2.1.9 breaks mozilla and every mozilla derived browser
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
: 71789 71809 75957 77905 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-12-27 22:49 UTC by George Kraev
Modified: 2005-03-23 18:48 UTC (History)
10 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description George Kraev 2004-12-27 22:49:17 UTC
If you have freetype-2.1.9 or freetype-2.1.9-r1 installed you will most likelly experience many problems with mozilla and it's derivatives. Your browser behavior ranges from unexplained crashes on certain pages to who knows what. Basically all browsers based on the gecko engine become unusable. There is a huge urge from many users to install a newer version of freetype because gimp-2.2 would not run with 2.1.5 and this is why many people have been complaning about the mozilla/firefox crashes and segmentation faults. I did a thorough testing of the issue since I was also affected by it and found out that freetype was actually responsible for the crashes. I am not very familiar with freetype but since a browser is one of the most used applications on any desktop this is major feature being broken and the problem should some how be addressed or at least explained. 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Mark R. Pariente 2004-12-28 08:21:52 UTC
This is being discussed in #71809 as well, I think the problem is the X.org 6.7 + freetype >2.1.5 combo. The best solution would be to add some sort of test to all gecko-based browser ebuilds to warn or block the merge if X.org 6.7 and Freetype >2.1.5 is installed.
Comment 2 George Kraev 2004-12-28 08:41:40 UTC
It is very possible that the bug is with xorg 6.7 + >freetype-2.1.5 because I also have xorg 6.7 installed. I can't really check if xorg has anything to do with this because my ati drivers do not work with xorg above 6.7.
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2004-12-28 09:18:33 UTC
it shouldn't -- there's patches in moz* to compile against 2.1.9.  You probably have to remerge them, that's all.  As of now, the only package which doesn't have that compatibility patch is gecko-sdk
Comment 4 George Kraev 2004-12-28 11:26:19 UTC
I don't know if there is a patch but if there is it most deffinitelly does not work. I have recompiled the software is any imaginable configuration and moz* with  freetype >2.1.5 does not work well at all.
Comment 5 George Kraev 2004-12-29 16:56:28 UTC
This is staring to be a major annoyance and if it doesn't get resolved there is no way that gimp 2.2 will ever work because every one will prefer to use an older version of gimp and a browser than just gimp. 
Anyway, I am rasing the severity because it is supposed to be critical. After all freetype causes mozilla to crash and that is pretty critical.
Comment 6 Mark R. Pariente 2004-12-30 00:47:03 UTC
Well, I disagree. The proper fix is to use X.org 6.8 in combination with Freetype >2.1.5. GIMP 2.0+ and Freetype 2.1.5+ should be blocked by X.org 6.7.
Comment 7 George Kraev 2004-12-30 09:16:07 UTC
xorg 6.8 is great and so is freetype > 2.1.5 (especially with the improvements in the rendering engine) however the ati drivers still do not work on xorg above 6.7 and therefore that is not really a solutino. ATI video cards are pretty large chunk of the boards out there so you can't just leave them out.
Comment 8 Stefan Briesenick (RETIRED) gentoo-dev 2005-01-04 09:54:48 UTC
it also breaks KDE Kcontrol font-installer!

http://www.freetype.org/pipermail/freetype/2004-September/007324.html

Comment 9 George Kraev 2005-01-04 10:41:38 UTC
None of the problems exist in 2.1.7 but it is not in portage. If it was then the problem with gimp 2.2.x will go away. It's probably not the best solution but it's a temporary one. I don't know if 2.1.7 works with KDE and I don't use KDE so I can't test it.
Comment 10 Carsten Lohrke (RETIRED) gentoo-dev 2005-01-13 16:05:05 UTC
*** Bug 77907 has been marked as a duplicate of this bug. ***
Comment 11 Carsten Lohrke (RETIRED) gentoo-dev 2005-01-13 16:07:06 UTC
*** Bug 77905 has been marked as a duplicate of this bug. ***
Comment 12 Mark D. 2005-01-13 16:47:08 UTC
I get this problem when I try to install mplayerplug-in (which requires gecko-sdk)
Comment 13 Mark D. 2005-01-24 18:30:28 UTC
Here's a workaround if you want to install gecko-sdk.

Add:
=media-libs/freetype-2.1.9-r1
to your /etc/portage/package.mask file. If it doesn't exist, make it.

Then:
emerge freetype net-libs/gecko-sdk -va
Comment 14 George Kraev 2005-01-24 20:09:26 UTC
masking a package is no solution to the problem. However as someone had mentioned the problem is not with freetype but rather the combination of freetype>= 2.1.7 and xorg 6.7. This should not be a problem anymore since ati-drivers now support xorg 6.8 and there is no reason why you should be runnig xorg 6.7. Xorg 6.8 and above works better and it is no supported under every video driver so I am closing this bug. If you are still having a problem your solution should be to updete your X server. 
Comment 15 Benjamin Collins 2005-01-25 05:56:41 UTC
No, I am running xorg-x11-6.8.1.902 and freetype-2.1.9-r1 and my build of gecko-sdk still fails.
Comment 16 Derek Dolney 2005-01-25 06:12:45 UTC
Unfortunately, many ATI users are still using Xorg 6.7 (myself included) because all of ATI's drivers after 3.2.8 suffer a memory leak in Neverwinter Nights. This game (possibly others) is unplayable for me using any driver after 3.2.8, including the new 8.8.25. I know from forums that other ATI users are also using 3.2.8. For now, we're still using Xorg 6.7.
Comment 17 George Kraev 2005-01-25 10:03:31 UTC
Yes apparently the gecko-sdk still does not include a patch for this issue. However, this bug was concering only the browsers and you should probably start a new bug for it. I can't believe it's been over a month and this is still not fixed. I am reopenning the bug because of this but it probably won't change anything. 

As far as the NeverWinter problem goes this has nothing to do with freetype2 or gentoo in particular. If you choose to run an old version of any software you shouldn't expect support for it. That's pretty much how all OSS works.
Comment 18 Mike Lothian 2005-01-30 09:51:30 UTC
If you use the patch from mozilla it should compile correctly (I'm even using 1.7.5)
Comment 19 Brad Laue (RETIRED) gentoo-dev 2005-02-26 15:39:29 UTC
X11 herd please advise. 

I'm leaning toward the idea of comment #6, and I don't think this is a purely mozilla issue.

Please take ownership of this if you agree.
Comment 20 Donnie Berkholz (RETIRED) gentoo-dev 2005-02-26 15:57:02 UTC
How could you get that combination, using either a straight stable or a straight ~arch system? The only clear way I can see is upgrading xorg to 6.8.2 to force a freetype upgrade, then downgrading it all the way to 6.7.0.

If you want a solution from our end, it'll be pulling 6.7.0 from the tree. I don't have the time to support weird crap, including the above situation. Binary driver users will just be out of luck until it gets fixed (it may be already in 8.10 for all I know).
Comment 21 Donnie Berkholz (RETIRED) gentoo-dev 2005-02-26 16:01:06 UTC
As an additional note, 6.7.0 would be getting pulled soon anyway, because it's subject to a security vulnerability.
Comment 22 Martin Mokrejš 2005-03-06 14:48:49 UTC
FYI: https://bugzilla.mozilla.org/show_bug.cgi?id=234035
Comment 23 Florian D. 2005-03-17 08:01:53 UTC
All these bugs 
http://bugs.gentoo.org/show_bug.cgi?id=71809
http://bugs.gentoo.org/show_bug.cgi?id=75957
http://bugs.gentoo.org/show_bug.cgi?id=71789
seem to be related with this one. Should they be marked as duplicates?

Anyway, now firefox-1.0.1 + freetype-2.1.9-r1 is running stable again(x86_64) without being root. Alas, I cannot tell which packages were involved during the last emerge sync && emerge -aDu world
Comment 24 p cooper 2005-03-20 13:26:31 UTC
as part of looking at emerge -u world  I couldnt emerge -u mozilla-firefox to 1.0.1 which was blocked by freetype. Unmerging mozilla and  updating freetype caused Konqueror to stop working (just got a 'unknown page' message). 

ie freetype-2.1.9 stops firefox 1.0.1 emerging here 

In file included from /usr/X11R6/include/X11/Xft/Xft.h:35,
                 from nsDeviceContextGTK.cpp:78:
/usr/include/freetype2/freetype/freetype.h:20:2: #error "`ft2build.h' hasn't been included yet!"
/usr/include/freetype2/freetype/freetype.h:21:2: #error "Please always use macros to include FreeType header files."
/usr/include/freetype2/freetype/freetype.h:22:2: #error "Example:"
/usr/include/freetype2/freetype/freetype.h:23:2: #error "  #include <ft2build.h>"
/usr/include/freetype2/freetype/freetype.h:24:2: #error "  #include FT_FREETYPE_H"
gmake[4]: *** [nsDeviceContextGTK.o] Error 1
gmake[4]: *** Waiting for unfinished jobs....
gmake[4]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.0.1/work/mozilla/gfx/src/gtk'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.0.1/work/mozilla/gfx/src'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.0.1/work/mozilla/gfx'
gmake[1]: *** [tier_9] Error 2
gmake[1]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.0.1/work/mozilla'
make: *** [default] Error 2

!!! ERROR: net-www/mozilla-firefox-1.0.1 failed.
!!! Function src_compile, Line 108, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.
Comment 25 foser (RETIRED) gentoo-dev 2005-03-21 07:50:42 UTC
@comment 24 : Either your X is too old or you got stale files around. Your problem is not really related to this bug & is discussed in other bugs (search).
Comment 26 Aron Griffis (RETIRED) gentoo-dev 2005-03-23 18:33:26 UTC
*** Bug 71789 has been marked as a duplicate of this bug. ***
Comment 27 Aron Griffis (RETIRED) gentoo-dev 2005-03-23 18:34:32 UTC
*** Bug 75957 has been marked as a duplicate of this bug. ***
Comment 28 Aron Griffis (RETIRED) gentoo-dev 2005-03-23 18:39:13 UTC
*** Bug 71809 has been marked as a duplicate of this bug. ***
Comment 29 Aron Griffis (RETIRED) gentoo-dev 2005-03-23 18:48:46 UTC
I believe this issue is completely fixed with the combination of the latest mozilla, firefox, xorg-x11 and freetype ebuilds.  Please re-open only if you're *certain* you're still seeing this bug with the most recent versions.