2008/7/31 Kevin Klues <[EMAIL PROTECTED]>:
> I'm not sure which version of printf you are using, but the version in
> cvs should work as outlined in the tutorial.
>
> Kevin

Hi,
yes, I did not use the latest version. Now I have changed to the
latest version from cvs and I get a lot of errors. I removed explicit
flush from my code but still errors. In the cvs comments it is written
that you do not need any wiring. I am a little bit confused now :-O Is
there any usage example for the new version?

Below the errors I get...

--------------------------------
$ makesnooper.sh
mkdir -p build/micaz
    compiling SnooperAppC to a micaz binary
ncc -o build/micaz/main.exe -Os -I%T/lib/net/ctp -I%T/lib/net
-I%T/lib/net/le -finlin
e-limit=100000 -Wall -Wshadow -Wnesc-all -target=micaz
-fnesc-cfile=build/micaz/app.c
 -board=mts300 -I/opt/tinyos-2.x/tos/lib/printf -I../
-DCC2420_NO_ACKNOWLEDGEMENTS -D
CC2420_NO_ADDRESS_RECOGNITION -DPRINTF_BUFFER_SIZE=1000
-DIDENT_PROGRAM_NAME=\"Snoope
rAppC\" -DIDENT_USER_ID=\"Nicki\" -DIDENT_HOSTNAME=\"ltnic\"
-DIDENT_USER_HASH=0xce21
d42fL -DIDENT_UNIX_TIME=0x4891c872L -DIDENT_UID_HASH=0x9bd619eaL
-fnesc-dump=wiring -
fnesc-dump='interfaces(!abstract())'
-fnesc-dump='referenced(interfacedefs, component
s)' -fnesc-dumpfile=build/micaz/wiring-check.xml SnooperAppC.nc -lm
In file included from /opt/tinyos-2.x/tos/lib/printf/printf.h:49,
                 from SnooperC.nc:1,
                 from SnooperAppC.nc:6:
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:408: syntax error before `3'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:598: syntax error before `__stream'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:604: syntax error before `__stream'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:611: syntax error before `__stream'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:616: syntax error before `__stream'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:639: syntax error before `__fmt'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:645: syntax error before `__fmt'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:653: syntax error before `__fmt'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:659: syntax error before `__s'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:665: syntax error before `__s'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:675: syntax error before `__s'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:681: syntax error before `__s'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:687: syntax error before `__s'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:693: syntax error before `__s'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:703: syntax error before `__s'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:709: syntax error before `__s'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:714: syntax error before `__stream'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:720: syntax error before `__stream'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:727: syntax error before `__str'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:732: syntax error before `__str'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:738: syntax error before `__str'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:743: syntax error before `__str'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:753: syntax error before `__stream'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:761: syntax error before `__stream'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:766: syntax error before `__stream'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:800: syntax error before `__stream'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:812: syntax error before `__str'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:819: syntax error before `__str'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:831: syntax error before `__stream'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:836: syntax error before `__stream'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:847: syntax error before `__stream'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:858: syntax error before `__stream'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:1008: syntax error before `__stream'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:1013: syntax error before `__stream'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:1021: syntax error before `__stream'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:1026: syntax error before `__stream'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:1033: syntax error before `__fmt'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:1038: syntax error before `__fmt'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:1046: syntax error before `__fmt'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:1054: syntax error before `__buf'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:1059: syntax error before `__buf'
/opt/tinyos-2.x/tos/lib/printf/avr_stdio.h:1071: syntax error before `stream'
In file included from /opt/tinyos-2.x/tos/lib/printf/PrintfC.nc:56,
                 from /opt/tinyos-2.x/tos/lib/printf/MainC.nc:51,
                 from SnooperAppC.nc:8:
/opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:80: warning: implicit
declaration of functi
on `TCAST'
/opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:80: syntax error before `int'
In component `PrintfP':
/opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:84: unknown attribute `safe'
/opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:84: empty scalar initializer
/opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:84: (near initialization for [EMAIL 
PROTECTED]')
/opt/tinyos-2.x/tos/lib/printf/PrintfP.nc: In function
`SerialControl.startDone':
/opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:116: `__iob' undeclared
(first use in this
function)
/opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:116: (Each undeclared
identifier is reporte
d only once
/opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:116: for each function it appears in.)
/opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:116: subscripted value is
neither array nor
 pointer
/opt/tinyos-2.x/tos/lib/printf/PrintfP.nc: In function `sendNext':
/opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:134: warning: passing
argument 2 of `Packet
.getPayload' makes pointer from integer without a cast
In component `DbgMessengerC':
../DbgMessengerC.nc: At top level:
../DbgMessengerC.nc:40: no match
make: *** [exe0] Error 1
--------------------------------
Thanks

Nicola
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to