Hi ,
I encountered a blocking problem when compiling Tossim application in Tinyos 2.
I found that there are other persons who got the same error and the answer was 
: you should configure your python

Unfortunately, I didn't find how.

please help me ( I am blocked)

this is the error



/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3236: error: syntax error before
   `->' token
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3238: error: ISO C++ forbids
   declaration of `Py_INCREF' with no type
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3238: error: redefinition of `
   int Py_INCREF'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3194: error: `int Py_INCREF'
   previously defined here
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3238: error: ISO C++ forbids
   declaration of `resultobj' with no type
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3238: error: redefinition of `
   int resultobj'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3221: error: `int resultobj'
   previously defined here
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3239: error: parse error before
   `return'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3240: error: syntax error before
   `:' token
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3245: error: syntax error before
   `*' token
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3247: error: redefinition of `
   Tossim*arg1'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3230: error: `Tossim*arg1'
   previously defined here
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3248: error: conflicting types
   for `bool result'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3219: error: previous
   declaration as `int result'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3249: error: syntax error before
   `*' token
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3253: error: ISO C++ forbids
   declaration of `result' with no type
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3253: error: conflicting types
   for `int result'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3248: error: previous
   declaration as `bool result'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3255: error: ISO C++ forbids
   declaration of `resultobj' with no type
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3255: error: redefinition of `
   int resultobj'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3238: error: `int resultobj'
   previously defined here
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3255: error: `PyInt_FromLong'
   was not declared in this scope
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3256: error: parse error before
   `return'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3257: error: syntax error before
   `:' token
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3262: error: syntax error before
   `*' token
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3264: error: redefinition of `
   Tossim*arg1'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3247: error: `Tossim*arg1'
   previously defined here
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3265: error: conflicting types
   for `MAC*result'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3253: error: previous
   declaration as `int result'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3266: error: syntax error before
   `*' token
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3270: error: ISO C++ forbids
   declaration of `result' with no type
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3270: error: conflicting types
   for `int result'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3265: error: previous
   declaration as `MAC*result'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3272: error: ISO C++ forbids
   declaration of `resultobj' with no type
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3272: error: redefinition of `
   int resultobj'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3255: error: `int resultobj'
   previously defined here
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3272: error: `SWIG_NewPointerObj
   ' was not declared in this scope
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3273: error: parse error before
   `return'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3274: error: syntax error before
   `:' token
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3279: error: syntax error before
   `*' token
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3281: error: redefinition of `
   Tossim*arg1'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3264: error: `Tossim*arg1'
   previously defined here
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3282: error: conflicting types
   for `Radio*result'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3270: error: previous
   declaration as `int result'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3283: error: syntax error before
   `*' token
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3287: error: ISO C++ forbids
   declaration of `result' with no type
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3287: error: conflicting types
   for `int result'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3282: error: previous
   declaration as `Radio*result'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3289: error: ISO C++ forbids
   declaration of `resultobj' with no type
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3289: error: redefinition of `
   int resultobj'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3272: error: `int resultobj'
   previously defined here
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3289: error: `SWIG_NewPointerObj
   ' was not declared in this scope
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3290: error: parse error before
   `return'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3291: error: syntax error before
   `:' token
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3296: error: syntax error before
   `*' token
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3298: error: redefinition of `
   Tossim*arg1'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3281: error: `Tossim*arg1'
   previously defined here
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3299: error: conflicting types
   for `Packet*result'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3287: error: previous
   declaration as `int result'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3300: error: syntax error before
   `*' token
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3304: error: ISO C++ forbids
   declaration of `result' with no type
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3304: error: conflicting types
   for `int result'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3299: error: previous
   declaration as `Packet*result'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3306: error: ISO C++ forbids
   declaration of `resultobj' with no type
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3306: error: redefinition of `
   int resultobj'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3289: error: `int resultobj'
   previously defined here
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3306: error: `SWIG_NewPointerObj
   ' was not declared in this scope
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3307: error: parse error before
   `return'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3308: error: syntax error before
   `:' token
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3313: error: syntax error before
   `*' token
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3316: error: ISO C++ forbids
   declaration of `SWIG_TypeClientData' with no type
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3316: error: redefinition of `
   int SWIG_TypeClientData'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2943: error: `int
   SWIG_TypeClientData' previously defined here
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3316: error: initializer list
   being treated as compound expression
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3317: error: ISO C++ forbids
   declaration of `Py_INCREF' with no type
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3317: error: redefinition of `
   int Py_INCREF'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3238: error: `int Py_INCREF'
   previously defined here
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3318: error: parse error before
   `return'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3320: error: syntax error before
   `[' token
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3473: error: parse error before
   `}' token
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function `void init_TOSSIM()
   ':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3480: error: ISO C++ forbids
   declaration of `PyObject' with no type
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3480: error: parse error before
   `*' token
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3482: error: `m' undeclared
   (first use this function)
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3484: error: `SWIG_globals'
   undeclared (first use this function)
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3484: error: `SWIG_newvarlink'
   undeclared (first use this function)
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3485: error: `SwigMethods'
   undeclared (first use this function)
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3485: error: `Py_InitModule'
   undeclared (first use this function)
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3486: error: `PyModule_GetDict'
   undeclared (first use this function)
make: *** [sim-exe] Error 1


Thank you very much


      
_____________________________________________________________________________ 
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to