[Tinyos-help] tossim doesn't work

Mohamed Ahmed mohamed7ahmed at yahoo.com
Wed Dec 27 10:16:54 PST 2006


Hi,
   
  Running "g++ -c tossim_wrap.cxx" does not generate any error.
   
  The file "tossim_wrap.cxx" is located in the directory "/opt/tinyos-2.x/tos/lib/tossim".
   
  However, when I run "make micaz sim", the errors given below and related to
  "tossim_wrap.cxx" are generated.
   
  Did anyone have this problem (and if so, is there any solution to it)?
   
  Thanks,
  Mohamed
   
  -------------------------------------------------------------------------------------------------------------------------------
  $ 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 -shared -fPIC -o build/micaz/sim.o -g -O0 -tossim -fnesc-nido-tosnodes=10
00 -fnesc-simulate -fnesc-nido-motenumber=sim_node\(\)   -finline-limit=100000 -
Wall -Wshadow -Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c -board=mic
asb  -Wno-nesc-data-race BlinkAppC.nc   -fnesc-dump=components -fnesc-dump=varia
bles -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:98: 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: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' sh
adows 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' sh
adows global declaration
/usr/include/sys/unistd.h:98: 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
build/micaz/app.c:1: warning: -fPIC ignored for target (all code is position ind
ependent)
  compiling Python support and C libraries into pytossim.o, tossim.o, and c-supp
ort.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.4 -I/opt/tinyos-2.x/tos/lib/tossim
 -DHAVE_CONFIG_H
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1: warning: -fPIC ignored for tar
get (all code is position independent)
g++ -c  -shared -fPIC -o build/micaz/tossim.o -g -O0  /opt/tinyos-2.x/tos/lib/to
ssim/tossim.c -I/usr/include/python2.4 -I/opt/tinyos-2.x/tos/lib/tossim
/opt/tinyos-2.x/tos/lib/tossim/tossim.c:1: warning: -fPIC ignored for target (al
l code is position independent)
g++ -c  -shared -fPIC -o build/micaz/c-support.o -g -O0  /opt/tinyos-2.x/tos/lib
/tossim/hashtable.c -I/usr/include/python2.4 -I/opt/tinyos-2.x/tos/lib/tossim
/opt/tinyos-2.x/tos/lib/tossim/hashtable.c:1: warning: -fPIC ignored for target
(all code is position independent)
  linking into shared object ./_TOSSIMmodule.so
g++ -shared -fPIC  build/micaz/pytossim.o build/micaz/sim.o build/micaz/tossim.o
 build/micaz/c-support.o -lstdc++  -o _TOSSIMmodule.so
