Don't worry about those warnings. I hope to clean up the code for 2.0.1 so they go away. It basically just involves renaming some variables.

Phil

On Mar 18, 2007, at 2:40 PM, Faisal Karim wrote:

Hi all

Appendix A of tutorial 11 is very usefull and after giving some time to it I compiled the Blink for TOSSIM but still some warnings are there, shd one ignore them or is there any hack around them as well.
Following is my output
$ make micaz sim
mkdir -p build/micaz
  placing object files in build/micaz
  writing XML schema to app.xml
  compiling BlinkAppC to object file sim.o
ncc -c -DUSE_DL_IMPORT -fpic -o build/micaz/sim.o -g -O0 -tossim - fnesc-nido-tos nodes=1000 -fnesc-simulate -fnesc-nido-motenumber=sim_node\(\) - finline-limit= 100000 -Wall -Wshadow -Wnesc-all -target=micaz -fnesc-cfile=build/ micaz/app.c -b oard=micasb -I/usr/include/python2.3 -Wno-nesc-data-race BlinkAppC.nc -fnesc-d ump=components -fnesc-dump=variables -fnesc-dump=constants -fnesc- dump=typedefs
-fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml
In file included from /opt/tinyos-2.x/tos/lib/tossim/sim_mac.c:34,
                 from /opt/tinyos-2.x/tos/lib/tossim/tos.h:89:
/opt/tinyos-2.x/tos/lib/tossim/sim_gain.c:14: warning: declaration of `link' sha
dows global declaration
/usr/include/sys/unistd.h:97: warning: location of shadowed declaration /opt/tinyos-2.x/tos/lib/tossim/sim_gain.c:20: warning: declaration of `link' sha
dows global declaration
/usr/include/sys/unistd.h:97: warning: location of shadowed declaration /opt/tinyos-2.x/tos/lib/tossim/sim_gain.c: In function `sim_gain_allocate_link': /opt/tinyos-2.x/tos/lib/tossim/sim_gain.c:134: warning: declaration of `link' sh
adows global declaration
/usr/include/sys/unistd.h:97: warning: location of shadowed declaration
/opt/tinyos-2.x/tos/lib/tossim/sim_gain.c: At top level:
/opt/tinyos-2.x/tos/lib/tossim/sim_gain.c:141: warning: declaration of `link' sh
adows global declaration
/usr/include/sys/unistd.h:97: warning: location of shadowed declaration In file included from /opt/tinyos-2.x/tos/chips/atm128/timer/sim/ HplAtm128Timer0
AsyncC.nc:58,
from /opt/tinyos-2.x/tos/platforms/mica/ AlarmCounterMilliP.nc:3
0,
from /opt/tinyos-2.x/tos/platforms/mica/sim/ HilTimerMilliC.nc:4
1,
                 from /opt/tinyos-2.x/tos/system/TimerMilliP.nc:41,
                 from /opt/tinyos-2.x/tos/system/TimerMilliC.nc:40,
                 from BlinkAppC.nc:46:
In component `HplAtm128CompareC':
/opt/tinyos-2.x/tos/chips/atm128/timer/sim/HplAtm128CompareC.nc: In function `ti
mer0_compare_handle':
/opt/tinyos-2.x/tos/chips/atm128/timer/sim/HplAtm128CompareC.nc: 195: warning: de
claration of `time' shadows global declaration
/usr/include/time.h:49: warning: location of shadowed declaration
cc1: warning: -fpic ignored for target (all code is position independent) compiling Python support and C libraries into pytossim.o, tossim.o, and c-supp
ort.o
g++ -c -DUSE_DL_IMPORT -fpic -o build/micaz/pytossim.o -g -O0 -I/ usr/include/py thon2.3 /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx -I/lib/ python2.3 -I/opt/t
inyos-2.x/tos/lib/tossim -DHAVE_CONFIG_H
cc1plus: warning: -fpic ignored for target (all code is position independent) g++ -c -DUSE_DL_IMPORT -fpic -o build/micaz/tossim.o -g -O0 -I/usr/ include/pyth on2.3 /opt/tinyos-2.x/tos/lib/tossim/tossim.c -I/lib/python2.3 -I/ opt/tinyos-2.x
/tos/lib/tossim
cc1plus: warning: -fpic ignored for target (all code is position independent) g++ -c -DUSE_DL_IMPORT -fpic -o build/micaz/c-support.o -g -O0 -I/ usr/include/p ython2.3 /opt/tinyos-2.x/tos/lib/tossim/hashtable.c -I/lib/ python2.3 -I/opt/tiny
os-2.x/tos/lib/tossim
cc1plus: warning: -fpic ignored for target (all code is position independent)
  linking into shared object ./_TOSSIM.dll
g++ -fpic -shared -W1,--enabled-auto-image-base build/micaz/ pytossim.o build/m icaz/sim.o build/micaz/tossim.o build/micaz/c-support.o -L/lib/ python2.3/config
-lstdc++ -lpython2.3 -o _TOSSIM.dll
copying Python script interface TOSSIM.py from lib/tossim to local directory
*** Successfully built micaz TOSSIM library.


Looking Forward & Thanks

Regards
Faisal Karim

Don't be flakey. Get Yahoo! Mail for Mobile and
always stay connected to friends.
_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/ tinyos-help

_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to