When compiling Firefox 1.5 RC1, I get a compilation error, despite having both cairo and pango installed. Reproducible: Always Steps to Reproduce: 1. unmask mozilla-firefox-1.5_rc1 2. emerge mozilla-firefox 3. Actual Results: Compile failed (see add'l info) Expected Results: Compile successfully nsRegionGTK2.cpp i686-pc-linux-gnu-g++ -o nsRegionGTK2.o -c -DNATIVE_THEME_SUPPORT -DMOZILLA_INTERNAL_API -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -DBUILD_ID=2005110409 -DUSE_POSTSCRIPT -I../.. -I./. -I./.. -I./../shared -I./../x11shared -I/usr/include/freetype2 -I/usr/include/freetype2/config -I../../../dist/include/xpcom -I../../../dist/include/string -I../../../dist/include/widget -I../../../dist/include/view -I../../../dist/include/util -I../../../dist/include/pref -I../../../dist/include/uconv -I../../../dist/include/unicharutil -I../../../dist/include/locale -I../../../dist/include/necko -I../../../dist/include/content -I../../../dist/include/layout -I../../../dist/include/gfx -I../../../dist/include -I../../../dist/include/nspr -I../../../dist/sdk/include -fPIC -DGENTOO_NSPLUGINS_DIR=\"/usr/lib/nsplugins\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\"/usr/lib/nsbrowser/plugins\" -fno-rtti -fno-handle-exceptions -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -pipe -mcpu=i686 -march=pentium4 -Wno-deprecated -Wno-return-type -w -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -ffunction-sections -O2 -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DGENTOO_NSPLUGINS_DIR=\"/usr/lib/nsplugins\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\"/usr/lib/nsbrowser/plugins\" -DMOZILLA_CLIENT -include ../../../mozilla-config.h -Wp,-MD,.deps/nsRegionGTK2.pp nsRegionGTK2.cpp In file included from mozilla-decoder.cpp:43: /usr/include/pango-1.0/pango/pangocairo.h:28:19: cairo.h: No such file or directory In file included from mozilla-decoder.cpp:43: /usr/include/pango-1.0/pango/pangocairo.h:62: error: `cairo_t' was not declared in this scope /usr/include/pango-1.0/pango/pangocairo.h:62: error: `cr' was not declared in this scope /usr/include/pango-1.0/pango/pangocairo.h:63: error: syntax error before `*' token /usr/include/pango-1.0/pango/pangocairo.h:66: error: syntax error before `*' token /usr/include/pango-1.0/pango/pangocairo.h:67: error: syntax error before `*' token /usr/include/pango-1.0/pango/pangocairo.h:75: error: `cairo_t' was not declared in this scope /usr/include/pango-1.0/pango/pangocairo.h:75: error: `cr' was not declared in this scope /usr/include/pango-1.0/pango/pangocairo.h:76: error: `cairo_t' was not declared in this scope /usr/include/pango-1.0/pango/pangocairo.h:76: error: `cr' was not declared in this scope /usr/include/pango-1.0/pango/pangocairo.h:77: error: syntax error before `*' token /usr/include/pango-1.0/pango/pangocairo.h:82: error: `cairo_t' was not declared in this scope /usr/include/pango-1.0/pango/pangocairo.h:82: error: `cr' was not declared in this scope /usr/include/pango-1.0/pango/pangocairo.h:83: error: syntax error before `*' token /usr/include/pango-1.0/pango/pangocairo.h:85: error: `cairo_t' was not declared in this scope /usr/include/pango-1.0/pango/pangocairo.h:85: error: `cr' was not declared in this scope /usr/include/pango-1.0/pango/pangocairo.h:86: error: syntax error before `*' token /usr/include/pango-1.0/pango/pangocairo.h:87: error: `cairo_t' was not declared in this scope /usr/include/pango-1.0/pango/pangocairo.h:87: error: `cr' was not declared in this scope /usr/include/pango-1.0/pango/pangocairo.h:88: error: syntax error before `*' token /usr/include/pango-1.0/pango/pangocairo.h:93: error: `cairo_t' was not declared in this scope /usr/include/pango-1.0/pango/pangocairo.h:93: error: `cr' was not declared in this scope /usr/include/pango-1.0/pango/pangocairo.h:94: error: syntax error before `*' token /usr/include/pango-1.0/pango/pangocairo.h:96: error: `cairo_t' was not declared in this scope /usr/include/pango-1.0/pango/pangocairo.h:96: error: `cr' was not declared in this scope /usr/include/pango-1.0/pango/pangocairo.h:97: error: syntax error before `*' token /usr/include/pango-1.0/pango/pangocairo.h:98: error: `cairo_t' was not declared in this scope /usr/include/pango-1.0/pango/pangocairo.h:98: error: `cr' was not declared in this scope /usr/include/pango-1.0/pango/pangocairo.h:99: error: syntax error before `*' token nsNativeThemeGTK.cpp i686-pc-linux-gnu-g++ -o nsNativeThemeGTK.o -c -DNATIVE_THEME_SUPPORT -DMOZILLA_INTERNAL_API -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -DBUILD_ID=2005110409 -DUSE_POSTSCRIPT -I../.. -I./. -I./.. -I./../shared -I./../x11shared -I/usr/include/freetype2 -I/usr/include/freetype2/config -I../../../dist/include/xpcom -I../../../dist/include/string -I../../../dist/include/widget -I../../../dist/include/view -I../../../dist/include/util -I../../../dist/include/pref -I../../../dist/include/uconv -I../../../dist/include/unicharutil -I../../../dist/include/locale -I../../../dist/include/necko -I../../../dist/include/content -I../../../dist/include/layout -I../../../dist/include/gfx -I../../../dist/include -I../../../dist/include/nspr -I../../../dist/sdk/include -fPIC -DGENTOO_NSPLUGINS_DIR=\"/usr/lib/nsplugins\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\"/usr/lib/nsbrowser/plugins\" -fno-rtti -fno-handle-exceptions -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -pipe -mcpu=i686 -march=pentium4 -Wno-deprecated -Wno-return-type -w -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -ffunction-sections -O2 -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DGENTOO_NSPLUGINS_DIR=\"/usr/lib/nsplugins\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\"/usr/lib/nsbrowser/plugins\" -DMOZILLA_CLIENT -include ../../../mozilla-config.h -Wp,-MD,.deps/nsNativeThemeGTK.pp nsNativeThemeGTK.cpp gmake[4]: *** [mozilla-decoder.o] Error 1 gmake[4]: *** Waiting for unfinished jobs.... gmake[4]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.5_rc1/work/mozilla/gfx/src/gtk' gmake[3]: *** [libs] Error 2 gmake[3]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.5_rc1/work/mozilla/gfx/src' gmake[2]: *** [libs] Error 2 gmake[2]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.5_rc1/work/mozilla/gfx' gmake[1]: *** [tier_9] Error 2 gmake[1]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.5_rc1/work/mozilla' make: *** [default] Error 2 !!! ERROR: www-client/mozilla-firefox-1.5_rc1 failed. !!! Function src_compile, Line 175, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. linux ~ # emerge search cairo Searching... [ Results for search key : cairo ] [ Applications found : 3 ] * dev-python/pycairo [ Masked ] Latest version available: 0.9.0 Latest version installed: [ Not Installed ] Size of downloaded files: 455 kB Homepage: http://cairographics.org/pycairo Description: Python wrapper for cairo vector graphics library License: || ( LGPL-2.1 MPL-1.1 ) * x11-libs/cairo Latest version available: 1.0.2 Latest version installed: 1.0.2 Size of downloaded files: 1,424 kB Homepage: http://cairographics.org/ Description: A vector graphics library with cross-device output support License: || ( LGPL-2.1 MPL-1.1 ) * x11-libs/libsvg-cairo Latest version available: 0.1.4 Latest version installed: [ Not Installed ] Size of downloaded files: 295 kB Homepage: http://xsvg.org/ Description: Render SVG content using cairo License: X11 linux ~ # locate cairo.h /usr/include/cairo/cairo.h /usr/include/pango-1.0/pango/pangocairo.h linux ~ # cd /var/tmp/portage/mozilla-firefox-1.5_rc1/ linux mozilla-firefox-1.5_rc1 # find . -name "cairo.h" ./work/mozilla/gfx/cairo/cairo/src/cairo.h Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r2, 2.6.14-ck1 i686) ================================================================= System uname: 2.6.14-ck1 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Gentoo Base System version 1.6.13 ccache version 2.4 [enabled] dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.20-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -pipe -mcpu=i686 -march=pentium4 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /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="-O3 -pipe -mcpu=i686 -march=pentium4 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig candy ccache distlocks fixpackages sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo http://mirrors.acm.cs.rpi.edu/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.mirrors.tds.net/gentoo" LANG="en_US" LC_ALL="en_US" LINGUAS="en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="x86 X aac aalib acpi alsa apm audiofile avi bash-completion berkdb bitmap-fonts bonobo cdparanoia cdr clisp cpudetection crypt cups curl directfb divx4linux dvd dvdr dvdread eds emboss encode esd f77 fam fbcon fbdev ffmpeg firefox flac font-server foomaticdb fortran gcj gd gdbm gif gimpprint glx gnome gpm gtk gtk2 i8x0 imagemagick imlib java jpeg junit kde kdeenablefinal kdexdeltas ldap libg++ libwww lirc mad mikmod mmx mmx2 mmxext mng motif mozcalendar mozilla mozsvg mp3 mpeg musicbrainz mysql nas ncurses nls nptl nvidia offensive ogg oggvorbis ooo-kde opengl oss pam pcre pda pdflib perl png ppds python qt quicktime readline real rtc ruby samba sdl slang speex spell sse sse2 ssl svg svga tcltk tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode userlocales visualization vorbis wifi win32codecs wmf xanim xfs xine xinerama xml xml2 xmms xprint xscreensaver xv xvid zlib linguas_en userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS
*** This bug has been marked as a duplicate of 109856 ***
I have it working after emerging latest gtk+-2.6.10 Hope this helps