I tried to: # emerge lilypond (for Rosegarden) but it fails when building fontforge, with the error below. media-gfx/fontforge-20090408 I have searched my disc for the cairo-xlib.h-file, but it doesn't exist. I tried to: #emerge emerge x11-libs/cairo but that did not help either. Reproducible: Always Steps to Reproduce: 1.emerge lilypond 2. 3. Actual Results: In file included from fontP.h:109, from gdrawtxt.c:30: gxdrawP.h:83:32: error: cairo/cairo-xlib.h: No such file or directory gcc -march=c3-2 -msse -mmmx -mfpmath=sse -O2 -pipe -fomit-frame-pointer -I/usr/include/freetype2/ -I/usr/include/fr eetype2 -I/usr/include/libxml2/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/gli b-2.0/include -I/usr/include/python2.4 -I../inc -I../inc -I/usr/pkg/include -I/usr/pkg/include/giflib -Wmissing-prot otypes -Wunused -Wimplicit -Wreturn-type -Wparentheses -Wformat -Wchar-subscripts -DNOTHREADS -DHAVE_CONFIG_H -DLIBD IR=\"/usr/lib\" -c gdrawtxtinit.c -fPIC -DPIC -o .libs/gdrawtxtinit.o In file included from fontP.h:109, from gdrawtxtinit.c:27: gxdrawP.h:83:32: error: cairo/cairo-xlib.h: No such file or directory make[1]: *** [gdrawtxt.lo] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: *** [gdrawtxtinit.lo] Error 1 make[1]: Leaving directory `/var/tmp/portage/media-gfx/fontforge-20090408/work/fontforge-20090408/gdraw' make: *** [libgdraw] Error 2 * * ERROR: media-gfx/fontforge-20090408 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2150: Called _eapi2_src_compile * ebuild.sh, line 643: Called die * The specific snippet of code: * emake || die "emake failed" * The die message: * emake failed
Possible quick fix: USE="X" emerge -1 cairo pango Potential real fix: fontforge-20090408.ebuild is missing at least two (maybe more?) dependencies related to X USE flag use in other packages: media-gfx/cairo[X] (maybe even [X=] to match the flags?) x11-libs/pango[X] (maybe even [X=] to match the flags?) If those packages are not emerged with USE="X" enabled, they won't install all of their headers, especially the X-related ones like cairo-xlib.h and pangoxft.h.
(In reply to comment #1) > Possible quick fix: > USE="X" emerge -1 cairo pango The quick fix worked ! Perfect ! Thank you !
+*fontforge-20090408-r1 (21 Apr 2009) + + 21 Apr 2009; Peter Alfredsen <loki_val@gentoo.org> + +fontforge-20090408-r1.ebuild: + Provide pango and cairo use-flags and deps, bug 266868. +