Unable to compile RT73 driver in 2.6.5 kernel

Live forum: http://rt2x00.serialmonkey.com/viewtopic.php?t=4988

Vance

11-09-2008 03:02:57

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[1] 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[2] *** [/usr/src/rt73-cvs-2008090901/Module/rtmp_main.o] Error 1
make[1] *** [_module_/usr/src/rt73-cvs-2008090901/Module] Error 2
make[1] 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.

Vern

11-09-2008 16:33:04

Hi Vance,

It looks like it may not be picking up header files. What's in '/usr/src/linux-2.6.8'?

Thanks,

Vance

12-09-2008 02:08:56

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.

Vern

12-09-2008 16:28:50

Hi Vance,

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.

Thanks,

Vance

16-09-2008 04:00:21

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.

Vern

20-09-2008 00:59:48

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.

Thanks,