I think people will see a lot of this. The error:
> FaultDetectionC.nc:217: warning: passing argument 2 of
> `Send.getPayload' makes integer from pointer without a cast
Results from a recent interface change. What you've got is something like:
BlinkToRadioMsg* btrpkt = (BlinkToRadioMsg*)(call
Packet.getPayload(&pkt, NULL));
What you need is something like this:
BlinkToRadioMsg* btrpkt = (BlinkToRadioMsg*)(call
Packet.getPayload(&pkt, sizeof(BlinkToRadioMsg)));
if (o == NULL) {
return;
}
Another example can be seen here:
http://tinyos.cvs.sourceforge.net/tinyos/tinyos-2.x/apps/MViz/MVizC.nc?r1=1.2&r2=1.3
Cheers
Chad
On 9/24/07, Iñigo Urteaga <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I have been using Collection Tree Protocol this past weeks without any
> problem in TOSSIM. However, I have updated today my tinyos-2.x
> directory with cvs and now I get errors when compiling my programs
> (that worked last week).
>
> I append the error output. I can't figure out why this happens, since
> I am not explicitly calling cc2420 modules.
>
> Thanks in advance,
>
> Iñigo
>
>
> /**********************************************/
> mkdir -p build/micaz
> placing object files in build/micaz
> writing XML schema to app.xml
> compiling FaultDetectionAppC to object file sim.o
> ncc -c -shared -fPIC -o build/micaz/sim.o -g -O0 -tossim
> -fnesc-nido-tosnodes=1000 -fnesc-simulate
> -fnesc-nido-motenumber=sim_node\(\) -finline-limit=100000 -Wall
> -Wshadow -Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c
> -board=micasb -I/opt/tinyos-2.x/tos/lib/net
> -I/opt/tinyos-2.x/tos/lib/net/le -I/opt/tinyos-2.x/tos/lib/net/ctp
> -DIDENT_PROGRAM_NAME=\"FaultDetectionA\" -DIDENT_USER_ID=\"urteaga\"
> -DIDENT_HOSTNAME=\"Txarlys\" -DIDENT_USER_HASH=0x8627c931L
> -DIDENT_UNIX_TIME=0x46f85e83L -DIDENT_UID_HASH=0x80a21023L
> -Wno-nesc-data-race FaultDetectionAppC.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 FaultDetectionAppC.nc:7:
> In component `FaultDetectionC':
> FaultDetectionC.nc: In function `SendValueTask.runTask':
> FaultDetectionC.nc:217: warning: passing argument 2 of
> `Send.getPayload' makes integer from pointer without a cast
> In file included from /opt/tinyos-2.x/tos/lib/net/ctp/CtpP.nc:134,
> from /opt/tinyos-2.x/tos/lib/net/ctp/CollectionC.nc:69,
> from FaultDetectionAppC.nc:13:
> In component `CtpRoutingEngineP':
> /opt/tinyos-2.x/tos/lib/net/ctp/CtpRoutingEngineP.nc: At top level:
> /opt/tinyos-2.x/tos/lib/net/ctp/CtpRoutingEngineP.nc:117: interface
> CompareBit not found
> /opt/tinyos-2.x/tos/lib/net/ctp/CtpRoutingEngineP.nc:661:
> `shouldInsert' is not in interface `CompareBit'
> In file included from
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:37,
> from /opt/tinyos-2.x/tos/lib/net/ctp/CtpP.nc:191,
> from /opt/tinyos-2.x/tos/lib/net/ctp/CollectionC.nc:69,
> from FaultDetectionAppC.nc:13:
> In C file:
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:75: syntax error before `nx_bool'
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:75: warning: no semicolon at
> end of struct or union
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:76: syntax error before `ack'
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:77: `time' redeclared as
> different kind of symbol
> /usr/include/time.h:187: previous declaration of `time'
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:86: syntax error before `}'
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:86: warning: type defaults
> to `int' in declaration of `cc2420_metadata_t'
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:86: warning: data definition
> has no type or storage class
> In file included from /opt/tinyos-2.x/tos/lib/net/ctp/CtpP.nc:191,
> from /opt/tinyos-2.x/tos/lib/net/ctp/CollectionC.nc:69,
> from FaultDetectionAppC.nc:13:
> In component `CC2420ActiveMessageC':
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:48: interface
> CC2420Packet not found
> In file included from /opt/tinyos-2.x/tos/lib/net/ctp/CtpP.nc:191,
> from /opt/tinyos-2.x/tos/lib/net/ctp/CollectionC.nc:69,
> from FaultDetectionAppC.nc:13:
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:51: interface
> RadioBackoff not found
> In file included from
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:58,
> from /opt/tinyos-2.x/tos/lib/net/ctp/CtpP.nc:191,
> from /opt/tinyos-2.x/tos/lib/net/ctp/CollectionC.nc:69,
> from FaultDetectionAppC.nc:13:
> In component `CC2420ActiveMessageP':
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:49: interface
> CC2420PacketBody not found
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:50: interface
> CC2420Config not found
> In file included from
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:58,
> from /opt/tinyos-2.x/tos/lib/net/ctp/CtpP.nc:191,
> from /opt/tinyos-2.x/tos/lib/net/ctp/CollectionC.nc:69,
> from FaultDetectionAppC.nc:13:
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
> `AMSend.send':
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:64: interface
> has no command or event named `getHeader'
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:67: interface
> has no command or event named `getPanAddr'
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
> `AMPacket.destination':
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:90: interface
> has no command or event named `getHeader'
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
> `AMPacket.source':
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:95: interface
> has no command or event named `getHeader'
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
> `AMPacket.setDestination':
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:100:
> interface has no command or event named `getHeader'
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
> `AMPacket.setSource':
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:105:
> interface has no command or event named `getHeader'
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
> `AMPacket.type':
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:115:
> interface has no command or event named `getHeader'
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
> `AMPacket.setType':
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:120:
> interface has no command or event named `getHeader'
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
> `AMPacket.group':
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:125:
> interface has no command or event named `getHeader'
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
> `AMPacket.setGroup':
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:130:
> interface has no command or event named `getHeader'
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
> `AMPacket.localGroup':
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:134:
> interface has no command or event named `getPanAddr'
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
> `Packet.payloadLength':
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:143:
> interface has no command or event named `getHeader'
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
> `Packet.setPayloadLength':
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:147:
> interface has no command or event named `getHeader'
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc: At top level:
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:181:
> `syncDone' is not in interface `CC2420Config'
> In file included from /opt/tinyos-2.x/tos/lib/net/ctp/CtpP.nc:191,
> from /opt/tinyos-2.x/tos/lib/net/ctp/CollectionC.nc:69,
> from FaultDetectionAppC.nc:13:
> In component `CC2420ActiveMessageC':
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:59: component
> CC2420CsmaC not found
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:61: component
> UniqueSendC not found
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:62: component
> UniqueReceiveC not found
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:63: component
> CC2420TinyosNetworkC not found
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:64: component
> CC2420PacketC not found
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:65: component
> CC2420ControlC not found
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:70: component
> DummyLplC not found
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:76: component
> PacketLinkDummyC not found
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:80: no match
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:86: no match
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:87: no match
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:88: no match
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:89: no match
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:90: no match
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:93: no match
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:94: cannot
> find `SubControl'
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:97: no match
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:98: cannot
> find `SubSend'
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:99: cannot find
> `Send'
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:100: cannot find
> `Send'
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:101: cannot
> find `SubSend'
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:104: no match
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:105: cannot
> find `Receive'
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:106: cannot
> find `Receive'
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:107: cannot
> find `SubReceive'
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:109: no match
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:110: no match
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:111: no match
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:112: no match
> In component `CtpP':
> /opt/tinyos-2.x/tos/lib/net/ctp/CtpP.nc:143: cannot find `CompareBit'
> /opt/tinyos-2.x/tos/lib/net/ctp/CtpP.nc:183: cannot find `Random'
> /opt/tinyos-2.x/tos/lib/net/ctp/CtpP.nc:198: cannot find `LinkPacketMetadata'
> make: *** [sim-exe] Error 1
>
> /**********************************************/
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
--
Chad @ Home
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help