build error in rt73.h

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

osx424242

22-11-2007 22:51:41

doing a 'make' on PPC hardware with the tarball I downloaded from http//rt2x00.serialmonkey.com/rt73-cvs-daily.tar.gz, I get this error

make[1] Entering directory `/usr/src/linux-headers-2.6.20-16-powerpc'
CC [M] /home/music/Desktop/rt73-cvs-2007112215/Module/rtmp_main.o
In file included from /home/music/Desktop/rt73-cvs-2007112215/Module/rtmp_main.c36
/home/music/Desktop/rt73-cvs-2007112215/Module/rt_config.h422 warning #warning "Big endian support is still experimental, use at your own risk."
In file included from /home/music/Desktop/rt73-cvs-2007112215/Module/rt_config.h189,
from /home/music/Desktop/rt73-cvs-2007112215/Module/rtmp_main.c36
/home/music/Desktop/rt73-cvs-2007112215/Module/rt73.h864 error conflicting types for ‘PMAC_CSR12_STRUC’
/home/music/Desktop/rt73-cvs-2007112215/Module/rt73.h864 error previous declaration of ‘PMAC_CSR12_STRUC’ was here
make[2] *** [/home/music/Desktop/rt73-cvs-2007112215/Module/rtmp_main.o] Error 1
make[1] *** [_module_/home/music/Desktop/rt73-cvs-2007112215/Module] Error 2
make[1] Leaving directory `/usr/src/linux-headers-2.6.20-16-powerpc'
rt73.ko failed to build!
make *** [module] Error 1


I 'fixed' it by removing the 'P' on that line in rt73 and was able to successfully build, but no idea if that will cause any other problems. Anyway, just thought someone might want to know.

Vern

23-11-2007 18:34:01

Be nice if we could get it right the first time, wouldn't it?

Thanks for the info. Fix in CVS. Should appear in tarball Soon.

osx424242

24-11-2007 04:59:17

just curious, what was the fix? Was the extra 'P' just a typo and that is all you removed, or was the fix more involved (meaning I should download and compile again)?

Vern

24-11-2007 05:07:32

Hi osx424242,

The extra 'P' was a typo, but the fix is more involved. I forgot about this when composing my earlier reply. Could you go here [url2rw165q7]http://rt2x00.serialmonkey.com/phpBB2/viewtopic.php?t=4194&start=30[/url2rw165q7]
and try ppc6.patch.gz?

Thanks,

osx424242

25-11-2007 02:16:30

I applied the patch and rebuilt, but still couldn't get wireless to work. I don't know that the problem is actually related to the driver, since I've tried plenty of "this worked for me" hints on different forums. I think I just need to start over and try again. But, before I do that, if it would be helpful to you I can certainly re-compile and run with debug flags (if you let me know what level of debugging you want).

I'll attach my 'script' output in case it's useful; at the end of typescript.1 I rebooted, then recorded a few more attempts.

I've been using the manual setup in /etc/network/interfaces although I have network-manager-gnome installed, because NM doesn't want to use WPA encryption.

I'm not looking for help getting this all set up (well, not yet )) because I think most of the problems are my own fault right now, I'm more hoping over the next couple days to help you with any code issues.

Vern

25-11-2007 17:47:43

Hi osx424242,

Well, thanks for the old college try. I guess I should have been more explicit The driver does not work in big endian (e.g. PPC) mode.

What I really wanted was that you compile the patched driver in debug mode, run it with debug=15 (or 31), and attach a copy of the gzipped /var/log/debug to a post in that thread, which is where I'm working the problem.

You can get additional info in rt73/README and rt73/Module/TESTING.

Thanks,

osx424242

26-11-2007 00:55:34

Cool, you saved me a ton of time trying things out this weekend, then )
I'll post debug output to the other thread.