今天帮朋友安装无线网卡,在编译时遇到了如下错误,知情人事请不吝啬教.
根据驱程附带安装说明文件(readme.txt)步骤
-------------------rademe.txt---------------------
1> $tar -xvzf RT73_Linux_STA_Drv_x.x.x.x.tar.gz
go to "./RT73_Linux_STA_Drv_x.x.x.x/Module" directory.
2> $cp Makefile.4 ./Makefile # [kernel 2.4]
or
$cp Makefile.6 ./Makefile # [kernel 2.6]
3> [kernel 2.4] #步骤3是不是只有kernel 2.4才运行?我的是2.6.X所以略过了步骤3 $chmod 755 Configure
$make config # config build linux os version
4> $make all # compile driver source code
4.1> $make install
5> $cp rt73.bin /etc/Wireless/RT73STA/ # copy firmware
6> $dos2unix rt73sta.dat
$cp rt73sta.dat /etc/Wireless/RT73STA/rt73sta.dat
# !!!check if it is a binary file before loading !!!
7> $load
#[kernel 2.4]
# $/sbin/insmod rt73.o
# $/sbin/ifconfig rausb0 inet YOUR_IP up
#[kernel 2.6]
# $/sbin/insmod rt73.ko
# $/sbin/ifconfig rausb0 inet YOUR_IP up
--------------------------------------rademe.txt end-------------------
当运行到第4步#make all 时,出现如下错误
make -C /lib/modules/2.6.9-78.ELsmp/build SUBDIRS=/root/rt73/Module modules
make[1]: Entering directory `/usr/src/kernels/2.6.9-78.EL-smp-i686'
CC [M] /root/rt73/Module/rtmp_main.o
/root/rt73/Module/rtmp_main.c:46: warning: `MODULE_PARM_' is deprecated (declared at include/linux/module.h:554)
/root/rt73/Module/rtmp_main.c:120: error: syntax error before "pm_message_t"
/root/rt73/Module/rtmp_main.c:120: warning: function declaration isn't a prototype
/root/rt73/Module/rtmp_main.c:149: error: syntax error before "pm_message_t"
/root/rt73/Module/rtmp_main.c:150: warning: function declaration isn't a prototype
/root/rt73/Module/rtmp_main.c: In function `rt73_suspend':
/root/rt73/Module/rtmp_main.c:155: error: `intf' undeclared (first use in this function)
/root/rt73/Module/rtmp_main.c:155: error: (Each undeclared identifier is reported only once
/root/rt73/Module/rtmp_main.c:155: error: for each function it appears in.)
make[2]: *** [/root/rt73/Module/rtmp_main.o] 错误 1
make[1]: *** [_module_/root/rt73/Module] 错误 2
make[1]: Leaving directory `/usr/src/kernels/2.6.9-78.EL-smp-i686'
make: *** [all] 错误 2
请问怎么解决?谢谢


wangyu 于 2010-06-28 22:17:30发表:
会不会是少了什么库,这东西真看不懂了
奶茶dsk 于 2010-06-28 16:20:55发表:
LZ升级下内核吧,