It looks quite strange. This is the same kind error messages as what
using recent code with old AM interfaces would produce.

By any chance, you didn't copy tymo into your previous TinyOS tree?

Romain

On Thu, Jul 10, 2008 at 11:14 AM, Anthony Smee <[EMAIL PROTECTED]> wrote:
>
> Hi there
>
> Thanks for your prompt reply, I have run the following:
>
>  cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvsroot/tinyos co -P tinyos-2.x
>
> Which created, amongst many other things the directory tymo under 
> $TOSROOT/TOS/LIB/NET
>
> Within here are sub-directories for mh and dymo.
>
> I then altered my Makefile as follows to incorporate these new directories:
>
> COMPONENT=TymoAppC
>
> CFLAGS +=       -I$(TOSDIR)/lib/net \
>                -I$(TOSDIR)/lib/net/tymo \
>                -I$(TOSDIR)/lib/net/tymo/dymo \
>                -I$(TOSDIR)/lib/net/tymo/mh \
>                -I.
>
> TFLAGS +=       -I(TOSDIR)/types
>
> include $(MAKERULES)
>
> Confusingly running make micaz sim gives the following results:
>
> In file included from /opt/tinyos-2.x/tos/lib/net/tymo/mh/MHServiceC.nc:33,
>                 from /opt/tinyos-2.x/tos/lib/net/tymo/dymo/DymoNetworkC.nc:38,
>                 from TymoAppC.nc:8:
> In component `MHPacketM':
> /opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc:38: conflicting types for 
> `Packet.getPayload'
> /opt/tinyos-2.x/tos/interfaces/Packet.nc:108: previous declaration of 
> `Packet.getPayload'
> /opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc: In function 
> `Packet.getPayload':
> /opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc:39: warning: passing 
> argument 2 of `SubPacket.getPayload' makes pointer from integer without a cast
> /opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc: In function 
> `Packet.payloadLength':
> /opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc:48: warning: passing 
> argument 2 of `SubPacket.getPayload' makes pointer from integer without a cast
> /opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc: In function 
> `Packet.setPayloadLength':
> /opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc:52: warning: passing 
> argument 2 of `SubPacket.getPayload' makes pointer from integer without a cast
> /opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc: In function 
> `MHPacket.destination':
> /opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc:66: warning: passing 
> argument 2 of `SubPacket.getPayload' makes pointer from integer without a cast
> /opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc: In function 
> `MHPacket.isForMe':
> /opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc:70: warning: passing 
> argument 2 of `SubPacket.getPayload' makes pointer from integer without a cast
> /opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc:70: warning: passing 
> argument 2 of `SubPacket.getPayload' makes pointer from integer without a cast
> /opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc: In function 
> `MHPacket.setDestination':
> /opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc:74: warning: passing 
> argument 2 of `SubPacket.getPayload' makes pointer from integer without a cast
> /opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc: In function 
> `MHPacket.setSource':
> /opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc:78: warning: passing 
> argument 2 of `SubPacket.getPayload' makes pointer from integer without a cast
> /opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc: In function 
> `MHPacket.setType':
> /opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc:82: warning: passing 
> argument 2 of `SubPacket.getPayload' makes pointer from integer without a cast
> /opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc: In function 
> `MHPacket.source':
> /opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc:87: warning: passing 
> argument 2 of `SubPacket.getPayload' makes pointer from integer without a cast
> /opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc: In function `MHPacket.type':
> /opt/tinyos-2.x/tos/lib/net/tymo/mh/MHPacketM.nc:91: warning: passing 
> argument 2 of `SubPacket.getPayload' makes pointer from integer without a cast
> In file included from /opt/tinyos-2.x/tos/lib/net/tymo/mh/MHServiceC.nc:34,
>                 from /opt/tinyos-2.x/tos/lib/net/tymo/dymo/DymoNetworkC.nc:38,
>                 from TymoAppC.nc:8:
> In component `ForwardingEngineM':
> /opt/tinyos-2.x/tos/lib/net/tymo/ForwardingEngineM.nc: In function 
> `SubReceive.receive':
> /opt/tinyos-2.x/tos/lib/net/tymo/ForwardingEngineM.nc:97: warning: passing 
> argument 2 of `PPacket.getPayload' makes pointer from integer without a cast
> /opt/tinyos-2.x/tos/lib/net/tymo/ForwardingEngineM.nc:103: warning: passing 
> argument 2 of `PPacket.getPayload' makes pointer from integer without a cast
> /opt/tinyos-2.x/tos/lib/net/tymo/ForwardingEngineM.nc: In function 
> `Timer.fired':
> /opt/tinyos-2.x/tos/lib/net/tymo/ForwardingEngineM.nc:158: warning: passing 
> argument 2 of `PPacket.getPayload' makes pointer from integer without a cast
> /opt/tinyos-2.x/tos/lib/net/tymo/ForwardingEngineM.nc: At top level:
> /opt/tinyos-2.x/tos/lib/net/tymo/ForwardingEngineM.nc:201: conflicting types 
> for `AMSend.getPayload'
> /opt/tinyos-2.x/tos/interfaces/AMSend.nc:125: previous declaration of 
> `AMSend.getPayload'
> /opt/tinyos-2.x/tos/lib/net/tymo/ForwardingEngineM.nc: In function 
> `AMSend.getPayload':
> /opt/tinyos-2.x/tos/lib/net/tymo/ForwardingEngineM.nc:202: warning: passing 
> argument 2 of `PPacket.getPayload' makes pointer from integer without a cast
> /opt/tinyos-2.x/tos/lib/net/tymo/ForwardingEngineM.nc: At top level:
> /opt/tinyos-2.x/tos/lib/net/tymo/ForwardingEngineM.nc:218: conflicting types 
> for `Intercept.forward'
> /opt/tinyos-2.x/tos/interfaces/Intercept.nc:31: previous declaration of 
> `Intercept.forward'
> /opt/tinyos-2.x/tos/lib/net/tymo/ForwardingEngineM.nc:40: 
> `Receive.payloadLength' not implemented
> /opt/tinyos-2.x/tos/lib/net/tymo/ForwardingEngineM.nc:40: 
> `Receive.getPayload' not implemented
> In file included from 
> /opt/tinyos-2.x/tos/lib/net/tymo/dymo/sim/DymoServiceC.nc:34,
>                 from /opt/tinyos-2.x/tos/lib/net/tymo/dymo/DymoNetworkC.nc:38,
>                 from TymoAppC.nc:8:
> In component `DymoPacketM':
> /opt/tinyos-2.x/tos/lib/net/tymo/dymo/DymoPacketM.nc: In function 
> `DymoPacket.getType':
> /opt/tinyos-2.x/tos/lib/net/tymo/dymo/DymoPacketM.nc:44: warning: passing 
> argument 2 of `Packet.getPayload' makes pointer from integer without a cast
> /opt/tinyos-2.x/tos/lib/net/tymo/dymo/DymoPacketM.nc: In function 
> `DymoPacket.getSize':
> /opt/tinyos-2.x/tos/lib/net/tymo/dymo/DymoPacketM.nc:49: warning: passing 
> argument 2 of `Packet.getPayload' makes pointer from integer without a cast
> /opt/tinyos-2.x/tos/lib/net/tymo/dymo/DymoPacketM.nc: In function 
> `DymoPacket.createRM':
> /opt/tinyos-2.x/tos/lib/net/tymo/dymo/DymoPacketM.nc:60: warning: passing 
> argument 2 of `Packet.getPayload' makes pointer from integer without a cast
> /opt/tinyos-2.x/tos/lib/net/tymo/dymo/DymoPacketM.nc: In function 
> `DymoPacket.addInfo':
> /opt/tinyos-2.x/tos/lib/net/tymo/dymo/DymoPacketM.nc:90: warning: passing 
> argument 2 of `Packet.getPayload' makes pointer from integer without a cast
> /opt/tinyos-2.x/tos/lib/net/tymo/dymo/DymoPacketM.nc: In function 
> `processMessage.runTask':
> /opt/tinyos-2.x/tos/lib/net/tymo/dymo/DymoPacketM.nc:132: warning: passing 
> argument 2 of `Packet.getPayload' makes pointer from integer without a cast
> /opt/tinyos-2.x/tos/lib/net/tymo/dymo/DymoPacketM.nc:148: warning: passing 
> argument 2 of `Packet.getPayload' makes pointer from integer without a cast
> make: *** [sim-exe] Error 1
>
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to