[Aironet] Kernel 2.4.1 and Ben's driver
Status: Inactive
Brought to you by:
breed
From: Toby B. <tbe...@so...> - 2001-04-16 22:13:59
|
I have been looking through the archive and it appears that people have gotten Ben's driver to work with 2.4.1, but when I try to do gcc -O -c airo.c I get: [root@soma-dfw-w001 net]# gcc -O -c airo.c In file included from /usr/include/linux/rhconfig.h:13, from /usr/include/linux/autoconf.h:1, from /usr/include/linux/config.h:4, from airo.c:32: /boot/kernel.h:7:33: warning: garbage at end of #ifndef In file included from airo.c:36: /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 headers from an appropriate kernel-source I also tried adding the -DMODVERSIONS, but I still get the same error message. So I tried commenting out line 34 thru 37. Then when i build using the same gcc as before I get: [root@soma-dfw-w001 net]# gcc -O -c airo.c In file included from /usr/include/linux/rhconfig.h:13, from /usr/include/linux/autoconf.h:1, from /usr/include/linux/config.h:4, from airo.c:32: /boot/kernel.h:7:33: warning: garbage at end of #ifndef /tmp/cc42soft.s: Assembler messages: /tmp/cc42soft.s:8: Warning: Ignoring changed section attributes for .modinfo It does create an airo.o however. Unfortunately when I insmod it I get :[root@soma-dfw-w001 net]# /sbin/insmod airo Using /lib/modules/2.4.1/net/airo.o /lib/modules/2.4.1/net/airo.o: kernel-module version mismatch /lib/modules/2.4.1/net/airo.o was compiled for kernel version 2.4.0-0.26 while this kernel is version 2.4.1. Can anyone help. Thanks, Toby |