This athlon-xp box is running on vanilla-sources-2.4.26. I'm trying to emerge nforce-nvnet. This used to work on 2.4.22. # ls -l /usr/src/linux lrwxrwxrwx 1 root root 13 Apr 15 18:43 /usr/src/linux -> linux-2.4.26/ Reproducible: Always Steps to Reproduce: 1. emerge nforce-net Actual Results: Calculating dependencies ...done! >>> emerge (1 of 1) net-misc/nforce-net-1.0.0256 to / >>> md5 src_uri ;-) NVIDIA_nforce-1.0-0256.tar.gz >>> Unpacking source... >>> Unpacking NVIDIA_nforce-1.0-0256.tar.gz to /big/portage_tmp/portage/nforce-net-1.0.0256/work >>> Source unpacked. gcc -c -Wall -DLINUX -DMODULE -DEXPORT_SYMTAB -D__KERNEL__ -O -Wstrict-prototypes -DCONFIG_PM -fno-strict-aliasing -mpreferred-stack-boundary=2 -march=i686 -falign-functions=4 -DMODULE -I/usr/src/linux/include nvnet.c In file included from /usr/src/linux/include/linux/prefetch.h:13, from /usr/src/linux/include/linux/list.h:6, from /usr/src/linux/include/linux/module.h:12, from nvnet.h:20, from nvnet.c:21: /usr/include/asm/processor.h:75: error: `CONFIG_NR_CPUS' undeclared here (not in a function) In file included from nvnet.h:20, from nvnet.c:21: /usr/src/linux/include/linux/module.h:21:34: linux/modversions.h: No such file or directory In file included from /usr/include/asm/smp.h:17, from /usr/src/linux/include/linux/smp.h:14, from /usr/src/linux/include/linux/sched.h:23, from nvnet.h:23, from nvnet.c:21: /usr/include/asm/mpspec.h:205: error: `CONFIG_NR_CPUS' undeclared here (not in a function) In file included from /usr/include/asm/smp.h:21, from /usr/src/linux/include/linux/smp.h:14, from /usr/src/linux/include/linux/sched.h:23, from nvnet.h:23, from nvnet.c:21: /usr/include/asm/apic.h:88: error: `CONFIG_NR_CPUS' undeclared here (not in a function) In file included from /usr/src/linux/include/linux/smp.h:14, from /usr/src/linux/include/linux/sched.h:23, from nvnet.h:23, from nvnet.c:21: /usr/include/asm/smp.h:66: error: `CONFIG_NR_CPUS' undeclared here (not in a function) /usr/include/asm/smp.h:66: confused by earlier errors, bailing out make: *** [nvnet.o] Error 1 !!! ERROR: net-misc/nforce-net-1.0.0256 failed. !!! Function src_compile, Line 25, Exitcode 2 !!! (no error message) Expected Results: :-) Gentoo Base System version 1.4.10 Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.26) ================================================================= System uname: 2.4.26 i686 AMD Athlon(tm) XP 2600+ distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CXXFLAGS="-O2 -march=athlon-xp -pipe" FEATURES="autoaddcvs buildpkg ccache sandbox" MAKEOPTS="-j2" USE="X apm arts avi berkdb cdr crypt cups directfb encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg ldap libg++ libwww mad mikmod mmx motif mozilla mpeg mysql ncurses oggvorbis opengl oss pam pdflib perl png python qt quicktime readline ruby sdl slang sse ssl svga tcpd truetype x86 xml2 xmms xv zlib"
This isn't really a problem anymore since kernel 2.4.26 has nForce Ethernet support in it (module forcedeth). It would be nice if this would be told by the ebuild if someone tries to emerge nforce-nvnet on a 2.4.26+ kernel...
Already included in the kernel. No need for extra ebuilds.
Thanx for finally repeating what I found out myself...