ns3, build failed after a random variable modification

399 views
Skip to first unread message

Dorice Diane Ngueguia

unread,
Dec 15, 2009, 2:58:30 AM12/15/09
to ns-3-...@googlegroups.com
Hi,

After the dynamic node creation issue, this is a new one.

My program built and run very well till I modified a random variable type (Uniform to Sequential), I also deleted another one (Constant) I was no longer using. Now It can't build.
Below the long message I get. I wonder what is wrong this time.

Need help please

dorice

[624/719] cxx: build/debug/bindings/python/ns3module.cc -> build/debug/bindings/python/ns3module_3.o
In file included from debug/bindings/python/ns3module.cc:1:
debug/bindings/python/ns3module.h:3:20: error: Python.h: Aucun fichier ou dossier de ce type
In file included from debug/bindings/python/ns3module.cc:1:
debug/bindings/python/ns3module.h:39: error: ‘inquiry’ does not name a type
debug/bindings/python/ns3module.h:40: error: ‘intargfunc’ does not name a type
debug/bindings/python/ns3module.h:41: error: ‘intobjargproc’ does not name a type
In file included from debug/bindings/python/ns3module.cc:1:
debug/bindings/python/ns3module.h:63: error: ‘PyObject_HEAD’ does not name a type
debug/bindings/python/ns3module.h:68: error: ‘PyTypeObject’ does not name a type
debug/bindings/python/ns3module.h:72: error: ‘PyObject’ was not declared in this scope
debug/bindings/python/ns3module.h:72: error: template argument 2 is invalid
debug/bindings/python/ns3module.h:72: error: template argument 4 is invalid
debug/bindings/python/ns3module.h:72: error: invalid type in declaration before ‘;’ token
debug/bindings/python/ns3module.h:75: error: ‘PyObject_HEAD’ does not name a type
debug/bindings/python/ns3module.h:80: error: ‘PyTypeObject’ does not name a type
debug/bindings/python/ns3module.h:84: error: ‘PyObject’ was not declared in this scope
debug/bindings/python/ns3module.h:84: error: template argument 2 is invalid
debug/bindings/python/ns3module.h:84: error: template argument 4 is invalid
debug/bindings/python/ns3module.h:84: error: invalid type in declaration before ‘;’ token
debug/bindings/python/ns3module.h:87: error: ‘PyObject_HEAD’ does not name a type
debug/bindings/python/ns3module.h:89: error: ISO C++ forbids declaration of ‘PyObject’ with no type
debug/bindings/python/ns3module.h:89: error: expected ‘;’ before ‘*’ token
debug/bindings/python/ns3module.h:93: error: ‘PyTypeObject’ does not name a type
debug/bindings/python/ns3module.h:98: error: ISO C++ forbids declaration of ‘PyObject’ with no type
debug/bindings/python/ns3module.h:98: error: expected ‘;’ before ‘*’ token
debug/bindings/python/ns3module.h:108: error: ‘PyObject’ has not been declared
debug/bindings/python/ns3module.h: In constructor ‘PyNs3CallbackImplBase__PythonHelper::PyNs3CallbackImplBase__PythonHelper(const ns3::CallbackImplBase&)’:
debug/bindings/python/ns3module.h:100: error: class ‘PyNs3CallbackImplBase__PythonHelper’ does not have any field named ‘m_pyself’
debug/bindings/python/ns3module.h: In constructor ‘PyNs3CallbackImplBase__PythonHelper::PyNs3CallbackImplBase__PythonHelper()’:
debug/bindings/python/ns3module.h:104: error: class ‘PyNs3CallbackImplBase__PythonHelper’ does not have any field named ‘m_pyself’
debug/bindings/python/ns3module.h: In member function ‘void PyNs3CallbackImplBase__PythonHelper::set_pyobj(int*)’:
debug/bindings/python/ns3module.h:110: error: ‘m_pyself’ was not declared in this scope
debug/bindings/python/ns3module.h:110: error: ‘Py_XDECREF’ was not declared in this scope
debug/bindings/python/ns3module.h:111: error: ‘Py_INCREF’ was not declared in this scope
debug/bindings/python/ns3module.h: In destructor ‘virtual PyNs3CallbackImplBase__PythonHelper::~PyNs3CallbackImplBase__PythonHelper()’:
debug/bindings/python/ns3module.h:117: error: ‘m_pyself’ was not declared in this scope
debug/bindings/python/ns3module.h:117: error: ‘PyObject’ was not declared in this scope
debug/bindings/python/ns3module.h:117: error: ‘tmp’ was not declared in this scope
debug/bindings/python/ns3module.h:117: error: expected primary-expression before ‘)’ token
debug/bindings/python/ns3module.h:117: error: ‘Py_DECREF’ was not declared in this scope
debug/bindings/python/ns3module.h: At global scope:
debug/bindings/python/ns3module.h:126: error: ‘PyObject’ was not declared in this scope
debug/bindings/python/ns3module.h:126: error: template argument 2 is invalid
debug/bindings/python/ns3module.h:126: error: template argument 4 is invalid
debug/bindings/python/ns3module.h:126: error: invalid type in declaration before ‘;’ token
debug/bindings/python/ns3module.h:129: error: ‘PyObject_HEAD’ does not name a type
debug/bindings/python/ns3module.h:131: error: ISO C++ forbids declaration of ‘PyObject’ with no type
debug/bindings/python/ns3module.h:131: error: expected ‘;’ before ‘*’ token
debug/bindings/python/ns3module.h:135: error: ‘PyTypeObject’ does not name a type
debug/bindings/python/ns3module.h:139: error: ‘PyObject’ was not declared in this scope
debug/bindings/python/ns3module.h:139: error: template argument 2 is invalid
debug/bindings/python/ns3module.h:139: error: template argument 4 is invalid
debug/bindings/python/ns3module.h:139: error: invalid type in declaration before ‘;’ token
debug/bindings/python/ns3module.h:142: error: ‘PyObject_HEAD’ does not name a type
debug/bindings/python/ns3module.h:147: error: ‘PyTypeObject’ does not name a type
debug/bindings/python/ns3module.h:151: error: ‘PyObject’ was not declared in this scope
debug/bindings/python/ns3module.h:151: error: template argument 2 is invalid
debug/bindings/python/ns3module.h:151: error: template argument 4 is invalid
debug/bindings/python/ns3module.h:151: error: invalid type in declaration before ‘;’ token
debug/bindings/python/ns3module.h:154: error: ‘PyObject_HEAD’ does not name a type
debug/bindings/python/ns3module.h:159: error: ‘PyTypeObject’ does not name a type
debug/bindings/python/ns3module.h:163: error: ‘PyObject’ was not declared in this scope
debug/bindings/python/ns3module.h:163: error: template argument 2 is invalid
debug/bindings/python/ns3module.h:163: error: template argument 4 is invalid
debug/bindings/python/ns3module.h:163: error: invalid type in declaration before ‘;’ token
debug/bindings/python/ns3module.h:166: error: ‘PyObject_HEAD’ does not name a type
debug/bindings/python/ns3module.h:171: error: ‘PyTypeObject’ does not name a type
debug/bindings/python/ns3module.h:175: error: ‘PyObject’ was not declared in this scope
debug/bindings/python/ns3module.h:175: error: template argument 2 is invalid
debug/bindings/python/ns3module.h:175: error: template argument 4 is invalid
debug/bindings/python/ns3module.h:175: error: invalid type in declaration before ‘;’ token
debug/bindings/python/ns3module.h:178: error: ‘PyObject_HEAD’ does not name a type
debug/bindings/python/ns3module.h:183: error: ‘PyTypeObject’ does not name a type
debug/bindings/python/ns3module.h:187: error: ‘PyObject’ was not declared in this scope
debug/bindings/python/ns3module.h:187: error: template argument 2 is invalid
debug/bindings/python/ns3module.h:187: error: template argument 4 is invalid
debug/bindings/python/ns3module.h:187: error: invalid type in declaration before ‘;’ token
debug/bindings/python/ns3module.h:190: error: ‘PyObject_HEAD’ does not name a type
debug/bindings/python/ns3module.h:195: error: ‘PyTypeObject’ does not name a type
debug/bindings/python/ns3module.h:199: error: ‘PyObject’ was not declared in this scope
debug/bindings/python/ns3module.h:199: error: template argument 2 is invalid
debug/bindings/python/ns3module.h:199: error: template argument 4 is invalid
debug/bindings/python/ns3module.h:199: error: invalid type in declaration before ‘;’ token
debug/bindings/python/ns3module.h:202: error: ‘PyObject_HEAD’ does not name a type
debug/bindings/python/ns3module.h:207: error: ‘PyTypeObject’ does not name a type
debug/bindings/python/ns3module.h:211: error: ‘PyObject’ was not declared in this scope
debug/bindings/python/ns3module.h:211: error: template argument 2 is invalid
debug/bindings/python/ns3module.h:211: error: template argument 4 is invalid
debug/bindings/python/ns3module.h:211: error: invalid type in declaration before ‘;’ token
debug/bindings/python/ns3module.h:214: error: ‘PyObject_HEAD’ does not name a type
debug/bindings/python/ns3module.h:219: error: ‘PyTypeObject’ does not name a type
debug/bindings/python/ns3module.h:223: error: ‘PyObject’ was not declared in this scope
debug/bindings/python/ns3module.h:223: error: template argument 2 is invalid
debug/bindings/python/ns3module.h:223: error: template argument 4 is invalid
debug/bindings/python/ns3module.h:223: error: invalid type in declaration before ‘;’ token
debug/bindings/python/ns3module.h:226: error: ‘PyObject_HEAD’ does not name a type
debug/bindings/python/ns3module.h:231: error: ‘PyTypeObject’ does not name a type
debug/bindings/python/ns3module.h:235: error: ‘PyObject’ was not declared in this scope
debug/bindings/python/ns3module.h:235: error: template argument 2 is invalid
debug/bindings/python/ns3module.h:235: error: template argument 4 is invalid
debug/bindings/python/ns3module.h:235: error: invalid type in declaration before ‘;’ token
debug/bindings/python/ns3module.h:238: error: ‘PyObject_HEAD’ does not name a type
debug/bindings/python/ns3module.h:243: error: ‘PyTypeObject’ does not name a type
debug/bindings/python/ns3module.h:247: error: ‘PyObject’ was not declared in this scope
debug/bindings/python/ns3module.h:247: error: template argument 2 is invalid
debug/bindings/python/ns3module.h:247: error: template argument 4 is invalid
debug/bindings/python/ns3module.h:247: error: invalid type in declaration before ‘;’ token
debug/bindings/python/ns3module.h:250: error: ‘PyObject_HEAD’ does not name a type
debug/bindings/python/ns3module.h:255: error: ‘PyTypeObject’ does not name a type
debug/bindings/python/ns3module.h:259: error: ‘PyObject’ was not declared in this scope
debug/bindings/python/ns3module.h:259: error: template argument 2 is invalid
debug/bindings/python/ns3module.h:259: error: template argument 4 is invalid
debug/bindings/python/ns3module.h:259: error: invalid type in declaration before ‘;’ token
debug/bindings/python/ns3module.h:262: error: ‘PyObject_HEAD’ does not name a type
debug/bindings/python/ns3module.h:264: error: ISO C++ forbids declaration of ‘PyObject’ with no type
debug/bindings/python/ns3module.h:264: error: expected ‘;’ before ‘*’ token
debug/bindings/python/ns3module.h:268: error: ‘PyTypeObject’ does not name a type
debug/bindings/python/ns3module.h:273: error: ISO C++ forbids declaration of ‘PyObject’ with no type
debug/bindings/python/ns3module.h:273: error: expected ‘;’ before ‘*’ token
debug/bindings/python/ns3module.h:283: error: ‘PyObject’ has not been declared
debug/bindings/python/ns3module.h:296: error: ISO C++ forbids declaration of ‘PyObject’ with no type
debug/bindings/python/ns3module.h:296: error: expected ‘;’ before ‘*’ token
debug/bindings/python/ns3module.h: In constructor ‘PyNs3ObjectBase__PythonHelper::PyNs3ObjectBase__PythonHelper(const ns3::ObjectBase&)’:
debug/bindings/python/ns3module.h:275: error: class ‘PyNs3ObjectBase__PythonHelper’ does not have any field named ‘m_pyself’
debug/bindings/python/ns3module.h: In constructor ‘PyNs3ObjectBase__PythonHelper::PyNs3ObjectBase__PythonHelper()’:
debug/bindings/python/ns3module.h:279: error: class ‘PyNs3ObjectBase__PythonHelper’ does not have any field named ‘m_pyself’
debug/bindings/python/ns3module.h: In member function ‘void PyNs3ObjectBase__PythonHelper::set_pyobj(int*)’:
debug/bindings/python/ns3module.h:285: error: ‘m_pyself’ was not declared in this scope
debug/bindings/python/ns3module.h:285: error: ‘Py_XDECREF’ was not declared in this scope
debug/bindings/python/ns3module.h:286: error: ‘Py_INCREF’ was not declared in this scope
debug/bindings/python/ns3module.h: In destructor ‘virtual PyNs3ObjectBase__PythonHelper::~PyNs3ObjectBase__PythonHelper()’:
debug/bindings/python/ns3module.h:292: error: ‘m_pyself’ was not declared in this scope
debug/bindings/python/ns3module.h:292: error: ‘PyObject’ was not declared in this scope
debug/bindings/python/ns3module.h:292: error: ‘tmp’ was not declared in this scope
debug/bindings/python/ns3module.h:292: error: expected primary-expression before ‘)’ token
debug/bindings/python/ns3module.h:292: error: ‘Py_DECREF’ was not declared in this scope
debug/bindings/python/ns3module.h: At global scope:
debug/bindings/python/ns3module.h:307: error: ‘PyObject’ was not declared in this scope
debug/bindings/python/ns3module.h:307: error: template argument 2 is invalid
debug/bindings/python/ns3module.h:307: error: template argument 4 is invalid
debug/bindings/python/ns3module.h:307: error: invalid type in declaration before ‘;’ token
debug/bindings/python/ns3module.h:310: error: ‘PyObject_HEAD’ does not name a type
debug/bindings/python/ns3module.h:315: error: ‘PyTypeObject’ does not name a type
debug/bindings/python/ns3module.h:319: error: ‘PyObject’ was not declared in this scope
debug/bindings/python/ns3module.h:319: error: template argument 2 is invalid
debug/bindings/python/ns3module.h:319: error: template argument 4 is invalid
debug/bindings/python/ns3module.h:319: error: invalid type in declaration before ‘;’ token
debug/bindings/python/ns3module.h:322: error: ‘PyObject_HEAD’ does not name a type
debug/bindings/python/ns3module.h:327: error: ‘PyTypeObject’ does not name a type
debug/bindings/python/ns3module.h:331: error: ‘PyObject’ was not declared in this scope
debug/bindings/python/ns3module.h:331: error: template argument 2 is invalid
debug/bindings/python/ns3module.h:331: error: template argument 4 is invalid
debug/bindings/python/ns3module.h:331: error: invalid type in declaration before ‘;’ token
debug/bindings/python/ns3module.h:334: error: ‘PyObject_HEAD’ does not name a type
debug/bindings/python/ns3module.h:339: error: ‘PyTypeObject’ does not name a type
In file included from debug/bindings/python/ns3module.cc:1:
debug/bindings/python/ns3module.h:353: error: ‘PyTypeObject’ was not declared in this scope
debug/bindings/python/ns3module.h:353: error: template argument 2 is invalid
debug/bindings/python/ns3module.h:353: error: template argument 4 is invalid
debug/bindings/python/ns3module.h:359: error: ‘PyTypeObject’ has not been declared
debug/bindings/python/ns3module.h:364: error: ISO C++ forbids declaration of ‘PyTypeObject’ with no type
debug/bindings/python/ns3module.h:364: error: expected ‘;’ before ‘*’ token
debug/bindings/python/ns3module.cc:4437: error: expected ‘;’ at end of input
debug/bindings/python/ns3module.cc:4437: error: expected ‘}’ at end of input
In file included from debug/bindings/python/ns3module.cc:1:
debug/bindings/python/ns3module.h: In member function ‘void pybindgen::TypeMap::register_wrapper(const std::type_info&, int*)’:
debug/bindings/python/ns3module.h:361: error: assignment of read-only location ‘*(((const std::type_info*)cpp_type_info)->std::type_info::name() + ((unsigned int)((pybindgen::TypeMap*)this)->pybindgen::TypeMap::m_map))’
debug/bindings/python/ns3module.h:361: error: invalid conversion from ‘int*’ to ‘char’
debug/bindings/python/ns3module.h: At global scope:
debug/bindings/python/ns3module.h:362: error: expected unqualified-id at end of input
debug/bindings/python/ns3module.h:362: error: expected ‘}’ at end of input
Waf: Leaving directory `/home/dorice/Utilitaires/ns-allinone-3.5/ns-3.5/build'
Build failed
 -> task failed (err #1):
    {task: cxx ns3module.cc -> ns3module_3.o}

fab

unread,
Dec 16, 2009, 4:14:46 AM12/16/09
to ns-3-users
Hi dorice, just a shot in the dark:

last line:
> debug/bindings/python/ns3module.h:362: error: expected ‘}’ at end of input

did you accidently delete a } parentesis at some point? I guess that
confused the compiler.

Regards,
Fabian


On 15 Dez., 08:58, Dorice Diane Ngueguia <doricedi...@gmail.com>
wrote:

Gustavo Carneiro

unread,
Dec 16, 2009, 5:38:08 AM12/16/09
to ns-3-...@googlegroups.com


2009/12/16 fab <fabian.bi...@gmail.com>

Hi dorice, just a shot in the dark:

last line:
> debug/bindings/python/ns3module.h:362: error: expected ‘}’ at end of input

did you accidently delete a } parentesis at some point? I guess that
confused the compiler.

No, I don't think that's the problem, it's rather this one:

debug/bindings/python/ns3module.h:3:20: error: Python.h: Aucun fichier ou dossier de ce type
 
Make sure you have the Python development headers installed.

--

You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.





--
Gustavo J. A. M. Carneiro
INESC Porto, Telecommunications and Multimedia Unit
"The universe is always one step beyond logic." -- Frank Herbert

Dorice Diane Ngueguia

unread,
Dec 16, 2009, 9:12:41 AM12/16/09
to ns-3-...@googlegroups.com
The python-dev package is installed, and Python.h file is at location /usr/include/python2.6.

On the other hand I don't think I have deleted any } parenthesis.

So ...


Dorice Diane Ngueguia

unread,
Dec 16, 2009, 11:02:52 AM12/16/09
to ns-3-...@googlegroups.com
Finally I have rebuilt ns3 with disable-python option, since I am just using C++. It is not the best solution, but now I can at least continue my work.

regards
Reply all
Reply to author
Forward
0 new messages