In portage, when you try to emerge gksu and don't have gtk-doc installed, you get this (last few lines): gtkdoc-scan --module=gksu --source-dir=../ --ignore-headers="defines.h pixmaps.h config.h" /bin/sh: gtkdoc-scan: command not found make[2]: *** [scan-build.stamp] Error 127 make[2]: Leaving directory `/var/tmp/portage/gksu-1.0.5/work/gksu-1.0.5/docs' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/gksu-1.0.5/work/gksu-1.0.5' make: *** [all] Error 2 !!! ERROR: x11-libs/gksu-1.0.5 failed. !!! Function src_compile, Line 30, Exitcode 2 !!! emake failed !!! If you need support, post the topmost build error, NOT this status message. Emerging gtk-doc first seems to fix this, but shouldn't gksu depend on it if it's required for building? (USE="-doc", which I tried on a whim, didn't help either.) My emerge --info: mike@thiscomputer ~ $ emerge --info Password: Portage 2.0.54 (default-linux/x86/no-nptl, gcc-3.4.4, glibc-2.3.5-r2, 2.6.16-gentoo-r3 i686) ================================================================= System uname: 2.6.16-gentoo-r3 i686 AMD Sempron(tm) Processor 3100+ Gentoo Base System version 1.6.14 dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 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.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i386-pc-linux-gnu" CFLAGS="-O3 -march=i686 -pipe" CHOST="i386-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/env.d" CXXFLAGS="-O3 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://ftp.gtlib.gatech.edu/pub/gentoo http://www.gtlib.gatech.edu/pub/gentoo http://open-systems.ufl.edu/mirrors/gentoo " MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="x86 X alsa apm arts audiofile avi berkdb bitmap-fonts bzip2 cdr cli crypt cups dri dvd dvdr eds emboss encode esd exif expat fam foomaticdb fortran gdbm gif glut gnome gpm gstreamer gtk gtk2 imlib ipv6 isdnlog jpeg lcms libg++ libwww mad mikmod mng motif mp3 mpeg ncurses nls ogg opengl oss pam pcre pdflib perl png pppd python quicktime readline reflection sdl session spell spl ssl tcpd tiff truetype truetype-fonts type1-fonts udev vorbis xml xml2 xmms xorg xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Thanks Mike - added dev-util/gtk-doc dependency to gksu-1.0.5. I probably should stablise a later version soon as 1.0.5 is over 2 years old.
Just realized that gtk-doc installed a few other dependencies also, so that may not be where it came from. But if you fixed it, who cares ;)