Attached is a working ebuild + patch, and patch alone. Basically, some declerations in tee.h are defined in the new headers.
Created attachment 87886 [details] sys-apps/coreutils-5.96 with patch Credit to tscolin for bringing this to my attention in #gentoo-amd64 and providing the package
Created attachment 87887 [details, diff] Just the patch
I am unable to confirm this bug, all is well with 2.6.16 headers and gcc-4.1.1!
Portage 2.1_rc3-r1 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.4.90.20060516-r0, 2.6.17-rc4-g99bc1bd9-dirty x86_64) ================================================================= System uname: 2.6.17-rc4-g99bc1bd9-dirty x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.12.0 dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: 0.4.2-r1 sys-apps/sandbox: 1.2.18.1 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-r2 sys-devel/binutils: 2.16.93 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 -march=athlon64 -fomit-frame-pointer -ffast-math" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2 -pipe -march=athlon64 -fomit-frame-pointer -ffast-math" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg clean confcache cvs distlocks metadata-transfer notitles sfperms strict userpriv" GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk/" LDFLAGS="-Wl,-O1 -Wl,-Bdirect -Wl,-hashvals -Wl,-zdynsort" MAKEOPTS="-j2" 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" PORTDIR_OVERLAY="/overlay/local /overlay/glibc /overlay/xgl-coffee /overlay/gnome-experimental" SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage" USE="amd64 X alsa avi beagle berkdb bitmap-fonts bluetooth cairo cli crypt cups dbus dri dvd eds emboss encode firefox foomaticdb fortran gif glitz gnome gnomecanvas gpm gstreamer gstreamer10 gtk gtk2 hal imlib isdnlog jpeg lzw lzw-tiff mono mp3 mpeg ncurses nls nptl nptlonly nvidia opengl pam pcre pdf pdflib perl pic png pppd python quicktime readline reflection samba sdl session spell spl ssl svg syslog tcpd tiff truetype truetype-fonts type1-fonts unicode usb xorg xpm xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_nvidia" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
fedora does this as well: * Wed Apr 26 2006 Tim Waugh <twaugh@redhat.com> 5.94-4 - Avoid redeclared 'tee' function. however, i fail to see where this is being defined
upstream released this fix in 5.97
*** Bug 151871 has been marked as a duplicate of this bug. ***
*** Bug 152879 has been marked as a duplicate of this bug. ***
i have same problem on selinux/x86/hardened. Thirst problem is that it use coreutils-5.94-r1, all other are masked. Unmasking will cos coreutils-6.7-r1 fail to merge with error: =================================================================== >>> Unpacking coreutils-6.7-patches-1.1.tar.bz2 to /var/tmp/portage/sys-apps/coreutils-6.7-r1/work * Cannot find $EPATCH_SOURCE! Value for $EPATCH_SOURCE is: * * /var/tmp/portage/sys-apps/coreutils-6.7-r1/work/patch/selinux * ( selinux ) !!! ERROR: sys-apps/coreutils-6.7-r1 failed. ====================================================================== Any suggestions? i use glibc 2.5 and gcc-4.1.1-r3
*** Bug 166762 has been marked as a duplicate of this bug. ***
Why this bug is marked as FIXED? 6.* coreutils are OK, but there are some people (especially those using selinux), who can use only 5.* . According to bug #144509, coreutils 6.* are not likely to work with selinux in a short period of time, so I think that adding 5.97 to portage could be a good fix.
that sucks to be you, we're not backporting
(In reply to comment #12) > that sucks to be you, we're not backporting > But it affects many selinux people... And adding patch from comment #2 to portage tree isn't harmful (and it works).
then the selinux people should be taking more care of their system now shouldnt they
*** Bug 172568 has been marked as a duplicate of this bug. ***
*** Bug 178903 has been marked as a duplicate of this bug. ***
I don't understand why not fix this simple issue...
*** Bug 179509 has been marked as a duplicate of this bug. ***