Unable to compile RT73 driver in 2.6.5 kernel
Hi, all. I encountered an error when trying to compile the drivers on a 2.6.5 kernel. This is the error I encountered when I run the make command
nux/usr/src/rt73-cvs-2008090901/Module # make
make Entering directory `/usr/src/linux-2.6.8'
CC [M] /usr/src/rt73-cvs-2008090901/Module/rtmp_main.o
/usr/src/rt73-cvs-2008090901/Module/rtmp_main.c112 error parse error before "pm_message_t"
/usr/src/rt73-cvs-2008090901/Module/rtmp_main.c112 warning function declaration isn't a prototyp e
/usr/src/rt73-cvs-2008090901/Module/rtmp_main.c2052 error parse error before "pm_message_t"
/usr/src/rt73-cvs-2008090901/Module/rtmp_main.c2053 warning function declaration isn't a prototy pe
/usr/src/rt73-cvs-2008090901/Module/rtmp_main.c In function `rt73_suspend'
/usr/src/rt73-cvs-2008090901/Module/rtmp_main.c2055 error `intf' undeclared (first use in this f unction)
/usr/src/rt73-cvs-2008090901/Module/rtmp_main.c2055 error (Each undeclared identifier is reporte d only once
/usr/src/rt73-cvs-2008090901/Module/rtmp_main.c2055 error for each function it appears in.)
make *** [/usr/src/rt73-cvs-2008090901/Module/rtmp_main.o] Error 1
make *** [_module_/usr/src/rt73-cvs-2008090901/Module] Error 2
make Leaving directory `/usr/src/linux-2.6.8'
rt73.ko failed to build!
make *** [module] Error 1
I tried searching the forum but can't seem to find something related. Hope someone can point me in the right direction. Thanks.
It looks like it may not be picking up header files. What's in '/usr/src/linux-2.6.8'?
Hi Vern, thanks for the reply. /usr/src/linux-2.6.8 basically contains the source kernel I downloaded from kernel.org. I encountered the same error on the 2.6.5 kernel which is actually the one I need to get the driver to work on.
You need to be running the kernel you're building for. The make file picks up its headers from that kernel's source tree. You might try[code31xe5z0g]file /lib/modules/`uname -r`/build[/code31xe5z0g]and make sure whatever it points to has a properly populated include directory.
Hi, I checked the build directory and it looks okay. I was able to compile an older ver 1.0.4 ralink driver using the same kernel source. The compile issue was experienced on both the latest ralink and serialmonkey rt73 drivers.
You might try "make tags" on your kernel source tree, then do [code113kah3c][g]view -t pm_message_t[/code113kah3c]and see if it finds anything.