sys-apps/busybox-1.8.2 fails to compile: libbb/time.c: In function 'monotonic_us': libbb/time.c:20: error: '__NR_clock_gettime' undeclared (first use in this function) libbb/time.c:20: error: (Each undeclared identifier is reported only once libbb/time.c:20: error: for each function it appears in.) libbb/time.c: In function 'monotonic_sec': libbb/time.c:27: error: '__NR_clock_gettime' undeclared (first use in this function) make[1]: *** [libbb/time.o] Error 1 make: *** [libbb] Error 2 * * ERROR: sys-apps/busybox-1.8.2 failed. * Call stack: * ebuild.sh, line 1701: Called dyn_compile * ebuild.sh, line 1039: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * busybox-1.8.2.ebuild, line 159: Called die * The specific snippet of code: * emake busybox || die "build failed" * The die message: * build failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/sys-apps/busybox-1.8.2/temp/build.log'. * * Messages for package sys-apps/busybox-1.8.2: * Could not locate user configfile, so we will save a default one * * ERROR: sys-apps/busybox-1.8.2 failed. * Call stack: * ebuild.sh, line 1701: Called dyn_compile * ebuild.sh, line 1039: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * busybox-1.8.2.ebuild, line 159: Called die * The specific snippet of code: * emake busybox || die "build failed" * The die message: * build failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/sys-apps/busybox-1.8.2/temp/build.log'. * Reproducible: Always Steps to Reproduce: 1. emerge =sys-apps/busybox-1.8.2 Upgrading to uclibc-0.9.29 (not in Portage, see http://bugs.gentoo.org/show_bug.cgi?id=182094 for updated ebuilds) or disabling CONFIG_MONOTONIC_SYSCALL in the busybox configuration (see http://forums.gentoo.org/viewtopic-t-661211-start-0-postdays-0-postorder-asc-highlight-.html) will solve the problem. See also http://bugs.uclibc.org/view.php?id=2054.
Upgrade to 2.6 linux-headers, recompile glibc, move on. *** This bug has been marked as a duplicate of bug 201381 ***