Compling Problem
Posted: Thu Jun 28, 2007 5:04 pm
Hi, I've been trying to compile the lastest version of nrn with the --with-nrnpython option. I've used both the lastest code as well as those of the standard distribution, and I also have the lastest version of python. ./configure runs fine, but when I run make, I always get the same following error. It seems like a syntax error in the code. How do I get around this? I'm trying to compile this on BU Linux, which is based on fedora core. What are the linux distributions in which the compilation works?
nrnpy_hoc.cpp: In function 'PyObject* PyObj_FromNrnObj(Object*)':
nrnpy_hoc.cpp:1013: error: 'Vect' was not declared in this scope
nrnpy_hoc.cpp:1013: error: 'v' was not declared in this scope
nrnpy_hoc.cpp:1013: error: expected primary-expression before ')' token
nrnpy_hoc.cpp:1013: error: expected `;' before 'obj'
nrnpy_hoc.cpp: In function 'int hocobj_tonumpy(PyObject*, PyObject*)':
nrnpy_hoc.cpp:1041: warning: converting to non-pointer type 'int' from NULL
nrnpy_hoc.cpp:1047: error: 'struct _object' has no member named 'type_'
nrnpy_hoc.cpp:1047: error: 'struct _object' has no member named 'type_'
nrnpy_hoc.cpp:1049: error: 'struct _object' has no member named 'sym_'
nrnpy_hoc.cpp:1053: warning: converting to non-pointer type 'int' from NULL
nrnpy_hoc.cpp:1062: error: 'hoc_total_array' was not declared in this scope
nrnpy_hoc.cpp:1080: warning: converting to non-pointer type 'int' from NULL
nrnpy_hoc.cpp:1091: error: 'pObj' was not declared in this scope
nrnpy_hoc.cpp:1101: error: 'pObj' was not declared in this scope
nrnpy_hoc.cpp:1111: error: 'hoc_total_array' was not declared in this scope
nrnpy_hoc.cpp:1130: warning: converting to non-pointer type 'int' from NULL
nrnpy_hoc.cpp:1141: error: 'pObj' was not declared in this scope
nrnpy_hoc.cpp:1147: warning: converting to non-pointer type 'int' from NULL
nrnpy_hoc.cpp:1156: error: 'pObj' was not declared in this scope
nrnpy_hoc.cpp:1163: warning: converting to non-pointer type 'int' from NULL
nrnpy_hoc.cpp:1174: error: invalid conversion from 'int (*)(PyObject*, PyObject*)' to 'PyObject* (*)(PyObject*, PyObject*)'
nrnpy_hoc.cpp:1234: error: a function-definition is not allowed here before '{' token
nrnpy_hoc.cpp: At global scope:
nrnpy_hoc.cpp:1263: error: expected `}' at end of input
make[4]: *** [nrnpy_hoc.lo] Error 1
make[4]: Leaving directory `/home/paladin/neuron/nrn/src/nrnpython'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/paladin/neuron/nrn/src/nrnpython'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/paladin/neuron/nrn/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/paladin/neuron/nrn'
make: *** [all] Error 2
nrnpy_hoc.cpp: In function 'PyObject* PyObj_FromNrnObj(Object*)':
nrnpy_hoc.cpp:1013: error: 'Vect' was not declared in this scope
nrnpy_hoc.cpp:1013: error: 'v' was not declared in this scope
nrnpy_hoc.cpp:1013: error: expected primary-expression before ')' token
nrnpy_hoc.cpp:1013: error: expected `;' before 'obj'
nrnpy_hoc.cpp: In function 'int hocobj_tonumpy(PyObject*, PyObject*)':
nrnpy_hoc.cpp:1041: warning: converting to non-pointer type 'int' from NULL
nrnpy_hoc.cpp:1047: error: 'struct _object' has no member named 'type_'
nrnpy_hoc.cpp:1047: error: 'struct _object' has no member named 'type_'
nrnpy_hoc.cpp:1049: error: 'struct _object' has no member named 'sym_'
nrnpy_hoc.cpp:1053: warning: converting to non-pointer type 'int' from NULL
nrnpy_hoc.cpp:1062: error: 'hoc_total_array' was not declared in this scope
nrnpy_hoc.cpp:1080: warning: converting to non-pointer type 'int' from NULL
nrnpy_hoc.cpp:1091: error: 'pObj' was not declared in this scope
nrnpy_hoc.cpp:1101: error: 'pObj' was not declared in this scope
nrnpy_hoc.cpp:1111: error: 'hoc_total_array' was not declared in this scope
nrnpy_hoc.cpp:1130: warning: converting to non-pointer type 'int' from NULL
nrnpy_hoc.cpp:1141: error: 'pObj' was not declared in this scope
nrnpy_hoc.cpp:1147: warning: converting to non-pointer type 'int' from NULL
nrnpy_hoc.cpp:1156: error: 'pObj' was not declared in this scope
nrnpy_hoc.cpp:1163: warning: converting to non-pointer type 'int' from NULL
nrnpy_hoc.cpp:1174: error: invalid conversion from 'int (*)(PyObject*, PyObject*)' to 'PyObject* (*)(PyObject*, PyObject*)'
nrnpy_hoc.cpp:1234: error: a function-definition is not allowed here before '{' token
nrnpy_hoc.cpp: At global scope:
nrnpy_hoc.cpp:1263: error: expected `}' at end of input
make[4]: *** [nrnpy_hoc.lo] Error 1
make[4]: Leaving directory `/home/paladin/neuron/nrn/src/nrnpython'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/paladin/neuron/nrn/src/nrnpython'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/paladin/neuron/nrn/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/paladin/neuron/nrn'
make: *** [all] Error 2