[Xapian-discuss] problems installing the perl modules

Amias Channer something at amias.org.uk
Mon Apr 6 17:08:48 BST 2009


Hello Xapianistas ,

I am having troubles installing Search::Xapian from CPAN on
a debian 3.1 box with the libs from http://www.xapian.org/debian.

I ran the following - 

perl -MCPAN -e'install Search::Xapian'

The install chugs along hapily until the following line..

/usr/bin/perl /usr/share/perl/5.8/ExtUtils/xsubpp  -C++
-typemap /usr/share/perl/5.8/ExtUtils/typemap -typemap perlobject.map
-typemap typemap  Xapian.xs > Xapian.xsc && mv Xapian.xsc Xapian.c
g++ -c   -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"1.0.11.0\" -DXS_VERSION=
\"1.0.11.0\" -fPIC "-I/usr/lib/perl/5.8/CORE"   Xapian.c
Xapian.c: In function `void 
   XS_Search__Xapian__QueryParser_parse_query(PerlInterpreter*, CV*)':
Xapian.c:3538: error: `FLAG_DEFAULT' is not a member of type `
   Xapian::QueryParser'
XS/Query.xs: In function `void 
   XS_Search__Xapian__Query_new3range(PerlInterpreter*, CV*)':
XS/Query.xs:36: error: invalid conversion from `valueno' to `const
char*'
XS/Query.xs:36: error:   initializing argument 1 of
`std::basic_string<_CharT, 
   _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with
_CharT = 
   char, _Traits = std::char_traits<char>, _Alloc =
std::allocator<char>]'
Xapian.xs: In function `void boot_Search__Xapian(PerlInterpreter*,
CV*)':
Xapian.xs:178: error: `OP_VALUE_GE' is not a member of type
`Xapian::Query'
Xapian.xs:179: error: `OP_VALUE_LE' is not a member of type
`Xapian::Query'
Xapian.xs:201: error: `FLAG_DEFAULT' is not a member of type `
   Xapian::QueryParser'
make: *** [Xapian.o] Error 1
  /usr/bin/make  -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible

is the version on CPAN out of sync with your packages or have i confused
it somehow ? any help would be greatly appreciated.

To me it would make sense to have an apt candidate for the Perl module 
in your repo and i'd be happy to have a go at maintaining that build if
given some help to get started.

Toodle-pip
Amias




More information about the Xapian-discuss mailing list