--- On Tue, 12/1/09, Philip Levis <p...@cs.stanford.edu> wrote:
> hi > > in opt/tinyos-2.x/apps/Blink>make micaz sim > gives the following error how to fix it. i am new in this field. plz let me > know as soon as possible. > [r...@computer Blink]# make micaz sim > mkdir -p simbuild/micaz > placing object files in simbuild/micaz > writing XML schema to app.xml > compiling BlinkAppC to object file sim.o > ncc -c -shared -fPIC -o simbuild/micaz/sim.o -g -O0 -tossim > -fnesc-nido-tosnodes=1000 -fnesc-simulate > -fnesc-nido-motenumber=sim_node\(\) -Wall -Wshadow -Wnesc-all -target=micaz > -fnesc-cfile=simbuild/micaz/app.c -board=micasb -DDEFINED_TOS_AM_GROUP=0x22 > --param max-inline-insns-single=100000 -DIDENT_APPNAME=\"BlinkAppC\" > -DIDENT_USERNAME=\"root\" -DIDENT_HOSTNAME=\"computer\" > -DIDENT_USERHASH=0xe920530fL -DIDENT_TIMESTAMP=0x4b152b99L > -DIDENT_UIDHASH=0x041598b4L -Wno-nesc-data-race > BlinkAppC.nc -fnesc-dump=components -fnesc-dump=variables > -fnesc-dump=constants -fnesc-dump=typedefs -fnesc-dump=interfacedefs > -fnesc-dump=tags -fnesc-dumpfile=app.xml > In file included from /opt/tinyos-2.x/tos/lib/tossim/platform_message.h:38, > from /opt/tinyos-2.x/tos/types/message.h:4, > from /opt/tinyos-2.x/tos/lib/tossim/sim_packet.c:36, > from /opt/tinyos-2.x/tos/lib/tossim/tos.h:98: > /opt/tinyos-2.x/tos/lib/tossim/TossimRadioMsg.h:4:16: error: AM.h: No such > file or directory > In file included from /opt/tinyos-2.x/tos/lib/tossim/platform_message.h:38, > from /opt/tinyos-2.x/tos/types/message.h:4, > from /opt/tinyos-2.x/tos/lib/tossim/sim_packet.c:36, > from /opt/tinyos-2.x/tos/lib/tossim/tos.h:98: > /opt/tinyos-2.x/tos/lib/tossim/TossimRadioMsg.h:7: syntax error before > `nx_am_addr_t' > /opt/tinyos-2.x/tos/lib/tossim/TossimRadioMsg.h:7: warning: no semicolon at > end of struct or union > /opt/tinyos-2.x/tos/lib/tossim/TossimRadioMsg.h:8: syntax error before `src' > /opt/tinyos-2.x/tos/lib/tossim/TossimRadioMsg.h:10: syntax error before > `group' > /opt/tinyos-2.x/tos/lib/tossim/TossimRadioMsg.h:11: syntax error before `type' > /opt/tinyos-2.x/tos/lib/tossim/TossimRadioMsg.h:12: warning: type defaults to > `int' in declaration of `tossim_header_t' > /opt/tinyos-2.x/tos/lib/tossim/TossimRadioMsg.h:12: warning: data definition > has no type or storage class > In file included from /opt/tinyos-2.x/tos/lib/tossim/platform_message.h:39, > from /opt/tinyos-2.x/tos/types/message.h:4, > from /opt/tinyos-2.x/tos/lib/tossim/sim_packet.c:36, > from /opt/tinyos-2.x/tos/lib/tossim/tos.h:98: > /opt/tinyos-2.x/tos/lib/serial/Serial.h:113: syntax error before > `nx_am_addr_t' > /opt/tinyos-2.x/tos/lib/serial/Serial.h:113: warning: no semicolon at end of > struct or union > /opt/tinyos-2.x/tos/lib/serial/Serial.h:114: syntax error before `src' > /opt/tinyos-2.x/tos/lib/serial/Serial.h:116: syntax error before `group' > /opt/tinyos-2.x/tos/lib/serial/Serial.h:117: syntax error before `type' > /opt/tinyos-2.x/tos/lib/serial/Serial.h:118: warning: type defaults to `int' > in declaration of `serial_header_t' > /opt/tinyos-2.x/tos/lib/serial/Serial.h:118: warning: data definition has no > type or storage class > /opt/tinyos-2.x/tos/lib/serial/Serial.h:121: syntax error before > `serial_header_t' > /opt/tinyos-2.x/tos/lib/serial/Serial.h:121: warning: no semicolon at end of > struct or union > /opt/tinyos-2.x/tos/lib/serial/Serial.h:123: syntax error before `}' > /opt/tinyos-2.x/tos/lib/serial/Serial.h:123: warning: type defaults to `int' > in declaration of `serial_packet_t' > /opt/tinyos-2.x/tos/lib/serial/Serial.h:123: warning: data definition has no > type or storage class > In file included from /opt/tinyos-2.x/tos/types/message.h:4, > from /opt/tinyos-2.x/tos/lib/tossim/sim_packet.c:36, > from /opt/tinyos-2.x/tos/lib/tossim/tos.h:98: > /opt/tinyos-2.x/tos/lib/tossim/platform_message.h:42: syntax error before > `tossim_header_t' > /opt/tinyos-2.x/tos/lib/tossim/platform_message.h:42: warning: no semicolon > at end of struct or union > /opt/tinyos-2.x/tos/lib/tossim/platform_message.h:43: syntax error before > `serial' > /opt/tinyos-2.x/tos/lib/tossim/platform_message.h:44: warning: type defaults > to `int' in declaration of `message_header_t' > /opt/tinyos-2.x/tos/lib/tossim/platform_message.h:44: warning: data > definition has no type or storage class > In file included from /opt/tinyos-2.x/tos/lib/tossim/tos.h:98: > /opt/tinyos-2.x/tos/lib/tossim/sim_packet.c:42: syntax error before `*' > /opt/tinyos-2.x/tos/lib/tossim/sim_packet.c: In function > `sim_packet_set_source': > /opt/tinyos-2.x/tos/lib/tossim/sim_packet.c:47: `hdr' undeclared (first use > in this function) > /opt/tinyos-2.x/tos/lib/tossim/sim_packet.c:47: (Each undeclared identifier > is reported only once > /opt/tinyos-2.x/tos/lib/tossim/sim_packet.c:47: for each function it appears > in.) > /opt/tinyos-2.x/tos/lib/tossim/sim_packet.c:47: warning: implicit declaration > of function `getHeader' > /opt/tinyos-2.x/tos/lib/tossim/sim_packet.c: In function `sim_packet_source': > /opt/tinyos-2.x/tos/lib/tossim/sim_packet.c:52: `hdr' undeclared (first use > in this function) > /opt/tinyos-2.x/tos/lib/tossim/sim_packet.c:52: warning: implicit declaration > of function `getHeader' > /opt/tinyos-2.x/tos/lib/tossim/sim_packet.c: In function > `sim_packet_set_destination': > /opt/tinyos-2.x/tos/lib/tossim/sim_packet.c:57: `hdr' undeclared (first use > in this function) > /opt/tinyos-2.x/tos/lib/tossim/sim_packet.c:57: warning: implicit declaration > of function `getHeader' > /opt/tinyos-2.x/tos/lib/tossim/sim_packet.c: In function > `sim_packet_destination': > /opt/tinyos-2.x/tos/lib/tossim/sim_packet.c:62: `hdr' undeclared (first use > in this function) > /opt/tinyos-2.x/tos/lib/tossim/sim_packet.c:62: warning: implicit declaration > of function `getHeader' > /opt/tinyos-2.x/tos/lib/tossim/sim_packet.c: At top level: > /opt/tinyos-2.x/tos/lib/tossim/sim_packet.c:66: warning: declaration of > `length' shadows global declaration > /opt/tinyos-2.x/tos/lib/serial/Serial.h:115: warning: location of shadowed > declaration > /opt/tinyos-2.x/tos/lib/tossim/sim_packet.c: In function > `sim_packet_set_length': > /opt/tinyos-2.x/tos/lib/tossim/sim_packet.c:67: `hdr' undeclared (first use > in this function) > /opt/tinyos-2.x/tos/lib/tossim/sim_packet.c:67: warning: implicit declaration > of function `getHeader' > /opt/tinyos-2.x/tos/lib/tossim/sim_packet.c: In function `sim_packet_length': > /opt/tinyos-2.x/tos/lib/tossim/sim_packet.c:71: `hdr' undeclared (first use > in this function) > /opt/tinyos-2.x/tos/lib/tossim/sim_packet.c:71: warning: implicit declaration > of function `getHeader' > /opt/tinyos-2.x/tos/lib/tossim/sim_packet.c: In function > `sim_packet_set_type': > /opt/tinyos-2.x/tos/lib/tossim/sim_packet.c:76: `hdr' undeclared (first use > in this function) > /opt/tinyos-2.x/tos/lib/tossim/sim_packet.c:76: warning: implicit declaration > of function `getHeader' > /opt/tinyos-2.x/tos/lib/tossim/sim_packet.c: In function `sim_packet_type': > /opt/tinyos-2.x/tos/lib/tossim/sim_packet.c:81: `hdr' undeclared (first use > in this function) > /opt/tinyos-2.x/tos/lib/tossim/sim_packet.c:81: warning: implicit declaration > of function `getHeader' > /opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc:34:16: error: AM.h: No > such file or directory > /opt/tinyos-2.x/tos/interfaces/AMSend.nc:45:16: error: AM.h: No such file or > directory > In file included from > /opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc:39, > from /opt/tinyos-2.x/tos/lib/tossim/MainC.nc:64, > from BlinkAppC.nc:45: > In interface `AMSend': > /opt/tinyos-2.x/tos/interfaces/AMSend.nc: At top level: > /opt/tinyos-2.x/tos/interfaces/AMSend.nc:69: syntax error before `addr' > In file included from /opt/tinyos-2.x/tos/interfaces/AMSend.nc:69, > from >/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc:39, > from /opt/tinyos-2.x/tos/lib/tossim/MainC.nc:64, > from BlinkAppC.nc:45: > /opt/tinyos-2.x/tos/interfaces/AMSend.nc:60: msg is not a function parameter > In file included from /opt/tinyos-2.x/tos/lib/tossim/MainC.nc:64, > from BlinkAppC.nc:45: > In component `TossimActiveMessageC': > /opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc:39: syntax error > before `am_id_t' > In file included from /opt/tinyos-2.x/tos/lib/tossim/MainC.nc:64, > from BlinkAppC.nc:45: > /opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc:40: syntax error > before `am_id_t' > /opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc:41: syntax error > before `am_id_t' > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:48:16: error: AM.h: No such file > or directory > In file included from > /opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc:44, > from /opt/tinyos-2.x/tos/lib/tossim/MainC.nc:64, > from BlinkAppC.nc:45: > In interface `AMPacket': > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:57: only commands and events can > be defined in interfaces > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:57: warning: return-type defaults > to `int' > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:57: syntax error before `address' > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:67: only commands and events can > be defined in interfaces > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:67: warning: return-type defaults > to `int' > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:67: redefinition of `am_addr_t' > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:67: syntax error before > `destination' > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:77: only commands and events can > be defined in interfaces > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:77: warning: return-type defaults > to `int' > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:77: redefinition of `am_addr_t' > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:77: syntax error before `source' > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:92: syntax error before `am_addr_t' > In file included from /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:92, > from >/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc:44, > from /opt/tinyos-2.x/tos/lib/tossim/MainC.nc:64, > from BlinkAppC.nc:45: > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:88: redeclaration of `amsg' > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:92: previous declaration of `amsg' > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:110: syntax error before > `am_addr_t' > In file included from /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:110, > from >/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc:44, > from /opt/tinyos-2.x/tos/lib/tossim/MainC.nc:64, > from BlinkAppC.nc:45: > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:106: redeclaration of `amsg' > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:110: previous declaration of `amsg' > In file included from > /opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc:44, > from /opt/tinyos-2.x/tos/lib/tossim/MainC.nc:64, > from BlinkAppC.nc:45: > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:136: only commands and events can > be defined in interfaces > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:136: warning: return-type defaults > to `int' > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:136: syntax error before `type' > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:151: syntax error before `am_id_t' > In file included from /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:151, > from >/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc:44, > from /opt/tinyos-2.x/tos/lib/tossim/MainC.nc:64, > from BlinkAppC.nc:45: > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:147: redeclaration of `amsg' > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:151: previous declaration of `amsg' > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:166: only commands and events can > be defined in interfaces > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:166: warning: return-type defaults > to `int' > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:166: syntax error before `group' > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:176: syntax error before > `am_group_t' > In file included from /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:176, > from >/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc:44, > from /opt/tinyos-2.x/tos/lib/tossim/MainC.nc:64, > from BlinkAppC.nc:45: > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:173: redeclaration of `amsg' > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:176: previous declaration of `amsg' > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:184: only commands and events can > be defined in interfaces > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:184: warning: return-type defaults > to `int' > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:184: redefinition of `am_group_t' > /opt/tinyos-2.x/tos/interfaces/AMPacket.nc:184: syntax error before > `localGroup' > In file included from /opt/tinyos-2.x/tos/lib/tossim/MainC.nc:64, > from BlinkAppC.nc:45: > In component `TossimActiveMessageC': > /opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc:49: variables and > functions cannot be declared in component specifications > /opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc:49: warning: type > defaults to `int' in declaration of `am_addr_t' > /opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc:49: syntax error > before `amAddress' > /opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc:57: syntax error > before `*' > TossimActiveMessageC: `AMSend.send' not implemented > TossimActiveMessageC: `AMSend.getPayload' not implemented > TossimActiveMessageC: `AMSend.maxPayloadLength' not implemented > TossimActiveMessageC: `AMSend.cancel' not implemented > TossimActiveMessageC: `Packet.clear' not implemented > TossimActiveMessageC: `Packet.payloadLength' not implemented > TossimActiveMessageC: `Packet.getPayload' not implemented > TossimActiveMessageC: `Packet.maxPayloadLength' not implemented > TossimActiveMessageC: `Packet.setPayloadLength' not implemented > TossimActiveMessageC: `TossimPacket.strength' not implemented > TossimActiveMessageC: `Model.receive' not implemented > TossimActiveMessageC: `Model.sendDone' not implemented > TossimActiveMessageC: `Model.shouldAck' not implemented > TossimActiveMessageC: `AMPacket.am_group_t' not implemented > TossimActiveMessageC: `AMPacket.am_group_t' not implemented > TossimActiveMessageC: `AMPacket.am_addr_t' not implemented > TossimActiveMessageC: `AMPacket.am_addr_t' not implemented > TossimActiveMessageC: `AMPacket.am_addr_t' not implemented > TossimActiveMessageC: `AMPacket.setSource' not implemented > TossimActiveMessageC: `AMPacket.setDestination' not implemented > TossimActiveMessageC: `AMPacket.am_id_t' not implemented > TossimActiveMessageC: `AMPacket.setType' not implemented > TossimActiveMessageC: `AMPacket.isForMe' not implemented > TossimActiveMessageC: `AMPacket.setGroup' not implemented > make: *** [sim-exe] Error 1 > [r...@computer Blink]# > > plz help me it would be great oblidge to me > > >
_______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help