Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50203 - nforce-nvnet-1.0.0256 does not compile on vanilla-sources-2.4.26
Summary: nforce-nvnet-1.0.0256 does not compile on vanilla-sources-2.4.26
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High major
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-06 04:29 UTC by Evert
Modified: 2004-05-19 09:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evert 2004-05-06 04:29:13 UTC
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"
Comment 1 Evert 2004-05-14 06:59:26 UTC
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...
Comment 2 Jason Cox (RETIRED) gentoo-dev 2004-05-17 07:26:49 UTC
Already included in the kernel. No need for extra ebuilds.
Comment 3 Evert 2004-05-19 09:42:31 UTC
Thanx for finally repeating what I found out myself...