I am seeing this issue. For me it fails with or without distcc, here is what I see with distcc on: i686-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -I. -I. -I.. -Os -march=pentium-m -fomit-frame-pointer -pipe -c gtkglarea.c -MT gtkglarea.lo -MD -MP -MF .deps/gtkglarea.TPlo -fPIC -DPIC -o .libs/gtkglarea.lo distcc[16913] ERROR: compile (null) on localhost failed distcc[16926] ERROR: compile (null) on localhost failed In file included from gdkgl.c:20: gdkgl.h:22:18: error: glib.h: No such file or directory gdkgl.h:31:21: error: gdk/gdk.h: No such file or directory gdkgl.c:22:22: error: gdk/gdkx.h: No such file or directory In file included from gtkglarea.c:19: gdkgl.h:22:18: error: glib.h: No such file or directory gdkgl.h:31:21: error: gdk/gdk.h: No such file or directory In file included from gtkglarea.c:20: gtkglarea.h:25:32: error: gtk/gtkdrawingarea.h: No such file or directory distcc[16912] ERROR: compile gdkgl.c on 192.168.1.10/1 failed make[1]: *** [gdkgl.lo] Error 1 make[1]: *** Waiting for unfinished jobs.... distcc[16925] ERROR: compile gtkglarea.c on 192.168.1.2/2 failed make[1]: *** [gtkglarea.lo] Error 1 make[1]: Leaving directory `/var/tmp/portage/gtkglarea-1.99.0/work/gtkglarea-1.99.0/gtkgl' make: *** [all-recursive] Error 1 And without distcc: i686-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -I. -I. -I.. -Os -march=pentium-m -fomit-frame-pointer -pipe -c gdkgl.c -MT gdkgl.lo -MD -MP -MF .deps/gdkgl.TPlo -fPIC -DPIC -o .libs/gdkgl.lo In file included from gdkgl.c:20: gdkgl.h:22:18: error: glib.h: No such file or directory gdkgl.h:31:21: error: gdk/gdk.h: No such file or directory In file included from gdkgl.c:20: gdkgl.h:77: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gdk_gl_query' gdkgl.h:78: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token gdkgl.h:80: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token gdkgl.h:81: error: expected ')' before '*' token gdkgl.h:83: error: expected ')' before '*' token gdkgl.h:84: error: expected ')' before '*' token gdkgl.h:85: error: expected declaration specifiers or '...' before 'gint' gdkgl.h:90: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gdk_gl_make_current' gdkgl.h:91: error: expected ')' before '*' token gdkgl.h:102: error: expected ')' before '*' token gdkgl.h:106: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gdk_gl_pixmap_make_current' gdkgl.h:110: error: expected ')' before '*' token gdkgl.c:22:22: error: gdk/gdkx.h: No such file or directory rm -f .libs/gtkglarea.lo i686-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -I. -I. -I.. -Os -march=pentium-m -fomit-frame-pointer -pipe -c gtkglarea.c -MT gtkglarea.lo -MD -MP -MF .deps/gtkglarea.TPlo -fPIC -DPIC -o .libs/gtkglarea.lo gdkgl.c:30: error: expected ')' before '*' token gdkgl.c:59: error: expected specifier-qualifier-list before 'guint' gdkgl.c:65: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gdk_gl_query' gdkgl.c:71: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token gdkgl.c:82: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token gdkgl.c:100: error: expected ')' before '*' token gdkgl.c:122: error: expected ')' before '*' token gdkgl.c:128: error: expected ')' before '*' token gdkgl.c:158: error: expected declaration specifiers or '...' before 'gint' gdkgl.c: In function 'gdk_gl_context_attrlist_share_new': gdkgl.c:160: error: 'GdkVisual' undeclared (first use in this function) gdkgl.c:160: error: (Each undeclared identifier is reported only once gdkgl.c:160: error: for each function it appears in.) gdkgl.c:160: error: 'visual' undeclared (first use in this function) gdkgl.c:162: error: 'direct' undeclared (first use in this function) gdkgl.c:162: warning: return makes pointer from integer without a cast gdkgl.c: In function 'gdk_gl_context_ref': gdkgl.c:172: error: 'GdkGLContextPrivate' has no member named 'ref_count' gdkgl.c: In function 'gdk_gl_context_unref': gdkgl.c:183: error: 'GdkGLContextPrivate' has no member named 'ref_count' gdkgl.c:185: error: 'GdkGLContextPrivate' has no member named 'ref_count' gdkgl.c: At top level: gdkgl.c:198: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gdk_gl_make_current' gdkgl.c:217: error: expected ')' before '*' token gdkgl.c:240: error: expected specifier-qualifier-list before 'GdkPixmap' gdkgl.c:247: error: expected ')' before '*' token gdkgl.c: In function 'gdk_gl_pixmap_ref': gdkgl.c:291: error: 'GdkGLPixmapPrivate' has no member named 'ref_count' gdkgl.c: In function 'gdk_gl_pixmap_unref': gdkgl.c:302: error: 'GdkGLPixmapPrivate' has no member named 'ref_count' gdkgl.c:304: error: 'GdkGLPixmapPrivate' has no member named 'ref_count' gdkgl.c:310: error: 'GdkGLPixmapPrivate' has no member named 'front_left' gdkgl.c: At top level: gdkgl.c:317: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gdk_gl_pixmap_make_current' gdkgl.c:334: error: expected ')' before '*' token make[1]: *** [gdkgl.lo] Error 1 make[1]: *** Waiting for unfinished jobs.... In file included from gtkglarea.c:19: gdkgl.h:22:18: error: glib.h: No such file or directory gdkgl.h:31:21: error: gdk/gdk.h: No such file or directory In file included from gtkglarea.c:19: gdkgl.h:77: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gdk_gl_query' gdkgl.h:78: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token gdkgl.h:80: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token gdkgl.h:81: error: expected ')' before '*' token gdkgl.h:83: error: expected ')' before '*' token gdkgl.h:84: error: expected ')' before '*' token gdkgl.h:85: error: expected declaration specifiers or '...' before 'gint' gdkgl.h:90: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gdk_gl_make_current' gdkgl.h:91: error: expected ')' before '*' token gdkgl.h:102: error: expected ')' before '*' token gdkgl.h:106: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gdk_gl_pixmap_make_current' gdkgl.h:110: error: expected ')' before '*' token In file included from gtkglarea.c:20: gtkglarea.h:25:32: error: gtk/gtkdrawingarea.h: No such file or directory In file included from gtkglarea.c:20: gtkglarea.h:46: error: expected specifier-qualifier-list before 'GtkDrawingArea' gtkglarea.h:52: error: expected specifier-qualifier-list before 'GtkDrawingAreaClass' gtkglarea.h:55: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gtk_gl_area_get_type' gtkglarea.h:56: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token gtkglarea.h:57: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token gtkglarea.h:59: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token gtkglarea.h:63: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gtk_gl_area_make_current' gtkglarea.h:65: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gtk_gl_area_begingl' gtkglarea.h:72: error: expected declaration specifiers or '...' before 'gint' gtkglarea.h:73: error: expected declaration specifiers or '...' before 'gint' gtkglarea.c:26: error: expected ')' before '*' token gtkglarea.c:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token gtkglarea.c:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gtk_gl_area_get_type' gtkglarea.c: In function 'gtk_gl_area_class_init': gtkglarea.c:61: error: 'GtkObjectClass' undeclared (first use in this function) gtkglarea.c:61: error: (Each undeclared identifier is reported only once gtkglarea.c:61: error: for each function it appears in.) gtkglarea.c:61: error: 'object_class' undeclared (first use in this function) gtkglarea.c:63: error: 'parent_class' undeclared (first use in this function) gtkglarea.c:64: error: expected expression before ')' token gtkglarea.c:66: error: 'gtk_gl_area_destroy' undeclared (first use in this function) gtkglarea.c: In function 'gtk_gl_area_init': gtkglarea.c:73: error: 'GtkGLArea' has no member named 'glcontext' gtkglarea.c:74: error: 'FALSE' undeclared (first use in this function) gtkglarea.c: At top level: gtkglarea.c:79: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token gtkglarea.c:108: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token gtkglarea.c:114: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token gtkglarea.c:166: error: expected ')' before '*' token gtkglarea.c:185: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gtk_gl_area_make_current' gtkglarea.c:195: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gtk_gl_area_begingl' gtkglarea.c: In function 'gtk_gl_area_swap_buffers': gtkglarea.c:219: error: invalid type argument of '->' gtkglarea.c: At top level: gtkglarea.c:222: error: expected declaration specifiers or '...' before 'gint' gtkglarea.c:222: error: expected declaration specifiers or '...' before 'gint' gtkglarea.c: In function 'gtk_gl_area_size': gtkglarea.c:227: error: 'width' undeclared (first use in this function) gtkglarea.c:227: error: 'height' undeclared (first use in this function) make[1]: *** [gtkglarea.lo] Error 1 make[1]: Leaving directory `/var/tmp/portage/gtkglarea-1.99.0/work/gtkglarea-1.99.0/gtkgl' make: *** [all-recursive] Error 1 There are two systems in this distcc setup 'lappie', the system I am trying to merge on. Note that I am using gcc-4.1.1, so I am not sure why emerge --info reports 3.4.6. gcc --version and gcc-config -c both confirm I am using 4.1.1. Portage 2.1.2_pre1-r1 (default-linux/x86/2006.1/desktop, gcc-3.4.6/vanilla, glibc-2.4-r3, 2.6.18-ifc i686) ================================================================= System uname: 2.6.18-ifc i686 Intel(R) Pentium(R) M processor 1.86GHz Gentoo Base System version 1.12.5 Last Sync: Sun, 24 Sep 2006 20:20:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] app-admin/eselect-compiler: 2.0.0_rc2-r1 dev-java/java-config: 1.2.11-r1 dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-Os -march=pentium-m -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /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/" CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-Os -march=pentium-m -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distcc distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.mirrors.tds.net/gentoo http://mirror.datapipe.net/gentoo" LINGUAS="en" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://156.56.247.193/gentoo-portage" USE="x86 3dnow X a52 alsa berkdb bitmap-fonts bzip2 cairo cdr chroot cli crypt dbus dlloader dri dv dvd dvdr dvdread eds elibc_glibc emboss encode fam ffmpeg firefox flac fortran gdbm gif gpm gstreamer gtk gtk2 hal input_devices_keyboard input_devices_mouse input_devices_synaptics isdnlog jpeg kde kdeenablefinal kernel_linux ldap libg++ linguas_en mad mikmod mmx mp3 mpeg ncurses network nls nptl nptlonly ogg opengl oss pam pcre pdflib perl png ppds pppd pwdb python qt3 qt4 quicktime readline reflection sdl session spell spl sse ssl svg theora tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_ati video_cards_fglrx video_cards_radeon vorbis win32codecs xml xml2 xmms xorg xv xvid zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS And "fire-eyes": Portage 2.1.2_pre1-r1 (default-linux/x86/2006.1/desktop, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17.13-reiser4-3 i686) ================================================================= System uname: 2.6.17.13-reiser4-3 i686 AMD Athlon(TM) XP 1800+ Gentoo Base System version 1.12.5 Last Sync: Sun, 24 Sep 2006 19:50:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] app-admin/eselect-compiler: 2.0.0_rc2-r1 dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.3.5, 2.4.3-r3 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r6 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=athlon-xp -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.mirrors.tds.net/gentoo http://mirror.datapipe.net/gentoo" LINGUAS="en" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://156.56.247.193/gentoo-portage" USE="x86 3dnow X alsa am berkdb bitmap-fonts bzip2 cairo cdr chroot cli crypt dbus dlloader dri dv dvd dvdr eds elibc_glibc emboss encode fam firefox fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal input_devices_keyboard input_devices_mouse isdnlog jpeg kde kdeenablefinal kernel_linux libg++ linguas_en mad mikmod mmx mp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis opengl oss pam pcre pdflib perl png ppds pppd pwdb python qt3 qt4 quicktime readline reflection sdl session spell spl sse ssl tiff truetype truetype-fonts type1-fonts udev unicode userland_GNU video_cards_nv vorbis win32codecs xml xmms xorg xv zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS