swig_type_info problem in Pythonnator
-------------------------------------

                 Key: UIMA-428
                 URL: https://issues.apache.org/jira/browse/UIMA-428
             Project: UIMA
          Issue Type: Bug
          Components: C++ Framework
         Environment: I encountered this with g++ 4.1.2 and 3.4.6 and python 
2.4.4 and python 2.5.1.  Both versions of Python were built with gcc 4.1.2, if 
that matters.
            Reporter: Andrew Borthwick


I get the following error when I try to make pythonnator:

g++ -Wall -x c++ -DDEBUG -g -fno-inline -fno-default-inline -fPIC 
-I/home/andrew/uima/uimacpp/include -I/home/andrew/uima/uimacpp/include/apr-1 
-I/home/andrew/uima/uimacpp/include/apr-0 -g -I/usr/include/python2.4 
-DSWIG_GLOBAL -DSWIG1_3_31 -DPYTHONLIBRARYNAME=\"libpython2.4.so\" -DPYTHON2_4 
-Wno-deprecated -c pythonnator.cpp
pythonnator.cpp:73: error: ISO C++ forbids declaration of `swig_type_info' with 
no type
pythonnator.cpp:73: error: expected `;' before '*' token
pythonnator.cpp: In member function `virtual uima::TyErrorId 
Pythonnator::initialize(uima::AnnotatorContext&)':
pythonnator.cpp:88: error: `swig_type_info' was not declared in this scope
pythonnator.cpp:88: error: `ac_type' was not declared in this scope
pythonnator.cpp:192: error: `swig_module_info' was not declared in this scope
pythonnator.cpp:192: error: `module' was not declared in this scope
pythonnator.cpp:192: error: `SWIG_Python_GetModule' was not declared in this 
scope
pythonnator.cpp:199: error: `ts_type' was not declared in this scope
pythonnator.cpp:199: error: `SWIG_TypeQueryModule' was not declared in this 
scope
pythonnator.cpp:211: error: `cas_type' was not declared in this scope
pythonnator.cpp:223: error: `rs_type' was not declared in this scope
pythonnator.cpp:235: error: `SWIG_Python_NewPointerObj' was not declared in 
this scope
pythonnator.cpp:235: warning: unused variable 'SWIG_Python_NewPointerObj'
pythonnator.cpp:88: warning: unused variable 'swig_type_info'
pythonnator.cpp:192: warning: unused variable 'swig_module_info'
pythonnator.cpp:192: warning: unused variable 'SWIG_Python_GetModule'
pythonnator.cpp: In member function `virtual uima::TyErrorId 
Pythonnator::typeSystemInit(const uima::TypeSystem&)':
pythonnator.cpp:289: error: `ts_type' was not declared in this scope
pythonnator.cpp:289: error: `SWIG_Python_NewPointerObj' was not declared in 
this scope
pythonnator.cpp:289: warning: unused variable 'ts_type'
pythonnator.cpp:289: warning: unused variable 'SWIG_Python_NewPointerObj'
pythonnator.cpp: In member function `virtual uima::TyErrorId 
Pythonnator::process(uima::CAS&, const uima::ResultSpecification&)':
pythonnator.cpp:362: error: `cas_type' was not declared in this scope
pythonnator.cpp:362: error: `SWIG_Python_NewPointerObj' was not declared in 
this scope
pythonnator.cpp:372: error: `rs_type' was not declared in this scope
pythonnator.cpp:362: warning: unused variable 'cas_type'
pythonnator.cpp:372: warning: unused variable 'rs_type'
make: *** [pythonnator.o] Error 1


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to