Hi, I'm trying to build xapian with python bindings version 0.9.7 (for compatibility with a customer's existing databases which use the old term scheme), and when I try to make the bindings, I get - modern/xapian_wrap.cc: In function 'PyObject* _wrap_new_Query__SWIG_6 (PyObject*, int, PyObject**)': modern/xapian_wrap.cc:20033: error: invalid conversion from 'int*' to 'Py_ssize_t*' modern/xapian_wrap.cc:20033: error: initializing argument 3 of 'int PyString_AsStringAndSize(PyObject*, char**, Py_ssize_t*)' modern/xapian_wrap.cc: In function 'PyObject* _wrap_new_Query__SWIG_7 (PyObject*, int, PyObject**)': modern/xapian_wrap.cc:20106: error: invalid conversion from 'int*' to 'Py_ssize_t*' modern/xapian_wrap.cc:20106: error: initializing argument 3 of 'int PyString_AsStringAndSize(PyObject*, char**, Py_ssize_t*)' I assume I need to rebuild the wrappers, but can someone tell me how? This is on an Intel Mac, OS X 10.4.10. cheers, Tom
On Tue, Aug 21, 2007 at 04:53:48PM +0100, Tom Mortimer wrote:> I assume I need to rebuild the wrappers, but can someone tell me > how? This is on an Intel Mac, OS X 10.4.10.My spider sense is tingling. ISTR unexpected type weirdness on 10.4 last time I played with it. Can you find what that Py type is typedef to? J -- /--------------------------------------------------------------------------\ James Aylett xapian.org james@tartarus.org uncertaintydivision.org
On 2007-08-21 17:00:40 +0100, James Aylett wrote:> On Tue, Aug 21, 2007 at 04:53:48PM +0100, Tom Mortimer wrote: > > > I assume I need to rebuild the wrappers, but can someone tell me > > how? This is on an Intel Mac, OS X 10.4.10. > > My spider sense is tingling. ISTR unexpected type weirdness on 10.4 > last time I played with it. > > Can you find what that Py type is typedef to?object.h:typedef Py_ssize_t (*lenfunc)(PyObject *) -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org