I just installed xubuntu with tinyOS, and upgraded its installation with
CVS. Then I tried to make the TestTymo application, but several error
messages appeared. Here they are :
$ sudo make mica2 install,0 mib510,/dev/ttyUSB0;
mkdir -p build/mica2
compiling TestC to a mica2 binary
ncc -o build/mica2/main.exe -Os -I../../../tos/lib/net/tymo
-I../../../tos/lib/net/tymo/dymo -I../../../tos/lib/net/tymo/mh
-finline-limit=100000 -Wall -Wshadow -Wnesc-all -target=mica2
-fnesc-cfile=build/mica2/app.c -board=micasb
-DIDENT_PROGRAM_NAME=\"TestC\" -DIDENT_USER_ID=\"root\"
-DIDENT_HOSTNAME=\"fhg07\" -DIDENT_USER_HASH=0xd175f63cL
-DIDENT_UNIX_TIME=0x48e37a41L -DIDENT_UID_HASH=0xb522046cL
-fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())'
-fnesc-dump='referenced(interfacedefs, components)'
-fnesc-dumpfile=build/mica2/wiring-check.xml TestC.nc -lm
In file included from TestC.nc:11:
In component `TestM':
TestM.nc: In function `Timer.fired':
TestM.nc:64: warning: passing argument 2 of `Packet.getPayload' makes
pointer from integer without a cast
TestM.nc: At top level:
TestM.nc:98: conflicting types for `Intercept.forward'
/opt/tinyos-2.x/tos/interfaces/Intercept.nc:31: previous declaration of
`Intercept.forward'
In file included from ../../../tos/lib/net/tymo/mh/MHServiceC.nc:33,
from ../../../tos/lib/net/tymo/dymo/DymoNetworkC.nc:38,
from TestC.nc:11:
In component `MHPacketM':
../../../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'
../../../tos/lib/net/tymo/mh/MHPacketM.nc: In function `Packet.getPayload':
../../../tos/lib/net/tymo/mh/MHPacketM.nc:39: warning: passing argument 2
of `SubPacket.getPayload' makes pointer from integer without a cast
../../../tos/lib/net/tymo/mh/MHPacketM.nc: In function
`Packet.payloadLength':
../../../tos/lib/net/tymo/mh/MHPacketM.nc:48: warning: passing argument 2
of `SubPacket.getPayload' makes pointer from integer without a cast
../../../tos/lib/net/tymo/mh/MHPacketM.nc: In function
`Packet.setPayloadLength':
../../../tos/lib/net/tymo/mh/MHPacketM.nc:52: warning: passing argument 2
of `SubPacket.getPayload' makes pointer from integer without a cast
../../../tos/lib/net/tymo/mh/MHPacketM.nc: In function
`MHPacket.destination':
../../../tos/lib/net/tymo/mh/MHPacketM.nc:66: warning: passing argument 2
of `SubPacket.getPayload' makes pointer from integer without a cast
../../../tos/lib/net/tymo/mh/MHPacketM.nc: In function `MHPacket.isForMe':
../../../tos/lib/net/tymo/mh/MHPacketM.nc:70: warning: passing argument 2
of `SubPacket.getPayload' makes pointer from integer without a cast
../../../tos/lib/net/tymo/mh/MHPacketM.nc:70: warning: passing argument 2
of `SubPacket.getPayload' makes pointer from integer without a cast
../../../tos/lib/net/tymo/mh/MHPacketM.nc: In function
`MHPacket.setDestination':
../../../tos/lib/net/tymo/mh/MHPacketM.nc:74: warning: passing argument 2
of `SubPacket.getPayload' makes pointer from integer without a cast
../../../tos/lib/net/tymo/mh/MHPacketM.nc: In function `MHPacket.setSource':
../../../tos/lib/net/tymo/mh/MHPacketM.nc:78: warning: passing argument 2
of `SubPacket.getPayload' makes pointer from integer without a cast
../../../tos/lib/net/tymo/mh/MHPacketM.nc: In function `MHPacket.setType':
../../../tos/lib/net/tymo/mh/MHPacketM.nc:82: warning: passing argument 2
of `SubPacket.getPayload' makes pointer from integer without a cast
../../../tos/lib/net/tymo/mh/MHPacketM.nc: In function `MHPacket.source':
../../../tos/lib/net/tymo/mh/MHPacketM.nc:87: warning: passing argument 2
of `SubPacket.getPayload' makes pointer from integer without a cast
../../../tos/lib/net/tymo/mh/MHPacketM.nc: In function `MHPacket.type':
../../../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 ../../../tos/lib/net/tymo/mh/MHServiceC.nc:34,
from ../../../tos/lib/net/tymo/dymo/DymoNetworkC.nc:38,
from TestC.nc:11:
In component `ForwardingEngineM':
../../../tos/lib/net/tymo/ForwardingEngineM.nc: In function
`SubReceive.receive':
../../../tos/lib/net/tymo/ForwardingEngineM.nc:100: warning: passing
argument 2 of `PPacket.getPayload' makes pointer from integer without a
cast
../../../tos/lib/net/tymo/ForwardingEngineM.nc:108: warning: passing
argument 2 of `PPacket.getPayload' makes pointer from integer without a
cast
../../../tos/lib/net/tymo/ForwardingEngineM.nc: In function `Timer.fired':
../../../tos/lib/net/tymo/ForwardingEngineM.nc:173: warning: passing
argument 2 of `PPacket.getPayload' makes pointer from integer without a
cast
../../../tos/lib/net/tymo/ForwardingEngineM.nc: At top level:
../../../tos/lib/net/tymo/ForwardingEngineM.nc:216: conflicting types for
`AMSend.getPayload'
/opt/tinyos-2.x/tos/interfaces/AMSend.nc:125: previous declaration of
`AMSend.getPayload'
../../../tos/lib/net/tymo/ForwardingEngineM.nc: In function
`AMSend.getPayload':
../../../tos/lib/net/tymo/ForwardingEngineM.nc:217: warning: passing
argument 2 of `PPacket.getPayload' makes pointer from integer without a
cast
../../../tos/lib/net/tymo/ForwardingEngineM.nc: At top level:
../../../tos/lib/net/tymo/ForwardingEngineM.nc:233: conflicting types for
`Intercept.forward'
/opt/tinyos-2.x/tos/interfaces/Intercept.nc:31: previous declaration of
`Intercept.forward'
../../../tos/lib/net/tymo/ForwardingEngineM.nc:40: `Receive.payloadLength'
not implemented
../../../tos/lib/net/tymo/ForwardingEngineM.nc:40: `Receive.getPayload'
not implemented
../../../tos/lib/net/tymo/dymo/DymoServiceC.nc:6:28: StorageVolumes.h: No
such file or directory
In file included from TestC.nc:11:
In component `DymoNetworkC':
../../../tos/lib/net/tymo/dymo/DymoNetworkC.nc:38: failed to preprocess
../../../tos/lib/net/tymo/dymo/DymoServiceC.nc
../../../tos/lib/net/tymo/dymo/DymoNetworkC.nc:69: cannot find `AMPacket'
../../../tos/lib/net/tymo/dymo/DymoNetworkC.nc:70: cannot find `Packet'
../../../tos/lib/net/tymo/dymo/DymoNetworkC.nc:71: cannot find `AMSend'
../../../tos/lib/net/tymo/dymo/DymoNetworkC.nc:72: cannot find `Receive'
../../../tos/lib/net/tymo/dymo/DymoNetworkC.nc:74: cannot find `LinkMonitor'
../../../tos/lib/net/tymo/dymo/DymoNetworkC.nc:79: cannot find `SplitControl'
make: *** [exe0] Error 1
Any idea of what should be done in order to solve it?
I'd really like to make this application work.
Thanks,
Fernando.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help