Problem when running make?
I can't compile. I get several errors. Here is the beging when i run make in the nforce catalog.
[root@localhost nforce]# make
make -C nvnet
make[1]: Entering directory `/tmp/nforce/nvnet'
cc -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/lib/modules/2.4.20-19.9/build/include
nvnet.c
I fil inkluderad från /usr/include/linux/module.h:20,
från nvnet.h:20,
från nvnet.c:21:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but rather headers from an appropriate kernel-source package.
/usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to
/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include
/usr/include/linux/modversions.h:5:2: #error to build against the currently-running kernel.
I fil inkluderad från /usr/include/linux/fs.h:23,
från /usr/include/linux/capability.h:17,
från /usr/include/linux/binfmts.h:5,
från /usr/include/linux/sched.h:9,
från nvnet.h:23,
från nvnet.c:21:
/usr/include/linux/string.h:8:2: varning: #warning Using kernel header in userland!
I fil includerad från /usr/include/linux/sched.h:14,
från nvnet.h:23,
från nvnet.c:21:
/usr/include/linux/timex.h:173: fält "time" har en inkomplett typ
Many things are in swedish and somthing got strange when i copied it from my redhat.
Ã¥ = å
I fil inkluderad från = in file included from
varning = warning
Hope you can see somthing from this!!
I noticed somthing. In the first line i saw this -march=i686 shouldn't be -march=athlon.
How can i fix this to be athlon.
(also when i try to run rpmbuild -bb nvnet.spec I got error like this "error: architech not right: i386" It's not exakt because i can't copy from linux so well. Hope you understand what I mean. Why is it not athlon that it's compiled with)
Plase help me get my network work?
|