The first few errors explains the problem. AssociationExample.nc -lm AssociationExample.nc:9:23: error: phy_const.h: No such file or directory AssociationExample.nc:10:30: error: phy_enumerations.h: No such file or directory AssociationExample.nc:11:23: error: mac_const.h: No such file or directory AssociationExample.nc:12:30: error: mac_enumerations.h: No such file
Something is strange with the sources you pulled. You are missing something. On Wed, Apr 4, 2012 at 7:14 AM, Juan Martinez < [email protected]> wrote: > any body know why I get this problem. > > xubuntos@xubuntos-tinyos > :/opt/tinyos-2.x-contrib/hurray2x/apps/AssociationExample$ > make telosb install > mkdir -p build/telosb > compiling AssociationExample to a telosb binary > ncc -o build/telosb/main.exe -Os -O > -I/opt/tinyos-2.1.0/tos/ieee802154/includes > -I/opt/tinyos-2.1.0/tos/ieee802154/mac > -I/opt/tinyos-2.1.0/tos/ieee802154/phy > -I/opt/tinyos-2.1.0/tos/ieee802154/timerasync > -I/opt/tinyos-2.1.0/tos/ieee802154/interfaces > -I/opt/tinyos-2.1.0/tos/ieee802154/interfaces/mac > -I/opt/tinyos-2.1.0/tos/ieee802154/interfaces/phy > -I/opt/tinyos-2.1.0/tos/chips/cc2420/ieee802154 -mdisable-hwmul -Wall > -Wshadow -Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c > -board= -DDEFINED_TOS_AM_GROUP=0x22 > -DIDENT_APPNAME=\"AssociationExam\" -DIDENT_USERNAME=\"xubuntos\" > -DIDENT_HOSTNAME=\"xubuntos-tinyos\" -DIDENT_USERHASH=0x00f95284L > -DIDENT_TIMESTAMP=0x4f7c56aeL -DIDENT_UIDHASH=0x0288783aL > AssociationExample.nc -lm > AssociationExample.nc:9:23: error: phy_const.h: No such file or directory > AssociationExample.nc:10:30: error: phy_enumerations.h: No such file > or directory > AssociationExample.nc:11:23: error: mac_const.h: No such file or directory > AssociationExample.nc:12:30: error: mac_enumerations.h: No such file > or directory > AssociationExample.nc:13:22: error: mac_func.h: No such file or directory > AssociationExampleM.nc:7:24: error: printfUART.h: No such file or directory > In file included from AssociationExample.nc:22: > In component `AssociationExampleM': > AssociationExampleM.nc:19: interface MLME_START not found > AssociationExampleM.nc:21: interface MLME_GET not found > AssociationExampleM.nc:22: interface MLME_SET not found > AssociationExampleM.nc:24: interface MLME_BEACON_NOTIFY not found > AssociationExampleM.nc:25: interface MLME_GTS not found > AssociationExampleM.nc:27: interface MLME_ASSOCIATE not found > AssociationExampleM.nc:28: interface MLME_DISASSOCIATE not found > AssociationExampleM.nc:30: interface MLME_ORPHAN not found > AssociationExampleM.nc:32: interface MLME_SYNC not found > AssociationExampleM.nc:33: interface MLME_SYNC_LOSS not found > AssociationExampleM.nc:35: interface MLME_RESET not found > AssociationExampleM.nc:37: interface MLME_SCAN not found > AssociationExampleM.nc:40: interface MCPS_DATA not found > AssociationExampleM.nc:58: syntax error before `pan_des' > AssociationExampleM.nc: In function `Boot.booted': > AssociationExampleM.nc:71: implicit declaration of function > `printfUART_init' > AssociationExampleM.nc: In function `Timer0.fired': > AssociationExampleM.nc:104: interface has no command or event named > `request' > AssociationExampleM.nc:104: `MACSHORTADDRESS' undeclared (first use in > this function) > AssociationExampleM.nc:104: (Each undeclared identifier is reported only > once > AssociationExampleM.nc:104: for each function it appears in.) > AssociationExampleM.nc:110: interface has no command or event named > `request' > AssociationExampleM.nc:110: `MACPANID' undeclared (first use in this > function) > AssociationExampleM.nc:113: interface has no command or event named > `request' > AssociationExampleM.nc:127: interface has no command or event named > `request' > AssociationExampleM.nc:127: `SHORT_ADDRESS' undeclared (first use in > this function) > AssociationExampleM.nc: In function `Timer_Send.fired': > AssociationExampleM.nc:161: interface has no command or event named > `request' > AssociationExampleM.nc:161: `SHORT_ADDRESS' undeclared (first use in > this function) > AssociationExampleM.nc:161: implicit declaration of function > `set_txoptions' > AssociationExampleM.nc: At top level: > AssociationExampleM.nc:168: syntax error before `SCAN_PANDescriptor' > AssociationExampleM.nc:169: `confirm' is not in interface `MLME_SCAN' > AssociationExampleM.nc: In function `MLME_SCAN.confirm': > AssociationExampleM.nc:178: implicit declaration of function `printfUART' > AssociationExampleM.nc:180: `ORPHAN_SCAN' undeclared (first use in > this function) > AssociationExampleM.nc:184: interface has no command or event named > `request' > AssociationExampleM.nc:184: `PASSIVE_SCAN' undeclared (first use in > this function) > AssociationExampleM.nc:190: `ED_SCAN' undeclared (first use in this > function) > AssociationExampleM.nc:207: `PANDescriptorList' undeclared (first use > in this function) > AssociationExampleM.nc:207: subscripted value is neither array nor pointer > AssociationExampleM.nc:209: subscripted value is neither array nor pointer > AssociationExampleM.nc:214: subscripted value is neither array nor pointer > AssociationExampleM.nc:215: subscripted value is neither array nor pointer > AssociationExampleM.nc:216: subscripted value is neither array nor pointer > AssociationExampleM.nc:217: subscripted value is neither array nor pointer > AssociationExampleM.nc:218: subscripted value is neither array nor pointer > AssociationExampleM.nc:222: subscripted value is neither array nor pointer > AssociationExampleM.nc:229: `pan_des' undeclared (first use in this > function) > AssociationExampleM.nc:229: `SHORT_ADDRESS' undeclared (first use in > this function) > AssociationExampleM.nc:230: subscripted value is neither array nor pointer > AssociationExampleM.nc:233: subscripted value is neither array nor pointer > AssociationExampleM.nc:235: subscripted value is neither array nor pointer > AssociationExampleM.nc:247: interface has no command or event named > `request' > AssociationExampleM.nc:247: subscripted value is neither array nor pointer > AssociationExampleM.nc: At top level: > AssociationExampleM.nc:258: `indication' is not in interface `MLME_ORPHAN' > AssociationExampleM.nc: In function `MLME_ORPHAN.indication': > AssociationExampleM.nc:266: implicit declaration of function `printfUART' > AssociationExampleM.nc:271: interface has no command or event named > `response' > AssociationExampleM.nc: At top level: > AssociationExampleM.nc:299: `confirm' is not in interface `MLME_RESET' > AssociationExampleM.nc:309: `indication' is not in interface > `MLME_SYNC_LOSS' > AssociationExampleM.nc: In function `MLME_SYNC_LOSS.indication': > AssociationExampleM.nc:310: implicit declaration of function `printfUART' > AssociationExampleM.nc:312: interface has no command or event named > `request' > AssociationExampleM.nc:312: `ORPHAN_SCAN' undeclared (first use in > this function) > AssociationExampleM.nc: At top level: > AssociationExampleM.nc:321: `confirm' is not in interface `MLME_GTS' > AssociationExampleM.nc:329: `indication' is not in interface `MLME_GTS' > AssociationExampleM.nc:339: syntax error before `PANDescriptor' > AssociationExampleM.nc:340: `indication' is not in interface > `MLME_BEACON_NOTIFY' > AssociationExampleM.nc: In function `MLME_BEACON_NOTIFY.indication': > AssociationExampleM.nc:346: implicit declaration of function `printfUART' > AssociationExampleM.nc:352: interface has no command or event named > `request' > AssociationExampleM.nc:352: `pan_des' undeclared (first use in this > function) > AssociationExampleM.nc:352: `SHORT_ADDRESS' undeclared (first use in > this function) > AssociationExampleM.nc: At top level: > AssociationExampleM.nc:365: `confirm' is not in interface `MLME_START' > AssociationExampleM.nc:374: `confirm' is not in interface `MLME_SET' > AssociationExampleM.nc:383: `confirm' is not in interface `MLME_GET' > AssociationExampleM.nc:393: `indication' is not in interface > `MLME_ASSOCIATE' > AssociationExampleM.nc: In function `MLME_ASSOCIATE.indication': > AssociationExampleM.nc:398: implicit declaration of function `printfUART' > AssociationExampleM.nc:400: interface has no command or event named > `response' > AssociationExampleM.nc:400: `CMD_RESP_ASSOCIATION_SUCCESSFUL' > undeclared (first use in this function) > AssociationExampleM.nc: At top level: > AssociationExampleM.nc:405: `confirm' is not in interface `MLME_ASSOCIATE' > AssociationExampleM.nc: In function `MLME_ASSOCIATE.confirm': > AssociationExampleM.nc:410: implicit declaration of function `printfUART' > AssociationExampleM.nc:429: interface has no command or event named > `request' > AssociationExampleM.nc:429: `MACSHORTADDRESS' undeclared (first use in > this function) > AssociationExampleM.nc: At top level: > AssociationExampleM.nc:441: `indication' is not in interface > `MLME_DISASSOCIATE' > AssociationExampleM.nc:446: `confirm' is not in interface > `MLME_DISASSOCIATE' > AssociationExampleM.nc:460: `confirm' is not in interface `MCPS_DATA' > AssociationExampleM.nc:465: `indication' is not in interface `MCPS_DATA' > AssociationExampleM.nc: In function `try_disassociation': > AssociationExampleM.nc:482: interface has no command or event named > `request' > AssociationExampleM.nc:482: `MAC_PAN_DEVICE_LEAVE' undeclared (first > use in this function) > In component `AssociationExample': > AssociationExample.nc: At top level: > AssociationExample.nc:26: component Mac not found > AssociationExample.nc:39: cannot find `MLME_START' > AssociationExample.nc:41: cannot find `MLME_GET' > AssociationExample.nc:42: cannot find `MLME_SET' > AssociationExample.nc:44: cannot find `MLME_BEACON_NOTIFY' > AssociationExample.nc:45: cannot find `MLME_GTS' > AssociationExample.nc:47: cannot find `MLME_ASSOCIATE' > AssociationExample.nc:48: cannot find `MLME_DISASSOCIATE' > AssociationExample.nc:50: cannot find `MLME_ORPHAN' > AssociationExample.nc:51: cannot find `MLME_SYNC' > AssociationExample.nc:52: cannot find `MLME_SYNC_LOSS' > AssociationExample.nc:53: cannot find `MLME_RESET' > AssociationExample.nc:55: cannot find `MLME_SCAN' > AssociationExample.nc:58: cannot find `MCPS_DATA' > make: *** [exe0] Error 1 > xubuntos@xubuntos-tinyos > :/opt/tinyos-2.x-contrib/hurray2x/apps/AssociationExample$ > thanks > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > -- Eric B. Decker Senior (over 50 :-) Researcher
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
