I'm trying tu use Tinyos in Ubuntu 10.10,when I try to compile Blink for
micaz it goes ok. But when I try to compile for telosb I get the following
error:
/opt/tinyos-2.1.0/tos/system/
RealMainP.nc: In function `main':
/opt/tinyos-2.1.0/tos/system/RealMainP.nc:68: interface has no command or
event named `init'
/opt/tinyos-2.1.0/tos/system/RealMainP.nc:69: interface has no command or
event named `runNextTask'
/opt/tinyos-2.1.0/tos/system/RealMainP.nc:75: interface has no command or
event named `init'
/opt/tinyos-2.1.0/tos/system/RealMainP.nc:76: interface has no command or
event named `runNextTask'
/opt/tinyos-2.1.0/tos/system/RealMainP.nc: At top level:
/opt/tinyos-2.1.0/tos/system/RealMainP.nc:93: syntax error before
`PlatformInit'
In file included from BlinkC.nc:41,
from BlinkAppC.nc:45:
In interface `Timer':
/opt/tinyos-2.1.0/tos/lib/timer/Timer.nc:53: syntax error before `dt'
/opt/tinyos-2.1.0/tos/lib/timer/Timer.nc:62: syntax error before `dt'
/opt/tinyos-2.1.0/tos/lib/timer/Timer.nc:81: only commands and events can be
defined in interfaces
/opt/tinyos-2.1.0/tos/lib/timer/Timer.nc:81: warning: return-type defaults
to `int'
/opt/tinyos-2.1.0/tos/lib/timer/Timer.nc:81: syntax error before `isRunning'
/opt/tinyos-2.1.0/tos/lib/timer/Timer.nc:87: only commands and events can be
defined in interfaces
/opt/tinyos-2.1.0/tos/lib/timer/Timer.nc:87: warning: return-type defaults
to `int'
/opt/tinyos-2.1.0/tos/lib/timer/Timer.nc:87: redefinition of `bool'
/opt/tinyos-2.1.0/tos/lib/timer/Timer.nc:87: syntax error before `isOneShot'
/opt/tinyos-2.1.0/tos/lib/timer/Timer.nc:103: syntax error before `t0'
/opt/tinyos-2.1.0/tos/lib/timer/Timer.nc:118: syntax error before `t0'
/opt/tinyos-2.1.0/tos/lib/timer/Timer.nc:125: only commands and events can
be defined in interfaces
/opt/tinyos-2.1.0/tos/lib/timer/Timer.nc:125: warning: return-type defaults
to `int'
/opt/tinyos-2.1.0/tos/lib/timer/Timer.nc:125: syntax error before `getNow'
/opt/tinyos-2.1.0/tos/lib/timer/Timer.nc:133: only commands and events can
be defined in interfaces
/opt/tinyos-2.1.0/tos/lib/timer/Timer.nc:133: warning: return-type defaults
to `int'
/opt/tinyos-2.1.0/tos/lib/timer/Timer.nc:133: redefinition of `uint32_t'
/opt/tinyos-2.1.0/tos/lib/timer/Timer.nc:133: syntax error before `gett0'
/opt/tinyos-2.1.0/tos/lib/timer/Timer.nc:140: only commands and events can
be defined in interfaces
/opt/tinyos-2.1.0/tos/lib/timer/Timer.nc:140: warning: return-type defaults
to `int'
/opt/tinyos-2.1.0/tos/lib/timer/Timer.nc:140: redefinition of `uint32_t'
/opt/tinyos-2.1.0/tos/lib/timer/Timer.nc:140: syntax error before `getdt'
In file included from BlinkC.nc:44,
from BlinkAppC.nc:45:
In interface `Leds':
/opt/tinyos-2.1.0/tos/interfaces/Leds.nc:106: only commands and events can
be defined in interfaces
/opt/tinyos-2.1.0/tos/interfaces/Leds.nc:106: warning: return-type defaults
to `int'
/opt/tinyos-2.1.0/tos/interfaces/Leds.nc:106: syntax error before `get'
/opt/tinyos-2.1.0/tos/interfaces/Leds.nc:123: warning: declaration of
`uint8_t' shadows global declaration
/opt/tinyos-2.1.0/tos/interfaces/Leds.nc:106: warning: location of shadowed
declaration
/opt/tinyos-2.1.0/tos/interfaces/Leds.nc:123: syntax error before `val'
In file included from /opt/tinyos-2.1.0/tos/system/LedsP.nc:39,
from /opt/tinyos-2.1.0/tos/system/LedsC.nc:38,
from BlinkAppC.nc:45:
In interface `GeneralIO':
/opt/tinyos-2.1.0/tos/interfaces/GeneralIO.nc:32: only commands and events
can be defined in interfaces
/opt/tinyos-2.1.0/tos/interfaces/GeneralIO.nc:32: warning: return-type
defaults to `int'
/opt/tinyos-2.1.0/tos/interfaces/GeneralIO.nc:32: syntax error before `get'
/opt/tinyos-2.1.0/tos/interfaces/GeneralIO.nc:34: only commands and events
can be defined in interfaces
/opt/tinyos-2.1.0/tos/interfaces/GeneralIO.nc:34: warning: return-type
defaults to `int'
/opt/tinyos-2.1.0/tos/interfaces/GeneralIO.nc:34: redefinition of `bool'
/opt/tinyos-2.1.0/tos/interfaces/GeneralIO.nc:34: syntax error before
`isInput'
/opt/tinyos-2.1.0/tos/interfaces/GeneralIO.nc:36: only commands and events
can be defined in interfaces
/opt/tinyos-2.1.0/tos/interfaces/GeneralIO.nc:36: warning: return-type
defaults to `int'
/opt/tinyos-2.1.0/tos/interfaces/GeneralIO.nc:36: redefinition of `bool'
/opt/tinyos-2.1.0/tos/interfaces/GeneralIO.nc:36: syntax error before
`isOutput'
In component `LedsP':
/opt/tinyos-2.1.0/tos/system/LedsP.nc:45: syntax error before `Init'
LedsP: `Init.error_t' not implemented
LedsP: `Leds.led0Off' not implemented
LedsP: `Leds.led0Toggle' not implemented
LedsP: `Leds.led1On' not implemented
LedsP: `Leds.led1Toggle' not implemented
LedsP: `Leds.led2Toggle' not implemented
LedsP: `Leds.led2Off' not implemented
LedsP: `Leds.led1Off' not implemented
LedsP: `Leds.uint8_t' not implemented
LedsP: `Leds.set' not implemented
LedsP: `Leds.led0On' not implemented
LedsP: `Leds.led2On' not implemented
In file included from
/opt/tinyos-2.1.0/