gcc -c -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -march=athlon-tbird -funroll-loops -pipe -DVERSION=\"1.21\" -DXS_VERSION=\"1.21\" -fPIC "-I../.." IO.c IO.xs: In function `XS_IO__Poll__poll': IO.xs:239: error: invalid application of `sizeof' to an incomplete type IO.xs:243: error: invalid use of undefined type `struct pollfd' IO.xs:243: error: dereferencing pointer to incomplete type IO.xs:245: error: invalid use of undefined type `struct pollfd' IO.xs:245: error: dereferencing pointer to incomplete type IO.xs:247: error: invalid use of undefined type `struct pollfd' IO.xs:247: error: dereferencing pointer to incomplete type IO.xs:251: error: invalid use of undefined type `struct pollfd' IO.xs:251: error: dereferencing pointer to incomplete type IO.xs:252: error: invalid use of undefined type `struct pollfd' IO.xs:252: error: dereferencing pointer to incomplete type make[1]: *** [IO.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/perl-5.8.5-r5/work/perl-5.8.5/ext/IO' make: *** [lib/auto/IO/IO.so] Error 2 !!! ERROR: dev-lang/perl-5.8.5-r5 failed. # emerge info Portage 2.0.51.19 (default-linux/x86/2005.0/2.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.29+skas3-bs1+swsusp-2.1.5.7D i686) ================================================================= System uname: 2.4.29+skas3-bs1+swsusp-2.1.5.7D i686 mobile AMD Athlon (tm) 2000+ Gentoo Base System version 1.4.3.13 Python: dev-lang/python-2.3.3,dev-lang/python-2.2.3-r1 [2.3.3 (#1, Mar 25 2004, 03:59:05)] dev-lang/python: 2.3.3, 2.2.3-r1 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.5, 1.7.9-r1, 1.4_p6, 1.6.3, 1.8.5-r3, 1.9.4 sys-devel/binutils: 2.14.90.0.7-r4 sys-devel/libtool: 1.4.3-r4 virtual/os-headers: 2.4.19-r1, 2.4.21-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=athlon-tbird -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=athlon-tbird -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/etc/portage-overlay" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage http://distfiles.gentoo.org/distfiles" USE="x86 3dnow Xaw3d aalib acl acpi alsa apache2 apm avi berkdb bitmap-fonts bonobo cdr crypt cscope curl dba dga directfb doc dvd emacs-w3 emboss encode evo f77 fam fbcon flac fortran gb gd gdbm ggi gif gnome gpm gstreamer gtk gtkhtml guile imagemagick imlib innodb ipv6 jack java jikes jpeg kde lcms ldap leim libg++ libgda libwww mad maildir matrox mbox mcal memlimit mikmod mmx motif mp3 mpeg mpi mule mysql ncurses nls nocd ogg oggvorbis opengl oss pam pcmcia pdflib perl plotutils png pnp prelude python qt quicktime readline ruby samba sasl sdl slang spell ssl svga tcltk tcpd tetex tiff truetype truetype-fonts trusted type1-fonts usb videos vorbis wavelan wmf wxwindows xface xml xml2 xmms xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
/etc/profile.local.after:export CPATH="/home/$USER/root/include:$CPATH" obviously breaks on CPATH="" sometimes ...