#83 wifi compile error: aodv.cc broken

closed-fixed
Brian Gerkey
player (137)
5
2004-11-12
2004-11-12
Anonymous
No

Version: player-1.5
System: Debian Linux (Sid), kernel 2.6.6, gcc 3.3.5

When trying to compile the "wifi" driver, I get this error:

aodv.cc:155: error: 'struct player_wifi_link' has no
member named 'qual_type'

And, certainly, struct player_wifi_link does not have a
qual_type member:

---------------------------------------------------
server/player.h:2398:

typedef struct player_wifi_link
{
/** IP address of destination. */
char ip[32];

/** Link quality, level and noise information */
// these could be uint8_t instead, <linux/wireless.h>
will only
// return that much. maybe some other architecture
needs larger??
uint16_t qual, level, noise;
} __attribute__ ((packed)) player_wifi_link_t;
----------------------------------------------------

The solution I found to compile the driver:

----------------------------------------------------
diff aodv_patched.cc aodv.cc
155c155
< // link->qual_type = PLAYER_WIFI_QUAL_UNKNOWN;
---
> link->qual_type = PLAYER_WIFI_QUAL_UNKNOWN;
----------------------------------------------------

Other data:

configure line:
./configure --enable-er --enable-sickpls
--enable-cmucam2 --enable-amtecpowercube
--enable-flockofbirds --enable-trogdor
--enable-clodbuster --enable-wavefront --enable-aodv
--enable-nomad

make output:

Making all in wifi
make[5]: Entering directory
`/home/dave/daves/debian/robot/player/build/player-1.5/server/drivers/wifi'
g++ -DHAVE_CONFIG_H -I. -I. -I../../..
-I../../../server -Wall -I../../../server -g -O2 -c
linuxwifi.cc
rm -f liblinuxwifi.a
ar cru liblinuxwifi.a linuxwifi.o
ranlib liblinuxwifi.a
g++ -DHAVE_CONFIG_H -I. -I. -I../../..
-I../../../server -Wall -I../../../server -g -O2 -c
aodv.cc
aodv.cc: En member function `virtual size_t
Aodv::GetData(void*, unsigned
char*, unsigned int, uint32_t*, uint32_t*)':
aodv.cc:155: error: 'struct player_wifi_link' has no
member named 'qual_type'
make[5]: *** [aodv.o] Error 1
make[5]: Leaving directory
`/home/dave/daves/debian/robot/player/build/player-1.5/server/drivers/wifi'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/home/dave/daves/debian/robot/player/build/player-1.5/server/drivers'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/home/dave/daves/debian/robot/player/build/player-1.5/server'
make[2]: *** [all-recursive-am] Error 2
make[2]: Leaving directory
`/home/dave/daves/debian/robot/player/build/player-1.5/server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/dave/daves/debian/robot/player/build/player-1.5'
make: *** [all-recursive-am] Error 2

David L. Moreno
dave@dec.usc.es

Discussion

  • Brian Gerkey
    Brian Gerkey
    2004-11-12

    • status: open --> closed-fixed
     
  • Brian Gerkey
    Brian Gerkey
    2004-11-12

    Logged In: YES
    user_id=211013

    Thanks for the patch. This has been fixed in CVS.