On emerging graphviz-1.12-r1 the ebuild fails during configure phase. Reproducible: Always Steps to Reproduce: 1. emerge graphviz Actual Results: checking expat.h usability... yes checking expat.h presence... yes checking for expat.h... yes checking for main in -lexpat... yes ./configure: line 24753: syntax error near unexpected token `GRAPHVIZ_CAIRO,' ./configure: line 24753: ` PKG_CHECK_MODULES(GRAPHVIZ_CAIRO, cairo >= 0.1. 8)' !!! ERROR: media-gfx/graphviz-1.12-r1 failed. !!! Function econf, Line 362, Exitcode 2 !!! econf failed Expected Results: Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.4.20040619-r0, 2.4. 26) ================================================================= System uname: 2.4.26 i686 Intel(R) Celeron(R) CPU 2.00GHz Gentoo Base System version 1.5.0 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /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 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://gentoo. oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="apache2 berkdb crypt curl doc emacs f77 flash gd gdbm gif imap ipv6 java jpeg ldap libwww lzw-tiff maildir mailwrapper mcal mysql ncurses nls pam pdflib perl png pwdb python readline sasl slp spell ssl tetex threads tiff truetype vhosts x86 xml xml2 zlib"
I don't have cairo installed, and configure passes this point without any problems for me. So the problem must reside elsewhere
I don't have cairo installed neigher, and it compiles fine here too.
Sorry, you are right. I did misunderstand the error message and assumed it was the missing cairo package. But actually econf fails because of the undefined function PKG_CHECK_MODULES. This m4-function is defined in the "pkgconfig" package. After "emerge pkgconfig" I had no problem running "emerge graphviz". So I assume the ebuild is lacking the dependency on pkgconfig.
I just had the same results with a new ~x86 install; manually emerging pkgconfig fixed it.
fixed in cvs.