The Xapian python bindings as generated by swig 1.3.29
fail to compile against the headers for python 2.5:
modern/xapian_wrap.cc: In function 'int
SWIG_Python_ConvertFunctionPtr(PyObject*, void**,
swig_type_info*)':
modern/xapian_wrap.cc:2052: error: invalid conversion
from 'const char*' to 'char*'
modern/xapian_wrap.cc: In function 'void
SWIG_Python_FixMethods(PyMethodDef*, swig_const_info*,
swig_type_info**, swig_type_info**)':
modern/xapian_wrap.cc:22391: error: invalid conversion
from 'const char*' to 'char*'
This appears to be due to python 2.5 changing some char
* members to const char *. The problem can be fixed
using the attached patch, which changes three instances
of "char *" to "const char *" in the generated code.
There may be other such changes needed for other
projects, but this change to swig 1.3.29 allows the
Xapian python bindings to compile.
Marcelo Matus
python
None
Public
|
Date: 2008-02-04 09:02
|
|
Date: 2008-02-01 20:36
|
|
Date: 2008-02-01 17:05
|
|
Date: 2008-02-01 16:33
|
|
Date: 2008-02-01 14:58
|
|
Date: 2006-09-05 15:48 Logged In: YES |
| Filename | Description | Download |
|---|---|---|
| swig_patch | Patch to swig 1.3.29 | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2006-09-05 15:48 | olly |
| resolution_id | None | 2006-09-05 15:48 | olly |
| close_date | - | 2006-09-05 15:48 | olly |
| File Added | 192067: swig_patch | 2006-09-05 09:59 | richardb |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use