[Tinyos-help] C serial forwarder for tinyos-2.x beta2 on linux

Avinash Sridharan avinash.sridharan at gmail.com
Sat Oct 28 16:30:18 PDT 2006


Hi All,
 I am trying to compile the C serial forwarder for tinyos-2.x beta2 on
linux. I am using nesc-1.2.7.1a for compiling the serial forwarder. I am
getting the following errors when I try to compile it from source
================================================================================================================================
make  all-am
make[1]: Entering directory
`/home/asridhar/developement/sandbox/beta2/tinyos-2.x/support/sdk/c'
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -MT serialsource.o -MD -MP -MF
".deps/serialsource.Tpo" -c -o serialsource.o serialsource.c; \
then mv -f ".deps/serialsource.Tpo" ".deps/serialsource.Po"; else rm -f
".deps/serialsource.Tpo"; exit 1; fi
serialsource.c:37: error: 'SERIAL_HDLC_FLAG_BYTE' undeclared here (not in a
function)
serialsource.c:38: error: 'SERIAL_HDLC_CTLESC_BYTE' undeclared here (not in
a function)
serialsource.c:40: error: 'SERIAL_SERIAL_PROTO_ACK' undeclared here (not in
a function)
serialsource.c:41: error: 'SERIAL_SERIAL_PROTO_PACKET_ACK' undeclared here
(not in a function)
serialsource.c:42: error: 'SERIAL_SERIAL_PROTO_PACKET_NOACK' undeclared here
(not in a function)
serialsource.c:44: error: 'SERIAL_SERIAL_PROTO_PACKET_UNKNOWN' undeclared
here (not in a function)
serialsource.c: In function 'serial_source_empty':
serialsource.c:441: warning: large integer implicitly truncated to unsigned
type
serialsource.c: In function 'process_packet':
serialsource.c:609: warning: large integer implicitly truncated to unsigned
typeserialsource.c: In function 'read_serial_packet':
serialsource.c:633: warning: large integer implicitly truncated to unsigned
typeserialsource.c: In function 'init_escaper':
serialsource.c:667: warning: large integer implicitly truncated to unsigned
typeserialsource.c: In function 'terminate_escaper':
serialsource.c:674: warning: large integer implicitly truncated to unsigned
typeserialsource.c: In function 'escape_byte':
serialsource.c:680: warning: comparison is always false due to limited range
of data type
serialsource.c:680: warning: comparison is always false due to limited range
of data type
serialsource.c:682: warning: large integer implicitly truncated to unsigned
typeserialsource.c: In function 'write_serial_packet':
serialsource.c:755: warning: large integer implicitly truncated to unsigned
typeserialsource.c:765: warning: large integer implicitly truncated to
unsigned typemake[1]: *** [serialsource.o] Error 1
make[1]: Leaving directory
`/home/asridhar/developement/sandbox/beta2/tinyos-2.x/support/sdk/c'
================================================================================================================
I am not sure if I am missing some hearder files or I need to update to a
new source tree ?

Thanks,
Avinash


-- 
Phd Dept. of Electrical Engineering
University of Southern California
http://www-scf.usc.edu/~asridhar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20061028/13b5c749/attachment.html


More information about the Tinyos-help mailing list