View Single Post
Old 10-21-03, 06:34 PM   #2
paddy
Registered User
 
Join Date: Oct 2003
Posts: 1
Default

Similar problem I also need advice! There was an rpm for the driver for the kernel 2.4.20-6 but it gave some "unresolved symbols" when it ran. When I followed instructions to compile my own I got the hundreds of error messages finishing up something like stevio's. The first few error messages are all to do with using header files from /usr/include/linux instead of /lib/modules/2.4.20-6/build/include but in my set up this path is an alias for the path it doesn't like.

[root@localhost nvnet]# make
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-6/build/include nvnet.c

In file included from /usr/include/linux/module.h:20,
from nvnet.h:20,
from 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.
In file included from
/usr/include/linux/fs.h:23,
from /usr/include/linux/capability.h:17,
from /usr/include/linux/binfmts.h:5,
from /usr/include/linux/sched.h:9,
from nvnet.h:23,
from nvnet.c:21:
/usr/include/linux/string.h:8:2: warning: #warning Using kernel header in userland!
In file included from
/usr/include/linux/sched.h:14,
from nvnet.h:23,
from nvnet.c:21:
/usr/include/linux/timex.h:173: field `time' has incomplete type
In file included from
/usr/include/linux/bitops.h:69,
from /usr/include/asm/system.h:7,
from /usr/include/linux/sched.h:16,
from nvnet.h:23,
from nvnet.c:21:
/usr/include/asm/bitops.h:327:2: warning: #warning This includefile is not available on all architectures.
/usr/include/asm/bitops.h:328:2: warning: #warning Using kernel headers in userspace: atomicity not guaranteed
In file included from /usr/include/linux/signal.h:4,
from /usr/include/linux/sched.h:25,
from nvnet.h:23,
from nvnet.c:21:
etc
etc
etc
paddy is offline   Reply With Quote