问题2: 驱动模块装载错误
[PHP]
insmod: error inserting 'ieee80211_crypt-rtl.ko': -1 Invalid module format\\
insmod: error inserting 'ieee80211_crypt_wep-rtl.ko': -1 Unknown symbol in module\\
insmod: error inserting 'ieee80211_crypt_tkip-rtl.ko': -1 Unknown symbol in module\\
insmod: error inserting 'ieee80211_crypt_ccmp-rtl.ko': -1 Unknown symbol in module\\
insmod: error inserting 'ieee80211-rtl.ko': -1 Unknown symbol in module\\
insmod: error inserting 'r8187.ko': -1 Unknown symbol in module\\
[/PHP]
答案:
[PHP]
cd beta-8187
rm -f Modules.symvers
ln -s ../ieee80211/Modules.symvers Modules.symvers
### NOTE versions of GCC may require this instead: ln -s ../ieee80211/Module.symvers Module.symvers
cd ..
sh makedrv
[/PHP]
问题3: 文件或者目录不存在
[PHP]
make: *** /lib/modules/2.6.15-28-386/build: No such file or directory.
#Plus other references to "No such file or directory."\\
[/PHP]
答案: 下载相应的软件
[PHP]
wget http://download.aircrack-ng.org/aircrack-ng-0.9.tar.gz
tar -zxvf aircrack-ng-0.9.tar.gz
cd aircrack-ng-0.9
make
make install
[/PHP]
问题4: "linux/config.h no such file or directory..." 类似的编译错误
答案: [PHP]touch /usr/src/linux/include/linux/config.h[/PHP]
问题5: "passed 3 arguments, but takes just 2..." 编译警告
[PHP]
/root/rtl8187_linux_26.1025.0328.2007/ieee80211/ieee80211_softmac.c:2168:78: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
/root/rtl8187_linux_26.1025.0328.2007/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_softmac_init’:
/root/rtl8187_linux_26.1025.0328.2007/ieee80211/ieee80211_softmac.c:2168: error: ‘INIT_WORK’ undeclared (first use in this function)
/root/rtl8187_linux_26.1025.0328.2007/rtl8187/r8187_core.c:1625:64: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
/root/rtl8187_linux_26.1025.0328.2007/rtl8187/r8187_core.c: In function ‘rtl8180_init’:
/root/rtl8187_linux_26.1025.0328.2007/rtl8187/r8187_core.c:1625: error: ‘INIT_WORK’ undeclared (first use in this function)
[/PHP]