make[2]: Entering directory `/var/tmp/portage/libdts-0.0.2-r5/work/libdts-0.0.2/src' if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -Wall -pipe -O3 -fomit-frame-pointer -fvisibility=hidden -MT dtsdec.o -MD -MP -MF ".deps/dtsdec.Tpo" \ -c -o dtsdec.o `test -f 'dtsdec.c' || echo './'`dtsdec.c; \ then mv -f ".deps/dtsdec.Tpo" ".deps/dtsdec.Po"; \ else rm -f ".deps/dtsdec.Tpo"; exit 1; \ fi dtsdec.c: In function 'main': dtsdec.c:608: warning: implicit declaration of function 'setmode' dtsdec.c:608: error: 'O_BINARY' undeclared (first use in this function) dtsdec.c:608: error: (Each undeclared identifier is reported only once dtsdec.c:608: error: for each function it appears in.) make[2]: *** [dtsdec.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/libdts-0.0.2-r5/work/libdts-0.0.2/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/libdts-0.0.2-r5/work/libdts-0.0.2' make: *** [all] Error 2 !!! ERROR: media-libs/libdts-0.0.2-r5 failed. Call stack: ebuild.sh, line 1543: Called dyn_compile ebuild.sh, line 938: Called src_compile libdts-0.0.2-r5.ebuild, line 33: Called die !!! emake failed !!! If you need support, post the topmost build error, and the call stack if relevant. Portage 2.1.1_pre4-r2 (default-linux/amd64/2005.0, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.17.7 x86_64) ================================================================= System uname: 2.6.17.7 x86_64 unknown Gentoo Base System version 1.12.2 app-admin/eselect-compiler: 2.0.0_rc2-r1 dev-lang/python: 2.3.5, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 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: 2.0.0_rc1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.16 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer notitles sandbox sfperms strict userpriv" GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/ http://distfiles.gentoo.org" 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" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="amd64 X aac acpi alsa avi berkdb bitmap-fonts bzlib cdb cdr cli crypt cups dlloader dri dvb dvd dvdr eds emboss encode exif flac foomaticdb fortran ftp gif gmp gnome gpm gstreamer gtk gtk2 gtkhtml imlib ipv6 isdnlog jabber jpeg kde lzw lzw-tiff mad maildir mmap mozilla mp3 mpeg ncurses netboot nodrm nptl nptlonly offensive ogg oggvorbis opengl pam pcre pdflib png posix pppd qt qt3 qt4 quicktime readline reflection sdl session slang sockets speex spell spl ssl theora tiff truetype truetype-fonts type1-fonts usb xorg xpm xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
I have a /usr/local/include/io.h that appears to cause this.
(In reply to comment #1) > I have a /usr/local/include/io.h that appears to cause this. Gentoo never installs anything into /usr/local -> INVALID bug.