build/micaz/pytossim.o: In function `_Z21SWIG_Python_ErrorTypei':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:826: undefined reference to `__im
p__PyExc_MemoryError'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:829: undefined reference to `__im
p__PyExc_IOError'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:832: undefined reference to `__im
p__PyExc_RuntimeError'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:835: undefined reference to `__im
p__PyExc_IndexError'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:838: undefined reference to `__im
p__PyExc_TypeError'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:841: undefined reference to `__im
p__PyExc_ZeroDivisionError'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:844: undefined reference to `__im
p__PyExc_OverflowError'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:847: undefined reference to `__im
p__PyExc_SyntaxError'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:850: undefined reference to `__im
p__PyExc_ValueError'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:853: undefined reference to `__im
p__PyExc_SystemError'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:856: undefined reference to `__im
p__PyExc_AttributeError'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:859: undefined reference to `__im
p__PyExc_RuntimeError'
build/micaz/pytossim.o: In function `_Z23SWIG_Python_AddErrorMsgPKc':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:872: undefined reference to `_PyE
rr_Occurred'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:872: undefined reference to `_PyE
rr_Fetch'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:874: undefined reference to `_PyO
bject_Str'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:875: undefined reference to `_PyE
rr_Clear'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:877: undefined reference to `_PyS
tring_AsString'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:877: undefined reference to `_PyE
rr_Format'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:881: undefined reference to `__im
p__PyExc_RuntimeError'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:881: undefined reference to `_PyE
rr_Format'
build/micaz/pytossim.o: In function `_Z23SWIG_Python_SetErrorObjP7_objectS0_':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1051: undefined reference to `_Py
Err_SetObject'
build/micaz/pytossim.o: In function `_Z23SWIG_Python_SetErrorMsgP7_objectPKc':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1059: undefined reference to `_Py
Err_SetString'
build/micaz/pytossim.o: In function `_Z23SWIG_Python_SetConstantP7_objectPKcS0_'
:
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1069: undefined reference to `_Py
Dict_SetItemString'
build/micaz/pytossim.o: In function `_Z24SWIG_Python_AppendOutputP7_objectS0_':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1080: undefined reference to `__i
mp___Py_NoneStruct'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1084: undefined reference to `__i
mp__PyList_Type'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1084: undefined reference to `__i
mp__PyList_Type'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1084: undefined reference to `_Py
Type_IsSubtype'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1086: undefined reference to `_Py
List_New'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1087: undefined reference to `_Py
List_SetItem'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1089: undefined reference to `_Py
List_Append'
build/micaz/pytossim.o: In function `_Z23SWIG_Python_UnpackTupleP7_objectPKciiPS
0_':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1127: undefined reference to `__i
mp__PyExc_TypeError'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1127: undefined reference to `_Py
Err_Format'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1132: undefined reference to `__i
mp__PyTuple_Type'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1132: undefined reference to `__i
mp__PyTuple_Type'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1132: undefined reference to `_Py
Type_IsSubtype'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1133: undefined reference to `__i
mp__PyExc_SystemError'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1133: undefined reference to `_Py
Err_SetString'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1138: undefined reference to `__i
mp__PyExc_TypeError'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1138: undefined reference to `_Py
Err_Format'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1142: undefined reference to `__i
mp__PyExc_TypeError'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1142: undefined reference to `_Py
Err_Format'
build/micaz/pytossim.o: In function `_SWIG_Py_None':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1209: undefined reference to `_Py
_BuildValue'
build/micaz/pytossim.o: In function `PySwigClientData_New':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1268: undefined reference to `__i
mp__PyClass_Type'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1276: undefined reference to `_Py
Object_GetAttrString'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1280: undefined reference to `_Py
Tuple_New'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1281: undefined reference to `_Py
Tuple_SetItem'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1288: undefined reference to `_Py
Object_GetAttrString'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1289: undefined reference to `_Py
Err_Occurred'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1290: undefined reference to `_Py
Err_Clear'
build/micaz/pytossim.o: In function `PySwigObject_long':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1331: undefined reference to `_Py
Long_FromVoidPtr'
build/micaz/pytossim.o: In function `PySwigObject_format':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1338: undefined reference to `_Py
Tuple_New'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1340: undefined reference to `_Py
Tuple_SetItem'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1341: undefined reference to `_Py
String_FromString'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1343: undefined reference to `_Py
String_Format'
build/micaz/pytossim.o: In function `PySwigObject_repr':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1373: undefined reference to `_Py
String_AsString'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1373: undefined reference to `_Py
String_FromFormat'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1381: undefined reference to `_Py
String_ConcatAndDel'
build/micaz/pytossim.o: In function `PySwigObject_print':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1395: undefined reference to `_Py
String_AsString'
build/micaz/pytossim.o: In function `PySwigObject_str':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1407: undefined reference to `_Py
String_FromString'
build/micaz/pytossim.o: In function `PySwigObject_dealloc':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1451: undefined reference to `_Py
Object_CallFunctionObjArgs'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1467: undefined reference to `_Py
Object_Free'
build/micaz/pytossim.o: In function `PySwigObject_own':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1534: undefined reference to `_Py
Arg_UnpackTuple'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1542: undefined reference to `_Py
Bool_FromLong'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1545: undefined reference to `_Py
Object_IsTrue'
build/micaz/pytossim.o: In function `_PySwigObject_type':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1694: undefined reference to `__i
mp__PyType_Type'
...
  -------------------------------------------------------------------------------------------------------------------------------

 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20061227/ecaf6ba4/attachment.htm


More information about the Tinyos-help mailing list