I've been messing with the TCL bindings. I changed the test code to
use 1.9.2 and I did the --prefix thing.
There is a bug with SWIG 1.3.26. In the function
SWIG_Tcl_PointerTypeFromString() in swigtcl8.swg it doesn't like
string objects that start with an underscore. So if you do
`simplesearch.tcl ~/mydb/ _foo` it segfaults. Upgrading to the CVS
version of SWIG fixes this, but that's probably not necessarily
something for the faint hearted.
regards,
dan carpenter
--- xapian-bindings/python/Makefile.am (revision 6532)
+++ xapian-bindings/python/Makefile.am (working copy)
@@ -17,7 +17,7 @@
SUBDIRS = docs
-pylibdir = @PYTHON_LIB@
+pylibdir = ${prefix}/@PYTHON_LIB@
pylib_SCRIPTS = @PYTHON_MODERN_OR_OLDE@/xapian.py xapian.pyc
--- xapian-bindings/tcl8/docs/examples/simplesearch.tcl (revision 6532)
+++ xapian-bindings/tcl8/docs/examples/simplesearch.tcl (working copy)
@@ -22,7 +22,7 @@
# We need at least Tcl version 8.1
package require Tcl 8.1
# We need xapian 0.9.3 for the query from list ctor wrapper
-package require xapian 0.9.3
+package require xapian 0.9.2
if {[llength $argv] < 2} {
puts "usage: $argv0 <path to database> <search
terms>"