*Dear All,*
*I was trying to run a bunch of NesC code on the TinyOS simulator TOSSIM.*
*While doing this we were getting the following errors (what follows is a
print of the command prompt log)*
*Error has been highlighted in yellow*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Setting up for TinyOS 2.1.1
khan@Khan:~$ cd ../../opt/tinyos-2.1.1/apps/tutorials/P
PacketParrot/ Printf/
khan@Khan:~$ cd ../../opt/tinyos-2.1.1/apps/tutorials/Printf/
khan@Khan:/opt/tinyos-2.1.1/apps/tutorials/Printf$ sudo su
[sudo] password for khan:
Setting up for TinyOS 2.1.1
root@Khan:/opt/tinyos-2.1.1/apps/tutorials/Printf# make micaz sim
mkdir -p simbuild/micaz
  placing object files in simbuild/micaz
  writing XML schema to app.xml
  compiling TestPrintfAppC to object file sim.o
ncc -c -shared -fPIC -o simbuild/micaz/sim.o -g -O0 -tossim
-fnesc-nido-tosnodes=1000 -fnesc-simulate
-fnesc-nido-motenumber=sim_node\(\) -fnesc-gcc=gcc -Wall -Wshadow
-Wnesc-all -target=micaz -fnesc-cfile=simbuild/micaz/app.c -board=micasb
-DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000
-I/opt/tinyos-2.1.1/tos/lib/printf -DIDENT_APPNAME=\"TestPrintfAppC\"
-DIDENT_USERNAME=\"root\" -DIDENT_HOSTNAME=\"Khan\"
-DIDENT_USERHASH=0x2624df09L -DIDENT_TIMESTAMP=0x4f83a62fL
-DIDENT_UIDHASH=0x2625b1e6L -I/home/khan/Python-2.7.2/Include
-Wno-nesc-data-race TestPrintfAppC.nc   -fnesc-dump=components
-fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs
-fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml
TestPrintfC.nc: In function ‘TestPrintfC$Boot$booted’:
TestPrintfC.nc:53:3: warning: format ‘%ld’ expects argument of type ‘long
int’, but argument 2 has type ‘uint32_t’ [-Wformat]
/opt/tinyos-2.1.1/tos/lib/tossim/sim_noise.c: In function ‘sim_noise_gen’:
/opt/tinyos-2.1.1/tos/lib/tossim/sim_noise.c:283:7: warning: variable
‘noiseIndex’ set but not used [-Wunused-but-set-variable]
  compiling Python support and C libraries into pytossim.o, tossim.o, and
c-support.o
g++ -c  -shared -fPIC -o simbuild/micaz/pytossim.o -g -O0
-I/opt/tinyos-2.1.1/tos/lib/printf -DIDENT_APPNAME=\"TestPrintfAppC\"
-DIDENT_USERNAME=\"root\" -DIDENT_HOSTNAME=\"Khan\"
-DIDENT_USERHASH=0x2624df09L -DIDENT_TIMESTAMP=0x4f83a62fL
-DIDENT_UIDHASH=0x2625b1e6L -I/home/khan/Python-2.7.2/Include
/opt/tinyos-2.1.1/tos/lib/tossim/tossim_wrap.cxx -I/usr/include/python2.7
-I/opt/tinyos-2.1.1/tos/lib/tossim -DHAVE_CONFIG_H
/opt/tinyos-2.1.1/tos/lib/tossim/tossim_wrap.cxx: In function ‘void
SWIG_Python_AddErrorMsg(const char*)’:
/opt/tinyos-2.1.1/tos/lib/tossim/tossim_wrap.cxx:880:42: warning: format
not a string literal and no format arguments [-Wformat-security]
g++ -c  -shared -fPIC -o simbuild/micaz/tossim.o -g -O0
-I/opt/tinyos-2.1.1/tos/lib/printf -DIDENT_APPNAME=\"TestPrintfAppC\"
-DIDENT_USERNAME=\"root\" -DIDENT_HOSTNAME=\"Khan\"
-DIDENT_USERHASH=0x2624df09L -DIDENT_TIMESTAMP=0x4f83a62fL
-DIDENT_UIDHASH=0x2625b1e6L -I/home/khan/Python-2.7.2/Include
/opt/tinyos-2.1.1/tos/lib/tossim/tossim.c -I/usr/include/python2.7
-I/opt/tinyos-2.1.1/tos/lib/tossim
g++ -c  -shared -fPIC -o simbuild/micaz/c-support.o -g -O0
-I/opt/tinyos-2.1.1/tos/lib/printf -DIDENT_APPNAME=\"TestPrintfAppC\"
-DIDENT_USERNAME=\"root\" -DIDENT_HOSTNAME=\"Khan\"
-DIDENT_USERHASH=0x2624df09L -DIDENT_TIMESTAMP=0x4f83a62fL
-DIDENT_UIDHASH=0x2625b1e6L -I/home/khan/Python-2.7.2/Include
/opt/tinyos-2.1.1/tos/lib/tossim/hashtable.c -I/usr/include/python2.7
-I/opt/tinyos-2.1.1/tos/lib/tossim
  linking into shared object ./_TOSSIMmodule.so
g++ -shared -fPIC  simbuild/micaz/pytossim.o simbuild/micaz/sim.o
simbuild/micaz/tossim.o simbuild/micaz/c-support.o -lstdc++  -o
_TOSSIMmodule.so
  copying Python script interface TOSSIM.py from lib/tossim to local
directory

*** Successfully built micaz TOSSIM library.
root@Khan:/opt/tinyos-2.1.1/apps/tutorials/Printf# python
Python 2.7.2+ (default, Oct  4 2011, 20:06:09)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from TOSSIM import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "TOSSIM.py", line 7, in <module>
    import _TOSSIM
*ImportError: ./_TOSSIMmodule.so: undefined symbol: printfflush*
>>>

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@


*
*
*It seems that it is not able to detect the printfflush function. This
error does not arise during compile time. It is just during run time that
this pops up. Could you please help su find a solution to this error. We
would greatly appreciate any assistance you can provide to us.*
*Thanks in advance,*
*Ak.*
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to