[
https://issues.apache.org/jira/browse/UIMA-428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12501673
]
Andrew Borthwick commented on UIMA-428:
---------------------------------------
Eddie,
Thanks for getting back to me on this. I'm using swig 1.3.31.
Note that I am also having difficulty building Perlator, although this looks
like a different issue. I am using Perl 5.8.8. There the output is as
follows:
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 -fPIC -g `perl -MExtUtils::Embed -e
ccopts` -DSWIG_GLOBAL -DSWIG1_3_31 -I.. -Wno-deprecated -c Perltator.cpp
swig -o uima_wrap.cxx -outdir . -c++ -perl ../uima.i
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 -fPIC -g `perl -MExtUtils::Embed -e
ccopts` -DSWIG_GLOBAL -DSWIG1_3_31 -I.. -Wno-deprecated -c uima_wrap.cxx
uima_wrap.cxx: In function 'void boot_perltator(PerlInterpreter*, CV*)':
uima_wrap.cxx:5207: warning: unused variable 'items'
g++ Perltator.o uima_wrap.o \
-shared -g `perl -MExtUtils::Embed -e ldopts`
-L/home/andrew/uima/uimacpp/lib -luima \
-o perltator.so
/usr/bin/ld: cannot find -lperl
collect2: ld returned 1 exit status
make: *** [perltator.so] Error 1
------------------------
Thanks, Andrew
> 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.