Advertisement

08.02.2008 at 01:01PM PDT, ID: 23616552
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.3

problem with building pysubnettree package

Asked by summer_soccer in Python Scripting Language

Tags:

I need to build the python-subnettree package on a machine that I do not have root privilege. I downloaded pysubnettree-0.11.tar.gz from

http://www.icir.org/robin/pysubnettree/pysubnettree-0.11.tar.gz

and tar -xzvf it.

Now when I tried to run "python setup.py build", it gave me the errors as follows:

running build
running build_py
running build_ext
building '_SubnetTree' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.5 -c SubnetTree.cc -o build/temp.linux-i686-2.5/SubnetTree.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
In file included from SubnetTree.cc:8:
SubnetTree.h:4:20: error: Python.h: No such file or directory
In file included from SubnetTree.cc:8:
SubnetTree.h:21: error: PyObject has not been declared
SubnetTree.h:22: error: PyObject has not been declared
SubnetTree.h:27: error: ISO C++ forbids declaration of PyObject with no type
SubnetTree.h:27: error: expected ; before * token
SubnetTree.h:28: error: ISO C++ forbids declaration of PyObject with no type
SubnetTree.h:28: error: expected ; before * token
SubnetTree.h: In member function bool SubnetTree::operator[](const char*) const:
SubnetTree.h:31: error: lookup was not declared in this scope
SubnetTree.h: In member function bool SubnetTree::operator[](long unsigned int) const:
SubnetTree.h:32: error: lookup was not declared in this scope
SubnetTree.cc: At global scope:
SubnetTree.cc:10: error: expected initializer before * token
SubnetTree.cc:61: error: PyObject has not been declared
SubnetTree.cc:72: error: PyObject has not been declared
SubnetTree.cc: In member function bool SubnetTree::insert(long unsigned int, short unsigned int, int*):
SubnetTree.cc:84: error: dummy was not declared in this scope
SubnetTree.cc:86: error: Py_INCREF was not declared in this scope
SubnetTree.cc: In member function bool SubnetTree::remove(long unsigned int, short unsigned int):
SubnetTree.cc:112: error: PyObject was not declared in this scope
SubnetTree.cc:112: error: data was not declared in this scope
SubnetTree.cc:112: error: expected primary-expression before ) token
SubnetTree.cc:112: error: expected `;' before node
SubnetTree.cc:113: error: Py_DECREF was not declared in this scope
SubnetTree.cc:117: error: dummy was not declared in this scope
SubnetTree.cc: At global scope:
SubnetTree.cc:120: error: expected constructor, destructor, or type conversion before * token
SubnetTree.cc:135: error: expected constructor, destructor, or type conversion before * token
error: command 'gcc' failed with exit status 1

Does anyone know how to resolve this error?Start Free Trial
[+][-]08.03.2008 at 03:41PM PDT, ID: 22149131

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Python Scripting Language
Tags: python
Sign Up Now!
Solution Provided By: mish33
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628