[Xapian-discuss] compile problem

Olly Betts olly at survex.com
Tue Oct 17 01:07:20 BST 2006


On Mon, Oct 16, 2006 at 04:00:08PM -0400, mlewis at xelent.net wrote:
> backendmanager.cc:481: error: conversion from 'Xapian::Database' to non-scalar
> type 'Xapian::WritableDatabase' requested

It's a problem with some valgrind-specific code (the testsuite will run
itself under valgrind if a suitable version is installed).  The attached
(untested) patch should fix it.

Cheers,
    Olly
-------------- next part --------------
Index: testsuite/backendmanager.cc
===================================================================
--- testsuite/backendmanager.cc	(revision 7346)
+++ testsuite/backendmanager.cc	(working copy)
@@ -478,7 +478,7 @@
 #endif
 #ifdef HAVE_VALGRIND
     if (RUNNING_ON_VALGRIND) {
-        return Xapian::Remote::open("./runtest ../bin/xapian-progsrv", args);
+        return Xapian::Remote::open_writable("./runtest ../bin/xapian-progsrv", args);
     }
 #endif
     return Xapian::Remote::open_writable("../bin/xapian-progsrv", args);


More information about the Xapian-discuss mailing list