[sword-devel] Python and Perl swig bindings failure to build

Greg Hellings greg.hellings at gmail.com
Sun Oct 23 00:04:15 MST 2011


Peter,

The Python output you include doesn't actually have any errors in it.
Based on the errors I'm seeing at the top of the Perl output, it looks
like the files are not locating the SWIG headers properly or some such
thing. I'm in the midst of tracking down clucene0/2 compatibility in
BibleTime based on a packager's patch. That really only is waiting on
me to finish testing on Fedora 16 Beta with CLucene 2 (already tested
in Ubuntu which has CLucene 0).  I'll put the bindings next on my
list.

--Greg

On Sun, Oct 23, 2011 at 1:56 AM, Peter von Kaehne <refdoc at gmx.net> wrote:
> Both Perl and Python bindings are currently not building. (ubuntu 11.10)
>
> This is the error message I got on Perl bindings build
>
> Sword.cxx: In function ‘void
> _wrap_SWBuf_append__SWIG_5(PerlInterpreter*, CV*)’:
> Sword.cxx:4345:33: error: ‘SWIG_AsVal_wchar_t’ was not declared in this
> scope
> Sword.cxx: In function ‘void _wrap_SWBuf_append(PerlInterpreter*, CV*)’:
> Sword.cxx:4415:40: error: ‘SWIG_AsVal_wchar_t’ was not declared in this
> scope
> Sword.cxx: In function ‘void _wrap_SWKey_Traversable(PerlInterpreter*,
> CV*)’:
> Sword.cxx:17033:40: warning: ‘char sword::SWKey::Traversable()’ is
> deprecated (declared at /usr/local/include/sword/swkey.h:208)
> [-Wdeprecated-declarations]
> Sword.cxx: In function ‘void _wrap_SWKey_Index__SWIG_0(PerlInterpreter*,
> CV*)’:
> Sword.cxx:17183:56: warning: ‘long int sword::SWKey::Index() const’ is
> deprecated (declared at /usr/local/include/sword/swkey.h:220)
> [-Wdeprecated-declarations]
> Sword.cxx: In function ‘void _wrap_SWKey_Index__SWIG_1(PerlInterpreter*,
> CV*)’:
> Sword.cxx:17256:38: warning: ‘long int sword::SWKey::Index(long int)’ is
> deprecated (declared at /usr/local/include/sword/swkey.h:225)
> [-Wdeprecated-declarations]
> make[1]: *** [Sword.o] Error 1
> make[1]: Leaving directory
> `/home/peter/Source/sword/bindings/swig/package/perl'
> make: *** [perl_make] Error 2
> peter at AOA110:~/Source/sword/bindings/swig/package$
>
> And these are the last few lines of "make python_make"'s output
>
> Sword.cxx: At global scope:
> Sword.cxx:86738:14: warning: ‘void*
> _p_p_sword__SWGenBookTo_p_p_sword__SWModule(void*, int*)’ defined but
> not used [-Wunused-function]
> Sword.cxx:86741:14: warning: ‘void*
> _p_p_sword__RawGenBookTo_p_p_sword__SWModule(void*, int*)’ defined but
> not used [-Wunused-function]
> Sword.cxx:86744:14: warning: ‘void*
> _p_p_sword__SWTextTo_p_p_sword__SWModule(void*, int*)’ defined but not
> used [-Wunused-function]
> Sword.cxx:86747:14: warning: ‘void*
> _p_p_sword__zComTo_p_p_sword__SWModule(void*, int*)’ defined but not
> used [-Wunused-function]
> Sword.cxx:86750:14: warning: ‘void*
> _p_p_sword__zTextTo_p_p_sword__SWModule(void*, int*)’ defined but not
> used [-Wunused-function]
> Sword.cxx:86753:14: warning: ‘void*
> _p_p_sword__RawLDTo_p_p_sword__SWModule(void*, int*)’ defined but not
> used [-Wunused-function]
> Sword.cxx:86756:14: warning: ‘void*
> _p_p_sword__RawTextTo_p_p_sword__SWModule(void*, int*)’ defined but not
> used [-Wunused-function]
> Sword.cxx:86759:14: warning: ‘void*
> _p_p_sword__SWComTo_p_p_sword__SWModule(void*, int*)’ defined but not
> used [-Wunused-function]
> Sword.cxx:86762:14: warning: ‘void*
> _p_p_sword__SWLDTo_p_p_sword__SWModule(void*, int*)’ defined but not
> used [-Wunused-function]
> Sword.cxx:86765:14: warning: ‘void*
> _p_p_sword__RawLD4To_p_p_sword__SWModule(void*, int*)’ defined but not
> used [-Wunused-function]
> Sword.cxx:86768:14: warning: ‘void*
> _p_p_sword__RawComTo_p_p_sword__SWModule(void*, int*)’ defined but not
> used [-Wunused-function]
> Sword.cxx:86771:14: warning: ‘void*
> _p_p_sword__zLDTo_p_p_sword__SWModule(void*, int*)’ defined but not used
> [-Wunused-function]
> error: command 'gcc' failed with exit status 1
> make: *** [python_make] Error 1
>
>
> ---------------
>
> If anyone has a solution, this would be grately appreciated. The perl
> bindings are really necessary for much of David's and my module
> building, while the python bindings are of course relevant for various
> frontends
>
> Thanks
>
> Peter
>
>
>
>
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page



More information about the sword-devel mailing list