rt73 Legacy Module (rt73.ko) failed to build! in RHEL4 WS

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

j_75080

28-12-2008 00:56:52

Hello,

My usb network adapter is a D-Link WUA-1340 using the Ralink 2571 (RT73) chipset.

From the rt73-cvs-daily.tar.gz file, I tried, as root, to compile the driver sources using make and received the following error
[root@localhost Module]# make
make[1] Entering directory `/lib/modules/2.6.9-78.0.8.EL/build1'
make[1] *** No rule to make target `WUA-1340/Driver/Linux/cvs/rt73-cvs-2008122517 /Module'. Stop.
make[1] Leaving directory `/lib/modules/2.6.9-78.0.8.EL/build1'
rt73.ko failed to build!
make *** [module] Error 1

The kernel source tree was built using "The Complete Fedora Kernel Headers" article since RHEL4 was built from Fedora 4 and originally placed in the /usr/src/redhat/BUILD/kernel-2.6.9-78.0.8.EL/linux-2.6.9 folder. The contents were then copied to the /lib/modules/2.6.9-78.0.8.EL/build1 folder.

I have read the README and TESTING files in the tar.gz file, the "make in the folder root fails" article in this forum, and various articles on the internet to no avail. Does someone have a suggestion to solve this problem.

Thank you,
John

Spy84464

05-01-2009 18:15:03

Hello,
Is there a space somewhere in the absolute path of the directory you are trying to compile the module in? If so, try to compile the module elsewhere.

Regards,
Romain

j_75080

09-01-2009 21:35:27

Helllo Romain,

Yes, I have a space in the absolute directory. I am now upgrading to RHEL5 Client-Desktop and will try compiling the rt73 module after doing this.

Thank you very much for your help,
John

Vern

10-01-2009 17:48:33

Hi j_75080,

Also, could you post that path here? Maybe there's something clever we can do.

Thanks,

Spy84464

11-01-2009 18:22:06

By the way Vern, if my memory serves me well, ALL legacy drivers fail to compile whenever there is a space in the absolute path of the directory the tarball is extracted in, this is easily reproductable.

Vern

20-01-2009 17:55:05

Hi Spy,

Any ideas for a fix? Too much thinking on my own makes my brain sore.

Thanks,

Spy84464

22-01-2009 22:52:12

Hi,
I had a look, and tried a few things on the top of my mind, but I couldn't get things to work, it seems that the kernel makefile does not like spaces at all. I tried with another out of kernel module (not from ours), and run into the same issue.
We could simply add a check in the Makefiles to warn people about this.

Romain

Vern

23-01-2009 04:05:46

Hi Spy,

Thanks for taking a look at this. Could you post an example of the path format that's causing the problem? Maybe that'll give me a clue as to what's happening.

Thanks,

Spy84464

26-01-2009 18:04:52

Just put your sources in a directory with a space in its name, say "rt73 my_module", the whole path could then be
[code34evaxrc]/home/vern/rt73 Module/[/code34evaxrc]
Which will cause an error like this
[code34evaxrc]make[1]: Entering directory `<kernel sources path>'
make[1]: *** No rule to make target `my_module'. Stop.
make[1]: Leaving directory `<kernel sources path>'[/code34evaxrc]

j_75080

02-02-2009 22:31:25

Hello Vern,

My path used to originally compile the sources was
/root/Desktop/D-Link WUA-1340/Driver/Linux/cvs/2008122517/rt73-cvs-2008122517/Module

with the space between D-Link and WUA-1340. It gave an error
r[root@localhost Module]# make
make[1] Entering directory `/lib/modules/2.6.9-78.0.8.EL/build1'
make[1] *** No rule to make target `WUA-1340/Driver/Linux/cvs/rt73-cvs-2008122517 /Module'. Stop.
make[1] Leaving directory `/lib/modules/2.6.9-78.0.8.EL/build1'
rt73.ko failed to build!
make *** [module] Error 1

After upgrading from RHEL4 WS to RHEL5 Client and updating with 3 RHEL5 Updates (5 kernels in a month), I compiled and installed the rt73 module and the RutilT utility. Everything works well now thanks to Romain's catch of the space in the absolute directory path.

Thanks again,
John
j_75080 D D