[Smac-users] SMAC compile error
Wei Ye
weiye at ISI.EDU
Tue Aug 30 09:33:18 PDT 2005
It looks like you didn't include apps/Makesmac, which defines include
directories. Which version of TinyOS are you running?
-Wei
On Mon, 2005-08-22 at 04:24 -0500, Norbert Lagos wrote:
> Hello,
>
> I am trying to install SMAC on a mica2 mote and are having a problem
> with compiling any applications. The below is an example of SMACTest.
> I am using all default options with the s-mac directory present in
> ../contrib. The s-mac install is the default that comes with a TinyOS
> distribution. Thanks for any help,
>
> Norbert
>
> $ make mica2
> compiling SMACTest to a mica2 binary
> ncc -o build/mica2/main.exe -Os -board=micasb -target=mica2 -Wall -Wshadow -DDE
> F_TOS_AM_GROUP=0x81 -Wall -finline-limit=100000 -fnesc-cfile=build/mica2/app.c -
> DCC1K_DEFAULT_FREQ=CC1K_433_002_MHZ -DRADIO_XMIT_POWER=0xFF SMACTest.nc -lm
> testMsg.h:10:21: SMACMsg.h: No such file or directory
> SMACTest.nc:39: failed to preprocess testMsg.h
> SMACTestM.nc:43: interface MACComm not found
> C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/avrmote/HPLInit.nc:51: expected int
> erface `MACComm', but got interface 'HPLInit'
> SMACTestM.nc:44: interface MACTest not found
> C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/avrmote/HPLInit.nc:51: expected int
> erface `MACTest', but got interface 'HPLInit'
> SMACTestM.nc:71: syntax error before `dataPkt'
> SMACTestM.nc: In function `sendMsg':
> SMACTestM.nc:126: `dataPkt' undeclared (first use in this function)
> SMACTestM.nc:126: (Each undeclared identifier is reported only once
> SMACTestM.nc:126: for each function it appears in.)
> SMACTestM.nc:127: subscripted value is neither array nor pointer
> SMACTestM.nc:128: subscripted value is neither array nor pointer
> SMACTestM.nc:129: subscripted value is neither array nor pointer
> SMACTestM.nc:130: subscripted value is neither array nor pointer
> SMACTestM.nc:131: subscripted value is neither array nor pointer
> SMACTestM.nc:132: subscripted value is neither array nor pointer
> SMACTestM.nc:135: interface has no command or event named `broadcastMsg'
> SMACTestM.nc:140: interface has no command or event named `unicastMsg'
> SMACTestM.nc: At top level:
> SMACTestM.nc:149: `clockFire' is not in interface `MACTest'
> SMACTestM.nc:161: `MACSleep' is not in interface `MACTest'
> SMACTestM.nc:167: `MACWakeup' is not in interface `MACTest'
> SMACTestM.nc:173: `broadcastDone' is not in interface `MACComm'
> SMACTestM.nc:192: `txFragDone' is not in interface `MACComm'
> SMACTestM.nc: In function `MACComm.txFragDone':
> SMACTestM.nc:196: interface has no command or event named `txNextFrag'
> SMACTestM.nc:196: `dataPkt' undeclared (first use in this function)
> SMACTestM.nc: At top level:
> SMACTestM.nc:203: `unicastDone' is not in interface `MACComm'
> SMACTestM.nc:220: `rxMsgDone' is not in interface `MACComm'
> SMACTestM.nc: In function `MACComm.rxMsgDone':
> SMACTestM.nc:221: `AppPkt' undeclared (first use in this function)
> $
> SMACTestM.nc:222: parse error before `)'
> SMACTestM.nc:224: `MACHeader' undeclared (first use in this function)
> SMACTestM.nc:224: parse error before `)'
> SMACTestM.nc:224: `TOS_BCAST_ADDR' undeclared (first use in this function)
> SMACTest.nc: At top level:
> SMACTest.nc:45: component SMAC not found
> SMACTestM.nc:38: expected component `SMAC', but got component 'SMACTestM'
> SMACTest.nc:48: no match
> SMACTest.nc:49: no match
> SMACTest.nc:50: no match
> make: *** [build/mica2/main.exe] Error 1
> _______________________________________________
> Smac-users mailing list
> Smac-users at mailman.isi.edu
> http://mailman.isi.edu/mailman/listinfo/smac-users
More information about the Smac-users
mailing list