rt2570 Make fails

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

radicals

23-02-2009 16:03:40

I am trying to get the rt2570 driver work on CentOS 4.7, but I am getting the following errors

[codef4x0tmvc]make[1]: Entering directory `/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9'
CC [M] /root/DownloadedSoftware/belkin/rt2570-cvs-2009022308/Module/rtusb_main.o
In file included from /root/DownloadedSoftware/belkin/rt2570-cvs-2009022308/Module/rtusb_main.c:36:
/root/DownloadedSoftware/belkin/rt2570-cvs-2009022308/Module/rt_config.h:260: warning: function declaration isn't a prototype
/root/DownloadedSoftware/belkin/rt2570-cvs-2009022308/Module/rt_config.h: In function `try_to_freeze':
/root/DownloadedSoftware/belkin/rt2570-cvs-2009022308/Module/rt_config.h:262: warning: implicit declaration of function `refrigerator'
/root/DownloadedSoftware/belkin/rt2570-cvs-2009022308/Module/rtusb_main.c: At top level:
/root/DownloadedSoftware/belkin/rt2570-cvs-2009022308/Module/rtusb_main.c:240: error: syntax error before "pm_message_t"
/root/DownloadedSoftware/belkin/rt2570-cvs-2009022308/Module/rtusb_main.c:240: warning: function declaration isn't a prototype
/root/DownloadedSoftware/belkin/rt2570-cvs-2009022308/Module/rtusb_main.c:1749: error: syntax error before "pm_message_t"
/root/DownloadedSoftware/belkin/rt2570-cvs-2009022308/Module/rtusb_main.c:1750: warning: function declaration isn't a prototype
/root/DownloadedSoftware/belkin/rt2570-cvs-2009022308/Module/rtusb_main.c: In function `rt2570_suspend':
/root/DownloadedSoftware/belkin/rt2570-cvs-2009022308/Module/rtusb_main.c:1752: error: `intf' undeclared (first use in this function)
/root/DownloadedSoftware/belkin/rt2570-cvs-2009022308/Module/rtusb_main.c:1752: error: (Each undeclared identifier is reported only once
/root/DownloadedSoftware/belkin/rt2570-cvs-2009022308/Module/rtusb_main.c:1752: error: for each function it appears in.)
make[2]: *** [/root/DownloadedSoftware/belkin/rt2570-cvs-2009022308/Module/rtusb_main.o] Error 1
make[1]: *** [_module_/root/DownloadedSoftware/belkin/rt2570-cvs-2009022308/Module] Error 2
make[1]: Leaving directory `/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9'
rt2570.ko failed to build!
make: *** [module] Error 1
[/codef4x0tmvc]

What should I do to sort this out?

Vern

24-02-2009 16:18:02

Hi radicals,

I guess the first thing is to make sure you have the kernel headers for your kernel version installed.

Thanks,

radicals

24-02-2009 17:01:08

I have installed the headers, and tried the make command again with the following result

[code20olctfx]make[1]: Entering directory `/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9'
CC [M] /root/DownloadedSoftware/belkin/rt2570-cvs-2009022308/Module/rtusb_main.o
In file included from /root/DownloadedSoftware/belkin/rt2570-cvs-2009022308/Module/rtusb_main.c:36:
/root/DownloadedSoftware/belkin/rt2570-cvs-2009022308/Module/rt_config.h:260: warning: function declaration isn't a prototype
/root/DownloadedSoftware/belkin/rt2570-cvs-2009022308/Module/rt_config.h: In function `try_to_freeze':
/root/DownloadedSoftware/belkin/rt2570-cvs-2009022308/Module/rt_config.h:262: warning: implicit declaration of function `refrigerator'
/root/DownloadedSoftware/belkin/rt2570-cvs-2009022308/Module/rtusb_main.c: At top level:
/root/DownloadedSoftware/belkin/rt2570-cvs-2009022308/Module/rtusb_main.c:240: error: syntax error before "pm_message_t"
/root/DownloadedSoftware/belkin/rt2570-cvs-2009022308/Module/rtusb_main.c:240: warning: function declaration isn't a prototype
/root/DownloadedSoftware/belkin/rt2570-cvs-2009022308/Module/rtusb_main.c:1749: error: syntax error before "pm_message_t"
/root/DownloadedSoftware/belkin/rt2570-cvs-2009022308/Module/rtusb_main.c:1750: warning: function declaration isn't a prototype
/root/DownloadedSoftware/belkin/rt2570-cvs-2009022308/Module/rtusb_main.c: In function `rt2570_suspend':
/root/DownloadedSoftware/belkin/rt2570-cvs-2009022308/Module/rtusb_main.c:1752: error: `intf' undeclared (first use in this function)
/root/DownloadedSoftware/belkin/rt2570-cvs-2009022308/Module/rtusb_main.c:1752: error: (Each undeclared identifier is reported only once
/root/DownloadedSoftware/belkin/rt2570-cvs-2009022308/Module/rtusb_main.c:1752: error: for each function it appears in.)
make[2]: *** [/root/DownloadedSoftware/belkin/rt2570-cvs-2009022308/Module/rtusb_main.o] Error 1
make[1]: *** [_module_/root/DownloadedSoftware/belkin/rt2570-cvs-2009022308/Module] Error 2
make[1]: Leaving directory `/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9'
rt2570.ko failed to build!
make: *** [module] Error 1
[/code20olctfx]

It therefore still fails to install.