Hi,
First advice:
Forget tinyos-1.x  it is history and there is a huge difference between 
tinyos-1 and tinyos-2

If you insist,
Second advice:
Forget tinyviz. it has a lot of problem , nobody has worked with it 
successfully and I don't know why they still keep it in their website. 
Actually, I do know why: they keep it so that you get frustrated with tinyos-1 
and listen to my first advice.


--- On Fri, 3/11/11, Chinedu Duru <[email protected]> wrote:

From: Chinedu Duru <[email protected]>
Subject: [Tinyos-help] Need help with Tinyos-1.x TOSSIM
To: [email protected]
Date: Friday, March 11, 2011, 4:57 AM

Hi 

I managed to successfully get no errors after putting the command toscheck for 
tinyos-1.x. But because i need to use TOSSIM i had to configure and compile 
TinyViz by going to cd /opt/tinyos-1.x/tools/java/net/tinyos/sim and executing 
the make command. However i got numerous errors which are the following


$ make
... /opt/tinyos-1.x/tools/java/net/tinyos/sim
(cd msg; make)
make[1]: Entering directory `/opt/tinyos-1.x/tools/java/net/tinyos/sim/msg'
mig java -target=pc -java-classname=net.tinyos.sim.msg.DebugMsgEvent ../../../..

/../../tos/platform/pc/GuiMsg.h DebugMsgEvent -o DebugMsgEvent.java
In file included from C:\cygwin\opt\tinyos-1.x\tos\platform\pc/event_queue.h:61,

                 from C:\cygwin\opt\tinyos-1.x\tos\platform\pc/nido.h:77,

                 from C:\cygwin\opt\tinyos-1.x\tos\platform\pc/hardware.h:43,
                 from C:\cygwin\opt\tinyos-1.x\tos\system\tos.h:144:
/usr/local/include/pthread.h:48:2: warning: #warning "Add pthread_atfork() proto

type"
In file included from /usr/include/cygwin/types.h:21,
                 from /usr/local/include/sys/types.h:330,
                 from /usr/local/include/sys/unistd.h:9,
                 from /usr/local/include/unistd.h:4,

                 from C:\cygwin\opt\tinyos-1.x\tos\system\tos.h:54:
/usr/include/stdint.h:18: conflicting types for `int8_t'
/usr/local/include/sys/types.h:106: previous declaration of `int8_t'
/usr/include/stdint.h:19: warning: redefinition of `int16_t'

/usr/local/include/sys/types.h:108: warning: previous declaration of `int16_t'
/usr/include/stdint.h:20: warning: redefinition of `int32_t'
/usr/local/include/sys/types.h:110: warning: previous declaration of `int32_t'

/usr/include/stdint.h:21: warning: redefinition of `int64_t'
/usr/local/include/sys/types.h:112: warning: previous declaration of `int64_t'
In file included from /usr/local/include/sys/types.h:330,
                 from /usr/local/include/sys/unistd.h:9,

                 from /usr/local/include/unistd.h:4,
                 from C:\cygwin\opt\tinyos-1.x\tos\system\tos.h:54:
/usr/include/cygwin/types.h:36: syntax error before `off_t'
/usr/include/cygwin/types.h:39: syntax error before `loff_t'

/usr/include/cygwin/types.h:45: conflicting types for `dev_t'
/usr/local/include/sys/types.h:128: previous declaration of `dev_t'
/usr/include/cygwin/types.h:74: conflicting types for `uid_t'
/usr/local/include/sys/types.h:133: previous declaration of `uid_t'

/usr/include/cygwin/types.h:81: conflicting types for `gid_t'
/usr/local/include/sys/types.h:134: previous declaration of `gid_t'
/usr/include/cygwin/types.h:88: conflicting types for `ino_t'
/usr/local/include/sys/types.h:91: previous declaration of `ino_t'

/usr/include/cygwin/types.h:126: conflicting types for `key_t'
/usr/local/include/sys/types.h:136: previous declaration of `key_t'
/usr/include/cygwin/types.h:134: warning: redefinition of `vm_offset_t'

/usr/local/include/sys/types.h:101: warning: previous declaration of `vm_offset_
t'
/usr/include/cygwin/types.h:139: warning: redefinition of `vm_size_t'
/usr/local/include/sys/types.h:102: warning: previous declaration of `vm_size_t'


/usr/include/cygwin/types.h:149: warning: redefinition of `u_int8_t'
/usr/local/include/sys/types.h:107: warning: previous declaration of `u_int8_t'
/usr/include/cygwin/types.h:153: syntax error before `u_int16_t'

