Emerge fails because it cannot locate some necessary header files and dynamic libraries. I fixed it by manually adding -I/usr/kde/3.5/include to CFLAGS and -L/usr/kde/3.5/lib to LDFLAGS in /etc/make.conf. I know that this is an improper fix. Reproducible: Always Steps to Reproduce: 1. emerge =x11-wm/compiz-0.6.2-r1 Actual Results: i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/qt/3/include -I -march=athlon-xp -O2 -pipe -fomit-frame-pointer -Wall -D_FORTIFY_SOURCE=2 -MT decorator.moc.o -MD -MP -MF .deps/decorator.moc.Tpo -c -o decorator.moc.o decorator.moc.cpp i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/qt/3/include -I -march=athlon-xp -O2 -pipe -fomit-frame-pointer -Wall -D_FORTIFY_SOURCE=2 -MT window.moc.o -MD -MP -MF .deps/window.moc.Tpo -c -o window.moc.o window.moc.cpp In file included from decorator.moc.cpp:11: decorator.h:27:26: error: kapplication.h: No such file or directory In file included from window.moc.cpp:11: window.h:27:27: error: kdecoration_p.h: No such file or directory decorator.h:35:21: error: fixx11h.h: No such file or directory decorator.h:36:21: error: kconfig.h: No such file or directory decorator.h:37:35: error: kdecoration_plugins_p.h: No such file or directory decorator.h:38:27: error: kdecoration_p.h: No such file or directory decorator.h:39:19: error: netwm.h: No such file or directory Portage 2.1.4 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.7-r1, 2.6.23-gentoo-r5 i686) ================================================================= System uname: 2.6.23-gentoo-r5 i686 AMD Athlon(TM) XP 2000+ Timestamp of tree: Sun, 13 Jan 2008 08:30:01 +0000 app-shells/bash: 3.2_p33 dev-lang/python: 2.4.4-r7, 2.5.1-r5 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.10-r5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/ftd4linux /usr/portage/local/layman/kde" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl acpi alsa arts berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kerberos ldap mad midi mikmod mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl ssl svg tcpd tiff truetype truetype-fonts type1-fonts unicode vorbis win32codecs x86 xml xorg xv zlib" ALSA_CARDS="cmipci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" FOO2ZJS_DEVICES="hp1018" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
This should work with compiz-0.7.8. If you're using -kdeprefix with kde-4.1.2 and have issues with compizconfig-backend-kconfig, move on to bug 243048 .