Can anyone tell me if there is an existing problem or if I have to
install a fix for this? I ran tos-check-env. It worked fine.
I recently installed TinyOS-2. I am trying to compile either Blink or
Null in simulation mode. I am getting the following compiler (g++)
errors on the sample code:
declaration shadows global declaration
-fPIC ignored for target (all code is position independent). This is
followed by lots of compile-time errors.
I get the following output
make micaz sim 1>out.txt 2>err.txt
.........out.txt..............
mkdir -p build/micaz
placing object files in build/micaz
writing XML schema to app.xml
compiling NullAppC to object file sim.o
ncc -c -shared -fPIC -o build/micaz/sim.o -g -O0 -tossim
-fnesc-nido-tosnodes=1000 -fnesc-simulate
-fnesc-nido-motenumber=sim_node\(\) -finline-limit=100000 -Wall
-Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=micaz
-fnesc-cfile=build/micaz/app.c -board=micasb -Wno-nesc-data-race
NullAppC.nc -fnesc-dump=components -fnesc-dump=variables
-fnesc-dump=constants -fnesc-dump=typedefs -fnesc-dump=interfacedefs
-fnesc-dump=tags -fnesc-dumpfile=app.xml
compiling Python support into pytossim.o and tossim.o
g++ -c -shared -fPIC -o build/micaz/pytossim.o -g -O0
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx -I/usr/include/python2.3
-I/opt/tinyos-2.x/tos/lib/tossim -DHAVE_CONFIG_H
.... err.txt......
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:90:
/opt/tinyos-2.x/tos/lib/tossim/sim_gain.c:14: warning: declaration of
`link' shadows global declaration
/usr/include/sys/unistd.h:98: warning: location of shadowed declaration
/opt/tinyos-2.x/tos/lib/tossim/sim_gain.c:20: warning: declaration of
`link' shadows global declaration
/usr/include/sys/unistd.h:98: 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' shadows global declaration
/usr/include/sys/unistd.h:98: 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' shadows global declaration
/usr/include/sys/unistd.h:98: warning: location of shadowed declaration
build/micaz/app.c:1: warning: -fPIC ignored for target (all code is
position independent)
... followed by tons of compiler errors
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help