/usr/include/cygwin/types.h:157: warning: redefinition of `u_int32_t'
/usr/local/include/sys/types.h:111: warning: previous declaration of `u_int32_t'

/usr/include/cygwin/types.h:161: syntax error before `u_int64_t'

/usr/include/cygwin/types.h:166: warning: redefinition of `register_t'
/usr/local/include/sys/types.h:114: warning: previous declaration of `register_t
'
/usr/include/cygwin/types.h:171: warning: redefinition of `addr_t'

/usr/local/include/sys/types.h:140: warning: previous declaration of `addr_t'
/usr/include/cygwin/types.h:176: conflicting types for `mode_t'
/usr/local/include/sys/types.h:141: previous declaration of `mode_t'

In file included from C:\cygwin\opt\tinyos-1.x\tos\platform\pc/packet_sim.h:55,
                 from C:\cygwin\opt\tinyos-1.x\tos\platform\pc/nido.h:84,
                 from C:\cygwin\opt\tinyos-1.x\tos\platform\pc/hardware.h:43,

                 from C:\cygwin\opt\tinyos-1.x\tos\system\tos.h:144:
C:\cygwin\opt\tinyos-1.x\tos\types/AM.h:155: parse error before `struct'
C:\cygwin\opt\tinyos-1.x\tos\types/AM.h:156: parse error before `struct'

C:\cygwin\opt\tinyos-1.x\tos\types/AM.h:158: parse error before `struct'
C:\cygwin\opt\tinyos-1.x\tos\types/AM.h: In function `TOS_MsgLength':
C:\cygwin\opt\tinyos-1.x\tos\types/AM.h:186: parse error before `TOS_Msg'

In file included from /usr/include/cygwin/in.h:250,
                 from /usr/include/netinet/in.h:14,
                 from C:\cygwin\opt\tinyos-1.x\tos\platform\pc/external_comm.h:3
7,
                 from C:\cygwin\opt\tinyos-1.x\tos\platform\pc/hardware.h:63,

                 from C:\cygwin\opt\tinyos-1.x\tos\system\tos.h:144:
/usr/include/asm/byteorder.h: At top level:
/usr/include/asm/byteorder.h:31: syntax error before `uint32_t'
/usr/include/asm/byteorder.h:32: syntax error before `uint16_t'

/usr/include/asm/byteorder.h:34: syntax error before `uint32_t'
/usr/include/asm/byteorder.h:51: syntax error before `uint16_t'
In file included from C:\cygwin\opt\tinyos-1.x\tos\platform\pc/hardware.h:112,

                 from C:\cygwin\opt\tinyos-1.x\tos\system\tos.h:144:
C:\cygwin\opt\tinyos-1.x\tos\platform\pc/external_comm.c:37: conflicting types f
or `bswap_64'
/usr/include/byteswap.h:31: previous declaration of `bswap_64'

C:\cygwin\opt\tinyos-1.x\tos\platform\pc/external_comm.c: In function `processCo
mmand':
C:\cygwin\opt\tinyos-1.x\tos\platform\pc/external_comm.c:455: warning: passing a
rgument 1 of `bzero' from incompatible pointer type

In file included from /usr/local/include/fcntl.h:1,
                 from C:\cygwin\opt\tinyos-1.x\tos\platform\pc/eeprom.c:47,
                 from C:\cygwin\opt\tinyos-1.x\tos\platform\pc/hardware.h:116,
                 from C:\cygwin\opt\tinyos-1.x\tos\system\tos.h:144:

/usr/local/include/sys/fcntl.h: At top level:
/usr/local/include/sys/fcntl.h:139: redefinition of `struct flock'
In file included from <command-line>:0:
C:\cygwin\tmp\nesccppm2mymVZu:352:1: warning: "__BIT_TYPES_DEFINED__" redefined

C:\cygwin\tmp\nesccppm2mymVZu:222:1: warning: this is the location of the previo
us definition
failed to parse message file ../../../../../../tos/platform/pc/GuiMsg.h
make[1]: *** [DebugMsgEvent.java] Error 1

make[1]: Leaving directory `/opt/tinyos-1.x/tools/java/net/tinyos/sim/msg'
make: *** [msgs] Error 2


I will really appreciate your help..thank you..Mike



-----Inline Attachment Follows-----

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


      
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to