I have recently updated a grosly out of date system. The update included a fresh install of linux-headers-2.4.21. The update also involved nfs-utils and dhcpcd. Neither dhcpcd nor nfs-utils will build. They both complain of missing files in /usr/include/linux specifically version.h and kernel.h Here is the output of nfs-utils: getkversion.c:9:27: linux/version.h: No such file or directory make[3]: *** [dep] Error 1 make[2]: *** [dep] Error 2 make[1]: *** [dep] Error 2 make[1]: Leaving directory `/var/tmp/portage/nfs-utils-1.0.6/work/nfs-utils-1.0.6' make: *** [utils/statd/.depend] Error 2 !!! ERROR: net-fs/nfs-utils-1.0.6 failed. !!! Function src_compile, Line 30, Exitcode 2 !!! Failed to compile And the output of dhcpcd: In file included from dhcpconfig.c:40: kversion.h:26:27: linux/version.h: No such file or directory kversion.h:29:2: #error Unknown Linux kernel version In file included from cache.c:30: kversion.h:26:27: linux/version.h: No such file or directory kversion.h:29:2: #error Unknown Linux kernel version make: *** [cache.o] Error 1 make: *** Waiting for unfinished jobs.... dhcpconfig.c: In function `dhcpConfig': dhcpconfig.c:228: error: storage size of `sap' isn't known dhcpconfig.c:228: warning: unused variable `sap' make: *** [dhcpconfig.o] Error 1 !!! ERROR: net-misc/dhcpcd-1.3.22_p4-r2 failed. !!! Function src_compile, Line 48, Exitcode 2 !!! (no error message) Attempting to locate the files yeilds no results either. They just dont exist. Is this a known issue? (I was not able to find a dupe bug). Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r8, 2.4.22-ac4) ================================================================= System uname: 2.4.22-ac4 i686 Pentium III (Katmai) Gentoo Base System version 1.4.3.11 distcc 2.11.2 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox autoaddcvs buildpkg ccache" GENTOO_MIRRORS="http://192.168.10.198 ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://mirrors.tds.net/gentoo http://mirrors.tds.net/gentoo" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://192.168.10.198/gentoo-portage" USE="x86 crypt foomaticdb libg++ libwww mad ncurses xml2 zlib gdbm berkdb readline tcpd pam ssl python -3dnow -apm -arts -avi -cups -encode -gif -gnome -gpm -gtk -imlib ipv6 -java -jpeg -kde mbox -mikmod -motif -mpeg -nls -oggvorbis -opengl -oss -pdflib perl pic -png -qt -qtmt -quicktime -sdl -slang snmp -spell sse -svga -truetype -X xml -xmms -xv"
I'm having this problem too, missing /usr/include/linux/version.h. Here's my emerge --info: Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r8, 2.6.0-test9-mm1) ================================================================= System uname: 2.6.0-test9-mm1 i686 AMD Athlon(tm) XP 2600+ Gentoo Base System version 1.4.3.11 ccache version 2.3 [enabled] ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox autoaddcvs ccache" GENTOO_MIRRORS="ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb gtkhtml alsa gdbm berkdb slang readline tetex aalib bonobo svga tcltk java X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk motif opengl mozilla cdr 3dnow apache2 cjk curl dvd fbcon gb gtk2 imap maildir mmx moznocompose moznoirc moznomail sse tiff xml -kde -arts -qt"
this problem was with the kernel.eclass I updated last night this was rectified proomptly by reverting back to the older one, and I have a fixed versin here which I shall commit shortly. please emerge sync and retry merging linux-headers it will fix all your problems ;)