Emerge of last glibc gives me these errors: [...] x86_64-pc-linux-gnu-gcc getgrent.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -march=athlon64 -pipe -mpreferred-stack-boundary=2 -fexceptions -I../include -I. -I/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/grp -I.. -I../libio -I/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads -I../sysdeps/i386/elf -I../linuxthreads/sysdeps/unix/sysv/linux/i386 -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/i386/i686 -I../linuxthreads/sysdeps/i386 -I../libidn/sysdeps/unix -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../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/x86_64-pc-linux-gnu/3.4.4/include -isystem /usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -o /var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/grp/getgrent.o -MD -MP -MF /var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/grp/getgrent.o.dt -MT /var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/grp/getgrent.o ../sysdeps/unix/sysv/linux/i386/setgroups.c: In function `setgroups': ../sysdeps/unix/sysv/linux/i386/setgroups.c:47: error: `__NR_setgroups32' undeclared (first use in this function) ../sysdeps/unix/sysv/linux/i386/setgroups.c:47: error: (Each undeclared identifier is reported only once ../sysdeps/unix/sysv/linux/i386/setgroups.c:47: error: for each function it appears in.) make[2]: *** [/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/grp/setgroups.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.5-r1/work/glibc-2.3.5/grp' make[1]: *** [grp/subdir_lib] Error 2 make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.5-r1/work/glibc-2.3.5' make: *** [all] Error 2 !!! ERROR: sys-libs/glibc-2.3.5-r1 failed. !!! Function toolchain-glibc_src_compile, Line 226, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: 1. emerge glibc Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r0, 2.6.12-cko3 x86_64) ================================================================= System uname: 2.6.12-cko3 x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.6.13 ccache version 2.4 [enabled] dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.11 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=athlon64 -pipe -mmmx -m3dnow -msse -msse2 -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control /var/service" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2 -march=athlon64 -pipe -mmmx -m3dnow -msse -msse2 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig candy ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ ftp://ftp.unina.it/pub/linux/distributions/gentoo http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ http://ibiblio.org/pub/Linux/MIRRORS.html " LANG="it_IT" LC_ALL="it_IT" LINGUAS="it" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="amd64 X aalib acpi alsa arts audiofile avi bash-completion bash-completition bcmath berkdb bindist bitmap-fonts bluetooth bonobo browserplugin bzlib caps cdparanoia cdr crypt css ctype cups curl dbm dbus dbx dga doc dv dvb dvd dvdr dvdread eds encode esd exif expat fbcon ffmpeg fftw flac flash foomaticdb fortran freetype ftp gb gd gdbm gif gimpprint glut gmp gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal howl iconv ieee1394 imagemagick imap imlib innodb ipv6 java javascript jpeg junit kde kdeenablefinal kernel_linux lcms ldap lesstif libcaca libedit libgda libwww lirc lm_sensors logitech lzw lzw-tiff mad mhash mikmod mime ming mmap mng motif mozilla mp3 mpeg msn musepack mysql mysqli ncurses nls nptl ogg oggvorbis openal opengl pam pcmcia pcre pdflib perl plotutils plugin png posix postgres ppds python qt quicktime readline samba scanner sdl session sharedext sharedmem simplexml slang sndfile snmp soap sockets sox speex spell spl sqlite ssl sumlink svg sysvipc szip tcltk tcpd tetex theora threads tidy tiff tokenizer truetype truetype-fonts type1-fonts unicode usb userlocales v4l vcd videos vorbis wifi wmf wxwindows xface xine xinerama xml xml2 xmlrpc xmms xosd xpm xsl xv xvid zeroconf zlib linguas_it userland_GNU elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, PORTDIR_OVERLAY
Umh... I think it's a linux-headers related bug, because I was able to emerge when I returned to the standard linux-headers-2.6.11-r2. Previously, I was using direct headers from my own versions of kernel (I tried vanilla-2.6.13-rc3, gentoo-2.6.12-r6, ck-overloaded-2.6.12-cko3 without success... so I assume there's a problem in the headers of linux-2.6.12...)
you are right this is INVALID, but not that the linux headers are broken the kernel maintainers atm are not cleaning up their headers so that they can be used by userspace ... that is why you should *never* symlink your /usr/include/{linux,asm} dirs to your live kernel use the linux-headers ebuilds, we santize the headers for you
But what if other packages search for bleeding edge feature of last kernels?
*** Bug 259375 has been marked as a duplicate of this bug. ***