Hello.
I am so new in TinyOS and all I want to do is running TOSSIM and simulating
a simple application with it.
I keep trying it,as shown in tutorials, in linux Fedora 13,but after i run
the *make pc* command,this error appear every time :(
can anyone help me plz?
thanx
[root@localhost CntToLedsAndRfm]# make pc
compiling CntToLedsAndRfm to a pc binary
ncc -o build/pc/main.exe -g -O0 -board=micasb -pthread -target=pc
-I%T/lib/Counters -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all
-fnesc-nido-tosnodes=1000 -fnesc-cfile=build/pc/app.c CntToLedsAndRfm.nc
-lm
In file included from /usr/include/sys/socket.h:40,
from
/home/masoud/tinyos/tinyos-1.x/tos/platform/pc/external_comm.h:36,
from
/home/masoud/tinyos/tinyos-1.x/tos/platform/pc/hardware.h:63,
from /home/masoud/tinyos/tinyos-1.x/tos/system/tos.h:132:
/usr/include/bits/socket.h:427: warning: `struct mmsghdr' declared inside
parameter list
/usr/include/bits/socket.h:427: warning: its scope is only this definition
or declaration,
/usr/include/bits/socket.h:427: warning: which is probably not what you
want.
In file included from
/home/masoud/tinyos/tinyos-1.x/tos/platform/pc/GuiMsg.h:51,
from /home/masoud/tinyos/tinyos-1.x/tos/types/dbg.h:70,
from
/home/masoud/tinyos/tinyos-1.x/tos/platform/pc/hardware.h:65,
from /home/masoud/tinyos/tinyos-1.x/tos/system/tos.h:132:
/home/masoud/tinyos/tinyos-1.x/tos/types/AM.h:155: parse error before
`struct'
/home/masoud/tinyos/tinyos-1.x/tos/types/AM.h:156: parse error before
`struct'
/home/masoud/tinyos/tinyos-1.x/tos/types/AM.h:158: parse error before
`struct'
/home/masoud/tinyos/tinyos-1.x/tos/types/AM.h: In function `TOS_MsgLength':
/home/masoud/tinyos/tinyos-1.x/tos/types/AM.h:183: parse error before
`TOS_Msg'
In file included from
/home/masoud/tinyos/tinyos-1.x/tos/platform/pc/hardware.h:116,
from /home/masoud/tinyos/tinyos-1.x/tos/system/tos.h:132:
/home/masoud/tinyos/tinyos-1.x/tos/platform/pc/eeprom.c: At top level:
/home/masoud/tinyos/tinyos-1.x/tos/platform/pc/eeprom.c:114: warning:
declaration of `length' shadows global declaration
/home/masoud/tinyos/tinyos-1.x/tos/types/AM.h:158: warning: location of
shadowed declaration
/home/masoud/tinyos/tinyos-1.x/tos/platform/pc/eeprom.c:144: warning:
declaration of `length' shadows global declaration
/home/masoud/tinyos/tinyos-1.x/tos/types/AM.h:158: warning: location of
shadowed declaration
In file included from
/home/masoud/tinyos/tinyos-1.x/tos/lib/Counters/IntToRfmM.nc:51:
/home/masoud/tinyos/tinyos-1.x/tos/interfaces/SendMsg.nc:48: warning:
declaration of `length' shadows global declaration
/home/masoud/tinyos/tinyos-1.x/tos/types/AM.h:158: warning: location of
shadowed declaration
/home/masoud/tinyos/tinyos-1.x/tos/system/AMStandard.nc:179: warning:
declaration of `length' shadows global declaration
/home/masoud/tinyos/tinyos-1.x/tos/types/AM.h:158: warning: location of
shadowed declaration
/home/masoud/tinyos/tinyos-1.x/tos/platform/pc/MicaHighSpeedRadioM.nc:64:
`MSG_DATA_SIZE' undeclared here (not in a function)
/home/masoud/tinyos/tinyos-1.x/tos/platform/pc/MicaHighSpeedRadioM.nc:65:
enumerator value for `ENCODE_PACKET_LENGTH_DEFAULT' not integer constant
/home/masoud/tinyos/tinyos-1.x/tos/platform/pc/MicaHighSpeedRadioM.nc:90:
warning: declaration of `crc' shadows global declaration
/home/masoud/tinyos/tinyos-1.x/tos/types/AM.h:155: warning: location of
shadowed declaration
/home/masoud/tinyos/tinyos-1.x/tos/platform/pc/MicaHighSpeedRadioM.nc: In
function `finishedTiming':
/home/masoud/tinyos/tinyos-1.x/tos/platform/pc/MicaHighSpeedRadioM.nc:157:
`MSG_DATA_SIZE' undeclared (first use in this function)
/home/masoud/tinyos/tinyos-1.x/tos/platform/pc/MicaHighSpeedRadioM.nc:157:
(Each undeclared identifier is reported only once
/home/masoud/tinyos/tinyos-1.x/tos/platform/pc/MicaHighSpeedRadioM.nc:157:
for each function it appears in.)
/home/masoud/tinyos/tinyos-1.x/tos/platform/pc/MicaHighSpeedRadioM.nc: In
function `ChannelMon.idleDetect':
/home/masoud/tinyos/tinyos-1.x/tos/platform/pc/MicaHighSpeedRadioM.nc:172:
`MSG_DATA_SIZE' undeclared (first use in this function)
/home/masoud/tinyos/tinyos-1.x/tos/platform/pc/MicaHighSpeedRadioM.nc: In
function `Code.decodeDone':
/home/masoud/tinyos/tinyos-1.x/tos/platform/pc/MicaHighSpeedRadioM.nc:190:
`MSG_DATA_SIZE' undeclared (first use in this function)
/home/masoud/tinyos/tinyos-1.x/tos/platform/pc/MicaHighSpeedRadioM.nc:209:
`LENGTH_BYTE_NUMBER' undeclared (first use in this function)
/home/masoud/tinyos/tinyos-1.x/tos/platform/pc/MicaHighSpeedRadioM.nc: In
function `SpiByteFifo.dataReady':
/home/masoud/tinyos/tinyos-1.x/tos/platform/pc/MicaHighSpeedRadioM.nc:248:
`MSG_DATA_SIZE' undeclared (first use in this function)
/home/masoud/tinyos/tinyos-1.x/tos/platform/pc/MicaHighSpeedRadioM.nc: At
top level:
/home/masoud/tinyos/tinyos-1.x/tos/platform/pc/MicaHighSpeedRadioM.nc:321:
warning: declaration of `crc' shadows global declaration
/home/masoud/tinyos/tinyos-1.x/tos/types/AM.h:155: warning: location of
shadowed declaration
make: *** [build/pc/main.exe] Error 1
--
Regards, Masoud Nikoofar
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help