Created attachment 284073 [details]
Fix pango with Qt 4.8.
Compiling pango with Qt 4.8 (beta1) makes pango unusable, since Qt's developers removed some of the internal API in the upcoming Qt 4.8 release that pango relies on.
This unusability manifests itself in errors like:
undefined reference to `qt_draw_glyphs(QPainter*, unsigned int const*, QPointF const*, int)'
with apps/libraries using pango (for example, I came across this while compiling cairo).
Here's the issue at freedesktop's bugtracker: https://bugs.freedesktop.org/show_bug.cgi?id=29092 , and comments 10-11 seem to be the most relevant ones.
I'm attaching the patch for Qt 4.8 compatibility from that issue here. It seems to fix the issue my installation, but it'd better be tested with older Qt versions like 4.7 and 4.6.
Oh, the patch is actually for cairo, I messed things up in the original report: every occurance of cairo should be replaced with pango, and vice versa.
Thanks for posting this, I confirm error (qt-*-4.8.9999 from qting-edge) + solution. In my case I noticed by several failing packages (oxygen, audacity and gparted), both built successfully after fixed cairo rebuild.
Correction. The patch makes the cairo qt backend unusable, the aforementionend applications that were rebuilt let X segfault.
audacity: starting it trows me back to kdm immediately (no error in dmesg but in X.log.
firefox (using oxygen-gtk): after a few seconds, kwin crashes, dmesg has the following output:
[ 57.640146] [drm:i915_hangcheck_elapsed] *ERROR* Hangcheck timer elapsed... GPU hung
[ 57.640156] [drm] capturing error event; look for more information in /debug/dri/0/i915_error_state
[ 57.647377] [drm:i915_wait_request] *ERROR* i915_wait_request returns -11 (awaiting 4730 at 4711, next 4737)
[ 58.149081] [drm:i915_reset] *ERROR* Failed to reset chip.
gparted: same as audacity
patched cairo ebuild in x11-overlay works.
*** Bug 395507 has been marked as a duplicate of this bug. ***
This is apparently fixed in x11-libs/cairo-1.10.2-r2
+*cairo-1.10.2-r2 (29 Jan 2012)
+ 29 Jan 2012; Alex Alexander <firstname.lastname@example.org> +cairo-1.10.2-r2.ebuild,
+ revbump with patch for Qt-4.8. bug #380013