I will recompile the package now and post the exact warnings here. Reproducible: Always Steps to Reproduce: 1. emerge glibc 2. 3. Actual Results: broken files? Expected Results: corrected permissions # emerge info Portage 2.0.51_rc1 (default-linux/x86/2004.2/gcc34/2.6, gcc-3.4.2, glibc-2.3.4.20040916-r0, 2.6.9-rc1-mm2 i686) ================================================================= System uname: 2.6.9-rc1-mm2 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.5.3 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux26-headers-2.6.8.1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -mtune=pentium4 -march=pentium4 -ffast-math -pipe -momit-leaf-frame-pointer -fomit-frame-pointer -fweb -ftracer -frename-registers -fprefetch-loop-arrays" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mtune=pentium4 -march=pentium4 -ffast-math -pipe -momit-leaf-frame-pointer -fomit-frame-pointer -fweb -ftracer -frename-registers -fprefetch-loop-arrays -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox sfperms" GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://gentoo.inode.at/ ftp://gentoo.inode.at/source/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib acpi alsa apache2 avi bitmap-fonts cdr crypt cups dga dts dvd dvdr fastcgi fbcon gd gif gpm gtk gtk2 hardenedphp icq imap imlib ipv6 java jpeg ldap lesstif libwww mad mbox mmx motif mpeg mysql mysqli ncurses nls nptl oggvorbis opengl pam pdflib perl png python qt quicktime readline sasl sdl sse sse2 ssl stats tcltk tcpd tiff truetype usb vhosts videos wmf wxwindows x86 xface xinerama xml xml2 xmms xprint xv xvid zlib video_cards_nvidia"
Here are the warnings about files that cannot be accessed: (no idea of how the compiled files will be corrupted) In file included from nss_nis/nis-proto.c:20: ../include/nss.h:1:21: warning: ./nss/nss.h: Permission denied In file included from ../inet/netgroup.h:23, from ../include/netdb.h:189, from nss_nis/nis-proto.c:21: ../include/nsswitch.h:1:26: warning: ./nss/nsswitch.h: Permission denied nss_nis/nis-proto.c:34:39: warning: ./nss/nss_files/files-parse.c: Permission denied In file included from nss_nis/nis-hosts.c:20: ../include/nss.h:1:21: warning: ./nss/nss.h: Permission denied In file included from ../inet/netgroup.h:23, from ../include/netdb.h:189, from nss_nis/nis-hosts.c:25: ../include/nsswitch.h:1:26: warning: ./nss/nsswitch.h: Permission denied nss_nis/nis-hosts.c:56:39: warning: ./nss/nss_files/files-parse.c: Permission denied In file included from nss_nis/nis-network.c:20: ../include/nss.h:1:21: warning: ./nss/nss.h: Permission denied In file included from ../inet/netgroup.h:23, from ../include/netdb.h:189, from nss_nis/nis-network.c:24: ../include/nsswitch.h:1:26: warning: ./nss/nsswitch.h: Permission denied nss_nis/nis-network.c:41:39: warning: ./nss/nss_files/files-parse.c: Permission denied In file included from nss_nis/nis-service.c:20: ../include/nss.h:1:21: warning: ./nss/nss.h: Permission denied In file included from ../inet/netgroup.h:23, from ../include/netdb.h:189, from nss_nis/nis-service.c:21: ../include/nsswitch.h:1:26: warning: ./nss/nsswitch.h: Permission denied nss_nis/nis-service.c:35:39: warning: ./nss/nss_files/files-parse.c: Permission denied In file included from nss_nis/nis-grp.c:20: ../include/nss.h:1:21: warning: ./nss/nss.h: Permission denied In file included from ./nss-nis.h:24, from nss_nis/nis-grp.c:33: ../include/nsswitch.h:1:26: warning: ./nss/nsswitch.h: Permission denied nss_nis/nis-grp.c:39:39: warning: ./nss/nss_files/files-parse.c: Permission denied In file included from nss_nis/nis-pwd.c:20: ../include/nss.h:1:21: warning: ./nss/nss.h: Permission denied In file included from ./nss-nis.h:24, from nss_nis/nis-pwd.c:33: ../include/nsswitch.h:1:26: warning: ./nss/nsswitch.h: Permission denied nss_nis/nis-pwd.c:39:39: warning: ./nss/nss_files/files-parse.c: Permission denied In file included from nss_nis/nis-ethers.c:20: ../include/nss.h:1:21: warning: ./nss/nss.h: Permission denied In file included from ./nss-nis.h:24, from nss_nis/nis-ethers.c:30: ../include/nsswitch.h:1:26: warning: ./nss/nsswitch.h: Permission denied nss_nis/nis-ethers.c:39:39: warning: ./nss/nss_files/files-parse.c: Permission denied In file included from nss_nis/nis-rpc.c:20: ../include/nss.h:1:21: warning: ./nss/nss.h: Permission denied In file included from ../inet/netgroup.h:23, from ../include/netdb.h:189, from nss_nis/nis-rpc.c:21: ../include/nsswitch.h:1:26: warning: ./nss/nsswitch.h: Permission denied nss_nis/nis-rpc.c:34:39: warning: ./nss/nss_files/files-parse.c: Permission denied In file included from nss_nis/nis-spwd.c:20: ../include/nss.h:1:21: warning: ./nss/nss.h: Permission denied In file included from ./nss-nis.h:24, from nss_nis/nis-spwd.c:33: ../include/nsswitch.h:1:26: warning: ./nss/nsswitch.h: Permission denied nss_nis/nis-spwd.c:39:39: warning: ./nss/nss_files/files-parse.c: Permission denied In file included from ../inet/netgroup.h:23, from ../include/netdb.h:189, from nss_nis/nis-netgrp.c:25: ../include/nsswitch.h:1:26: warning: ./nss/nsswitch.h: Permission denied In file included from ../nss/nsswitch.h:26, from ../include/nsswitch.h:1, from ../inet/netgroup.h:23, from ../include/netdb.h:189, from nss_nis/nis-netgrp.c:25: ../include/nss.h:1:21: warning: ./nss/nss.h: Permission denied In file included from nss_nis/nis-publickey.c:20: ../include/nss.h:1:21: warning: ./nss/nss.h: Permission denied In file included from ./nss-nis.h:24, from nss_nis/nis-publickey.c:31: ../include/nsswitch.h:1:26: warning: ./nss/nsswitch.h: Permission denied In file included from nss_nis/nis-alias.c:20: ../include/nss.h:1:21: warning: ./nss/nss.h: Permission denied In file included from ./nss-nis.h:24, from nss_nis/nis-alias.c:29: ../include/nsswitch.h:1:26: warning: ./nss/nsswitch.h: Permission denied In file included from nss_nisplus/nisplus-proto.c:20: ../include/nss.h:1:21: warning: ./nss/nss.h: Permission denied In file included from ../inet/netgroup.h:23, from ../include/netdb.h:189, from nss_nisplus/nisplus-proto.c:23: ../include/nsswitch.h:1:26: warning: ./nss/nsswitch.h: Permission denied In file included from nss_nis/nis-initgroups.c:24: ../include/nss.h:1:21: warning: ./nss/nss.h: Permission denied In file included from ./nss-nis.h:24, from nss_nis/nis-initgroups.c:32: ../include/nsswitch.h:1:26: warning: ./nss/nsswitch.h: Permission denied nss_nis/nis-initgroups.c:38:39: warning: ./nss/nss_files/files-parse.c: Permission denied In file included from nss-nis.h:24, from nss-nis.c:26: ../include/nsswitch.h:1:26: warning: ./nss/nsswitch.h: Permission denied In file included from ../nss/nsswitch.h:26, from ../include/nsswitch.h:1, from nss-nis.h:24, from nss-nis.c:26: ../include/nss.h:1:21: warning: ./nss/nss.h: Permission denied In file included from nss_nisplus/nisplus-service.c:20: ../include/nss.h:1:21: warning: ./nss/nss.h: Permission denied In file included from ../inet/netgroup.h:23, from ../include/netdb.h:189, from nss_nisplus/nisplus-service.c:23: ../include/nsswitch.h:1:26: warning: ./nss/nsswitch.h: Permission denied In file included from nss_nisplus/nisplus-network.c:20: ../include/nss.h:1:21: warning: ./nss/nss.h: Permission denied In file included from ../inet/netgroup.h:23, from ../include/netdb.h:189, from nss_nisplus/nisplus-network.c:21: ../include/nsswitch.h:1:26: warning: ./nss/nsswitch.h: Permission denied In file included from nss_nisplus/nisplus-grp.c:20: ../include/nss.h:1:21: warning: ./nss/nss.h: Permission denied In file included from ./nss-nisplus.h:25, from nss_nisplus/nisplus-grp.c:28: ../include/nsswitch.h:1:26: warning: ./nss/nsswitch.h: Permission denied In file included from nss_nisplus/nisplus-hosts.c:20: ../include/nss.h:1:21: warning: ./nss/nss.h: Permission denied In file included from ../inet/netgroup.h:23, from ../include/netdb.h:189, from nss_nisplus/nisplus-hosts.c:21: ../include/nsswitch.h:1:26: warning: ./nss/nsswitch.h: Permission denied In file included from nss_nisplus/nisplus-pwd.c:20: ../include/nss.h:1:21: warning: ./nss/nss.h: Permission denied In file included from ./nss-nisplus.h:25, from nss_nisplus/nisplus-pwd.c:27: ../include/nsswitch.h:1:26: warning: ./nss/nsswitch.h: Permission denied In file included from nss_nisplus/nisplus-rpc.c:20: ../include/nss.h:1:21: warning: ./nss/nss.h: Permission denied In file included from ./nss-nisplus.h:25, from nss_nisplus/nisplus-rpc.c:28: ../include/nsswitch.h:1:26: warning: ./nss/nsswitch.h: Permission denied In file included from nss_nisplus/nisplus-ethers.c:20: ../include/nss.h:1:21: warning: ./nss/nss.h: Permission denied In file included from ../inet/netgroup.h:23, from ../include/netdb.h:189, from nss_nisplus/nisplus-ethers.c:25: ../include/nsswitch.h:1:26: warning: ./nss/nsswitch.h: Permission denied In file included from nss_nisplus/nisplus-spwd.c:20: ../include/nss.h:1:21: warning: ./nss/nss.h: Permission denied In file included from ./nss-nisplus.h:25, from nss_nisplus/nisplus-spwd.c:27: ../include/nsswitch.h:1:26: warning: ./nss/nsswitch.h: Permission denied In file included from nss_nisplus/nisplus-publickey.c:20: ../include/nss.h:1:21: warning: ./nss/nss.h: Permission denied In file included from ./nss-nisplus.h:25, from nss_nisplus/nisplus-publickey.c:32: ../include/nsswitch.h:1:26: warning: ./nss/nsswitch.h: Permission denied In file included from nss_nisplus/nisplus-netgrp.c:20: ../include/nss.h:1:21: warning: ./nss/nss.h: Permission denied In file included from ../inet/netgroup.h:23, from ../include/netdb.h:189, from nss_nisplus/nisplus-netgrp.c:23: ../include/nsswitch.h:1:26: warning: ./nss/nsswitch.h: Permission denied In file included from nss_nisplus/nisplus-alias.c:20: ../include/nss.h:1:21: warning: ./nss/nss.h: Permission denied In file included from ./nss-nisplus.h:25, from nss_nisplus/nisplus-alias.c:28: ../include/nsswitch.h:1:26: warning: ./nss/nsswitch.h: Permission denied In file included from nss_nisplus/nisplus-parser.c:20: ../include/pwd.h:26:21: warning: ./nss/nss.h: Permission denied In file included from nss-nisplus.h:25, from nss-nisplus.c:22: ../include/nsswitch.h:1:26: warning: ./nss/nsswitch.h: Permission denied In file included from ../nss/nsswitch.h:26, from ../include/nsswitch.h:1, from nss-nisplus.h:25, from nss-nisplus.c:22: ../include/nss.h:1:21: warning: ./nss/nss.h: Permission denied In file included from nss_compat/compat-grp.c:24: ../include/nss.h:1:21: warning: ./nss/nss.h: Permission denied In file included from nss_compat/compat-grp.c:25: ../include/nsswitch.h:1:26: warning: ./nss/nsswitch.h: Permission denied nss_compat/compat-grp.c:47:39: warning: ./nss/nss_files/files-parse.c: Permission denied In file included from ../inet/netgroup.h:23, from ../include/netdb.h:189, from nss_compat/compat-spwd.c:23: ../include/nsswitch.h:1:26: warning: ./nss/nsswitch.h: Permission denied In file included from ../nss/nsswitch.h:26, from ../include/nsswitch.h:1, from ../inet/netgroup.h:23, from ../include/netdb.h:189, from nss_compat/compat-spwd.c:23: ../include/nss.h:1:21: warning: ./nss/nss.h: Permission denied nss_compat/compat-spwd.c:48:39: warning: ./nss/nss_files/files-parse.c: Permission denied In file included from ../inet/netgroup.h:23, from ../include/netdb.h:189, from nss_compat/compat-pwd.c:23: ../include/nsswitch.h:1:26: warning: ./nss/nsswitch.h: Permission denied In file included from ../nss/nsswitch.h:26, from ../include/nsswitch.h:1, from ../inet/netgroup.h:23, from ../include/netdb.h:189, from nss_compat/compat-pwd.c:23: ../include/nss.h:1:21: warning: ./nss/nss.h: Permission denied nss_compat/compat-pwd.c:51:39: warning: ./nss/nss_files/files-parse.c: Permission denied In file included from nss_compat/compat-initgroups.c:25: ../include/nss.h:1:21: warning: ./nss/nss.h: Permission denied In file included from nss_compat/compat-initgroups.c:31: ../include/nsswitch.h:1:26: warning: ./nss/nsswitch.h: Permission denied nss_compat/compat-initgroups.c:58:39: warning: ./nss/nss_files/files-parse.c: Permission denied
You're using Reiser4? nss is an executable, and with Reiser4 not just directories but also files with execute permission set can be chdir'ed into. GCC gets confused, because it can't get a directory listing (since nss is just a file), so it gives a warning and looks for the next nss it can find. On other file systems, you shouldn't get that warning, but the warnings shouldn't cause any incorrect code.
are you using reiserfs4 ? if so, i really wish people would stop filing bugs with it ...
This is definitely Reiser4-related. When it's sufficiently stable for one of the glibc guys to start using it, these bugs will disappear. Until then, we're chasing a moving target, and as such, considering how often we release glibc snapshots, it's not worth our while fixing this. Reopening...
...and invalidating. Sorry mate, but we don't have the manpower to handhold the glibc guys through this - they need to do it themselves. If you want this to get fixed properly, bug Ulrich Drepper or someone like that.