Emerging glibc-2.3.2-r9 fails as follows: gcc iofclose.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite- strings -freorder-blocks -march=athlon-xp -mcpu=athlon-xp -pipe -mpreferred- stack-boundary=2 -fexceptions -I../include -I. -I/var/tmp/portage/glibc- 2.3.2-r9/work/glibc-2.3.2/buildhere/libio -I.. -I../libio -I../nptl - I/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere - I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 - I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux - I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../nptl/sysdeps/unix/sysv - I../nptl/sysdeps/unix -I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 - I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu - I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet - I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 - I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu - I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 - I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 - I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 - I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf - I../sysdeps/generic -nostdinc -isystem /usr/lib/gcc-lib/i686-pc-linux- gnu/3.2.3/include -isystem /lib/modules/2.6.0-test9-mm2/build/include - D_LIBC_REENTRANT -D_LIBC_REENTRANT -include ../include/libc-symbols.h - D_IO_MTSAFE_IO -o /var/tmp/portage/glibc-2.3.2-r9/work/glibc- 2.3.2/buildhere/libio/iofclose.o -MD -MP -MF /var/tmp/portage/glibc-2.3.2- r9/work/glibc-2.3.2/buildhere/libio/iofclose.o.dt iofclose.c: In function `_IO_new_fclose': iofclose.c:60: `_IO_acquire_lock_needs_exceptions_enabled' undeclared (first use in this function) iofclose.c:60: (Each undeclared identifier is reported only once iofclose.c:60: for each function it appears in.) iofclose.c: At top level: iofclose.c:66: syntax error before "while" iofclose.c:74: syntax error before '->' token iofclose.c:74: warning: type defaults to `int' in declaration of `__gconv_release_step' iofclose.c:74: warning: function declaration isn't a prototype iofclose.c:74: conflicting types for `__gconv_release_step' ../iconv/gconv_int.h:200: previous declaration of `__gconv_release_step' iofclose.c:74: warning: data definition has no type or storage class iofclose.c:75: syntax error before '->' token iofclose.c:75: warning: type defaults to `int' in declaration of `__gconv_release_step' iofclose.c:75: warning: function declaration isn't a prototype iofclose.c:75: warning: data definition has no type or storage class iofclose.c:86: warning: type defaults to `int' in declaration of `free' iofclose.c:86: warning: parameter names (without types) in function declaration iofclose.c:86: conflicting types for `free' ../stdlib/stdlib.h:569: previous declaration of `free' iofclose.c:86: warning: data definition has no type or storage class iofclose.c:87: syntax error before '}' token make[2]: *** [/var/tmp/portage/glibc-2.3.2-r9/work/glibc- 2.3.2/buildhere/libio/iofclose.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.2-r9/work/glibc- 2.3.2/libio' make[1]: *** [libio/subdir_lib] Error 2 make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2' make: *** [all] Error 2 emerge info: Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r8, 2.6.0-test9-mm2) ================================================================= System uname: 2.6.0-test9-mm2 i686 AMD Athlon(tm) XP 2400+ Gentoo Base System version 1.4.3.12 ccache version 2.3 [disabled] ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -mcpu=athlon-xp -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share /config /var/bind /usr/X11R6/lib/X11/xkb /usr/kde/3.2/share/config /usr/kde/3.1/ share/config /usr/NX/etc /usr/share/texmf/tex/generic/config/ /usr/share/texmf/t ex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon-xp -mcpu=athlon-xp -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs sandbox -ccache userpriv" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://www.enodev.com/gentoo-portage" USE="x86 oss apm avi crypt encode foomaticdb gif jpeg libg++ mad mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb gtkhtml gdbm berkdb slang readline arts tetex aalib nas bonobo svga java guile mysql sdl gpm tcpd pam perl python esd imlib oggvorbis motif opengl mozilla ldap cdr -debug X cups nptl scanner usb sse dvd tcltk gtk2 gtk gnome alsa imap libwww maildir sasl ssl -qt -kde" Reproducible: Always Steps to Reproduce: 1. emerge -vub glibc 2. 3.
Well, I can't re-emerge glibc-2.3.2-r8 either, so something in between the successful emerge of glibc-2.3.2-r8 broke me. I could narrow it down a little if I knew what sort of package usually provides this define... linux-headers perhaps? I dunno...
Ok, I'm building a chroot gentoo environment right now (that I'll just have to keep tarballs of) to see what's what. If I can determine what is going on I'll update the bug, and hopefully prevent others from getting bit.
I guess upgrading to binutils-2.14.90.0.7-r3 maybe broke my gcc-3.3.2-r2... re-emerging binutils then gcc seems to have fixed things up. Not sure if "WONTFIX" is appropriate, but I want to clean up after myself as much as I can.