[Xapian-discuss] building xapian-bindings 1.0.6 against php 5.2.6

Olly Betts olly at survex.com
Wed May 7 18:18:37 BST 2008

On Wed, May 07, 2008 at 02:40:04AM +0000, aservertech wrote:
> php5/xapian_wrap.cc: In function 'void _wrap_quartz_open__SWIG_0(int, zval*,
> zval**, zval*, int)':
> php5/xapian_wrap.cc:16562: error: no matching function for call to 'open(const
> std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
> php5/xapian_wrap.cc:1063: note: candidates are: Xapian::Database
> Xapian::Quartz::open()
> php5/xapian_wrap.cc:1066: note:                 Xapian::WritableDatabase
> Xapian::Quartz::open(const std::string&, int, int)
> Any ideas? I can provide additional information as needed.

My guess is that you've disabled quartz support by configuring
xapian-core with --disable-backend-quartz.  In this case, the bindings
provide a stub version of the quartz factory functions, but the
prototype for one of them is wrong!

If this is the case, the simplest workaround is just to enable quartz in
xapian-core.  I'll fix the xapian-bindings bug in 1.0.7, but because the
files are generated, generating a patch is fiddly.


More information about the Xapian-discuss mailing list