Thread: [Ndiswrapper-general] Compiling cvs
Status: Beta
Brought to you by:
pgiri
From: Benjamin S. <bli...@sc...> - 2003-12-21 11:23:35
|
Hi list. I just did a `cvs up` and wanted to compile the latest ndiswrapper. However building the module fails on 2.4.22: root@crazyhorse:~/ndiswrapper/ndiswrapper/driver# ll total 205 drwxr-xr-x 2 root root 128 Dec 21 11:56 CVS -rw-r--r-- 1 root root 1438 Dec 21 11:56 Makefile -rw-r--r-- 1 root root 57417 Dec 9 16:10 casemap.h -rw-r--r-- 1 root root 3356 Nov 3 18:39 coffpe.h -rw-r--r-- 1 root root 4927 Dec 21 11:56 loader.c -rw-r--r-- 1 root root 678 Nov 3 18:39 loader.h -rw-r--r-- 1 root root 7061 Dec 21 11:56 misc_funcs.c -rw-r--r-- 1 root root 33009 Dec 21 11:56 ndis.c -rw-r--r-- 1 root root 11174 Dec 21 11:56 ndis.h -rw-r--r-- 1 root root 15650 Dec 21 11:56 winsyms.c -rw-r--r-- 1 root root 648 Nov 3 18:39 winsyms.h -rw-r--r-- 1 root root 44511 Dec 21 11:56 wrapper.c -rw-r--r-- 1 root root 1533 Nov 17 14:23 wrapper.h root@crazyhorse:~/ndiswrapper/ndiswrapper/driver# make cc -DDEBUG -DLINUX -D__KERNEL__ -DMODULE -I/lib/modules/2.4.22-rock/build/i= nclude -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing = -pipe -mpreferred-stack-boundary=3D2 -O2 -c -o wrapper.o wrapper.c wrapper.c:883: variable `ndis_ethtool_ops' has initializer but incomplete t= ype wrapper.c:884: unknown field `get_link' specified in initializer wrapper.c:884: warning: excess elements in struct initializer wrapper.c:884: warning: (near initialization for `ndis_ethtool_ops') wrapper.c: In function `setup_dev': wrapper.c:1316: structure has no member named `ethtool_ops' wrapper.c: At top level: wrapper.c:883: storage size of `ndis_ethtool_ops' isn't known make: *** [wrapper.o] Error 1 root@crazyhorse:~/ndiswrapper/ndiswrapper/driver#=20 Am I missing something in my kernel? Source is available at /lib/modules/(uname -r)/build TIA, blindy --=20 Benjamin 'blindCoder' Schieder Registered Linux User #289529: http://counter.li.org bli...@sc... --=20 /lusr/bin/brain: received signal: SIGIDIOT |
From: Giridhar P. <gi...@lm...> - 2003-12-21 14:45:35
|
Either upgrade to 2.4.23 kernel or look for ethtool_ops definition in your kernel's header files and include that file in wrapper.c. If the latter works, let us know what is the fix so we can change the source file. -- Giri |