| 42 | |
| 43 | === 10/23/08 === |
| 44 | |
| 45 | Discovered the issue was that I had a space in the name of the containing directory, and the cc targets were getting confused. The 9.04 stock distribution of madwifi does indeed compile appropriately. But make install fails. |
| 46 | |
| 47 | This is however of no consequence, because unbt hal (the ubiquiti hal) comes with it's own version of mad-wifi which it patches. Previously I hunted the documentation to find what version of mad-wifi was the one that should be patched with this ubnt hal, but could find it documented any where. It does however list it in the make file, and retains a copy of it in the src directory. For reference the version it comes with is madwifi-dfs-r3319-20080201. |
| 48 | |
| 49 | It says I should be able to run make from the "main package directory" which I guess means the top level directory as there is a make file there, and it has patch targets for the included version of madwifi. It looks like there are targets to downlad the src from www.madwifi.org. However the download target does nothing. |
| 50 | |
| 51 | The unpack target on the other hand, does extract a copy of the source from a stored tgz file. |
| 52 | |
| 53 | The make all command fails with: |
| 54 | {{{ |
| 55 | /home/ubiquiti/ubnt-hal-0.6.280/src/madwifi-dfs-r3319-20080201/net80211/ieee80211_output.c:87:21: error: macro "for_each_netdev" requires 2 arguments, but only 1 given |
| 56 | /home/ubiquiti/ubnt-hal-0.6.280/src/madwifi-dfs-r3319-20080201/net80211/ieee80211_output.c: In function 'ieee80211_setup_macclone': |
| 57 | /home/ubiquiti/ubnt-hal-0.6.280/src/madwifi-dfs-r3319-20080201/net80211/ieee80211_output.c:87: error: 'for_each_netdev' undeclared (first use in this function) |
| 58 | /home/ubiquiti/ubnt-hal-0.6.280/src/madwifi-dfs-r3319-20080201/net80211/ieee80211_output.c:87: error: (Each undeclared identifier is reported only once |
| 59 | /home/ubiquiti/ubnt-hal-0.6.280/src/madwifi-dfs-r3319-20080201/net80211/ieee80211_output.c:87: error: for each function it appears in.) |
| 60 | /home/ubiquiti/ubnt-hal-0.6.280/src/madwifi-dfs-r3319-20080201/net80211/ieee80211_output.c:88: error: expected ';' before 'if' |
| 61 | make[4]: *** [/home/ubiquiti/ubnt-hal-0.6.280/src/madwifi-dfs-r3319-20080201/net80211/ieee80211_output.o] Error 1 |
| 62 | make[3]: *** [/home/ubiquiti/ubnt-hal-0.6.280/src/madwifi-dfs-r3319-20080201/net80211] Error 2 |
| 63 | make[2]: *** [_module_/home/ubiquiti/ubnt-hal-0.6.280/src/madwifi-dfs-r3319-20080201] Error 2 |
| 64 | make[2]: Leaving directory `/usr/src/linux-headers-2.6.24-21-generic' |
| 65 | make[1]: *** [modules] Error 2 |
| 66 | make[1]: Leaving directory `/home/ubiquiti/ubnt-hal-0.6.280/src/madwifi-dfs-r3319-20080201' |
| 67 | make: *** [build] Error 2 |
| 68 | root@ubiquiti-desktop:~/ubnt-hal-0.6.280# |
| 69 | }}} |
| 70 | |
| 71 | however if I just unpack and build (i.e. Don't patch), the build happens just fine. |