This occurs doing an emerge sync && emerge -Du world : if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DLIBDIR=\"/usr/lib64\" -I. -I. -I.. -I.. -I. -O2 -march=k8 -pipe -MT xmalloc.o -MD -MP -MF ".deps/xmalloc.Tpo" -c -o xmalloc.o xmalloc.c; \ then mv -f ".deps/xmalloc.Tpo" ".deps/xmalloc.Po"; else rm -f ".deps/xmalloc.Tpo"; exit 1; fi utimens.c: In function `futimens': utimens.c:95: error: `AT_FDCWD' undeclared (first use in this function) utimens.c:95: error: (Each undeclared identifier is reported only once utimens.c:95: error: for each function it appears in.) make[3]: *** [utimens.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/var/tmp/portage/coreutils-5.94-r1/work/coreutils-5.94/lib' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/coreutils-5.94-r1/work/coreutils-5.94/lib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/coreutils-5.94-r1/work/coreutils-5.94' make: *** [all] Error 2 [root@kronos ~ 2]% emerge --info Portage 2.0.54 (default-linux/amd64/2005.1, gcc-3.4.5, glibc-2.3.5-r2, 2.6.15.4 x86_64) ================================================================= System uname: 2.6.15.4 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ Gentoo Base System version 1.6.14 dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.12 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-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=k8 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/env.d" CXXFLAGS="-O2 -march=k8 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.ccccom.com ftp://gentoo.ccccom.com ftp://mirrors.tds.net/gentoo http://gentoo.mirrors.pair.com/" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X aac alsa amazon arts artswrappersuid avi bash-completion cacheemu cdrom codecs cscope ctags cups curl cvs dhcp divx4linux dvd dvdr dvdread encode esd font-server freetype ftp gif gs gstreamer gtk gtk2 hal javascript jpeg kde libvisual mime mp3 mpeg mpeg4 mplayer network nptl nptlonly ogg oggvorbis opengl pcre pda pdflib perl png python qt readline rss samba ssl streamzap svg tcpd tiff truetype truetype-fonts type1 type1-fonts vim-pager vim-with-x vorbis x11 xine xmms xosd xprint xv xvid yahoo userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
run `MAKEOPTS=-j1 emerge coreutils >& log` and post the log as an attachment
Created attachment 85716 [details] MAKEOPTS=-j1 emerge coreutils >& log As requested. Thanks.
hrm ... try this now: # cd /var/tmp/portage/coreutils-5.94-r1/work/coreutils-5.94/lib # gcc -DHAVE_CONFIG_H -DLIBDIR=\"/usr/lib64\" -I. -I.. -O2 -march=k8 -pipe \ -E -dD -o utimens.i utimens.c then post the utimens.i file as an attachment
Created attachment 85724 [details] utimens.i gcc -DHAVE_CONFIG_H -DLIBDIR=\"/usr/lib64\" -I. -I.. -O2 -march=k8 -pipe \ -E -dD -o utimens.i utimens.c
ok, i can reproduce over here
on second thought, i cannot reproduce this ... the problem is this: checking for futimesat... yes if you have futimesat support it means you have support for the additional *at interfaces (_ATFILE_SOURCE / AT_FDCWD) but these interfaces werent added to glibc until glibc-2.4 ... and you're running glibc-2.3.5 ... so what gives ? attach the file: /var/tmp/portage/coreutils-5.94-r1/work/coreutils-5.94/config.log and post the output of: readelf -s /lib/libc.so.6 | grep at@
Coreutils config.log is too large to post. But it's finding 3.4.5: PATH: /usr/x86_64-pc-linux-gnu/gcc-bin/3.4.5 configure:2366: x86_64-pc-linux-gnu-gcc --version </dev/null >&5 x86_64-pc-linux-gnu-gcc (GCC) 3.4.5 (Gentoo 3.4.5, ssp-3.4.5-1.0, pie-8.7.9) eading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/specs Configured with: /var/tmp/portage/gcc-3.4.5/work/gcc-3.4.5/configure --prefix=/u Thread model: posix gcc version 3.4.5 (Gentoo 3.4.5, ssp-3.4.5-1.0, pie-8.7.9) configure:2374: $? = 0 configure:2376: x86_64-pc-linux-gnu-gcc -V </dev/null >&5 I was using ~x86 for a while, but that was a month ago, at least. Perhaps that explains it? Thanks for your help. [shaw@kronos ~ 4]% readelf -s /lib/libc.so.6 | grep at@ 179: 00000000000ac110 240 FUNC GLOBAL DEFAULT 11 __xmknodat@@GLIBC_2.4 215: 00000000000acfc0 538 FUNC GLOBAL DEFAULT 11 faccessat@@GLIBC_2.4 385: 00000000000bad80 37 FUNC WEAK DEFAULT 11 shmat@@GLIBC_2.2.5 405: 0000000000059d40 264 FUNC GLOBAL DEFAULT 11 renameat@@GLIBC_2.4 415: 00000000000ad660 118 FUNC WEAK DEFAULT 11 creat@@GLIBC_2.2.5 434: 00000000000b9090 72 FUNC GLOBAL DEFAULT 11 ustat@@GLIBC_2.2.5 477: 00000000000b50c0 208 FUNC GLOBAL DEFAULT 11 futimesat@@GLIBC_2.4 750: 00000000000ac060 73 FUNC GLOBAL DEFAULT 11 __lxstat@@GLIBC_2.2.5 799: 00000000000660e0 19 FUNC GLOBAL DEFAULT 11 _IO_file_stat@@GLIBC_2.2.5 873: 000000000006f010 444 FUNC GLOBAL DEFAULT 11 strcat@@GLIBC_2.2.5 889: 00000000000ae760 215 FUNC GLOBAL DEFAULT 11 unlinkat@@GLIBC_2.4 1077: 00000000000ac200 242 FUNC GLOBAL DEFAULT 11 __fxstatat@@GLIBC_2.4 1206: 000000000006fae0 148 FUNC GLOBAL DEFAULT 11 strncat@@GLIBC_2.2.5 1242: 00000000000ac630 164 FUNC GLOBAL DEFAULT 11 mkdirat@@GLIBC_2.4 1265: 00000000000ada70 242 FUNC GLOBAL DEFAULT 11 fchownat@@GLIBC_2.4 1276: 0000000000074790 148 FUNC GLOBAL DEFAULT 11 wcsncat@@GLIBC_2.2.5 1340: 00000000000ae430 294 FUNC GLOBAL DEFAULT 11 linkat@@GLIBC_2.4 1455: 00000000000ac510 226 FUNC GLOBAL DEFAULT 11 fchmodat@@GLIBC_2.4 1670: 00000000000ae590 164 FUNC GLOBAL DEFAULT 11 symlinkat@@GLIBC_2.4 1687: 00000000000abfc0 73 FUNC GLOBAL DEFAULT 11 __xstat@@GLIBC_2.2.5 1731: 00000000000ae670 178 FUNC GLOBAL DEFAULT 11 readlinkat@@GLIBC_2.4 1738: 00000000000de600 90 FUNC GLOBAL DEFAULT 11 xdr_float@@GLIBC_2.2.5 1768: 00000000000ac010 70 FUNC GLOBAL DEFAULT 11 __fxstat@@GLIBC_2.2.5 1822: 00000000000aca20 283 FUNC WEAK DEFAULT 11 openat@@GLIBC_2.4 1844: 00000000000abf90 37 FUNC GLOBAL DEFAULT 11 mkfifoat@@GLIBC_2.4 1848: 0000000000074610 37 FUNC WEAK DEFAULT 11 wcscat@@GLIBC_2.2.5 2010: 0000000000046f40 246 FUNC GLOBAL DEFAULT 11 parse_printf_format@@GLIBC_2.2.5
Is there some particular ouput in the config log you need? Thx.
your /lib/libc.so.6 appears to be glibc-2.4 but your headers are glibc-2.3.5 you cannot downgrade glibc, bad things happen i'd suggest you re-install glibc-2.4-r1
Is there a 'recommended' way to do this? Current glibc is listed as 2.3.5-r2 by portage. Why should I downgrade? Do I need to downgrade before I can upgrade? Confused. Thx.
add this to your /etc/portage/package.keywords: =sys-libs/glibc-2.4-r1
Ok, I've successfully emerged glibc-2.4-r1 after which coreutils emerged sucessfully as well. Wahoo! Thanks for all your help with this. :) I'm a bit confused about the state of my box now. Can I remove glibc-2.4-r1 from package.keywords? If I do this, will protage update glibc, and is that a problem?
if you remove the entry from package.keywords, portage will try and downgrade your glibc again just leave it that way and you should be fine