‘class Xapian::Database’ has no member named ‘close’

Subject: ‘class Xapian::Database’ has no member named ‘close’

Date: Tue, 07 Aug 2012 17:23:11 +0200

To: notmuch@notmuchmail.org

Cc:

From: Michal Nazarewicz


Hi guys,

when I'm trying to build notmuch on Ubuntu Lucid, I'm getting the
following error:

lib/database.cc: In function ‘void notmuch_database_close(notmuch_database_t*)’:
lib/database.cc:767: error: ‘class Xapian::Database’ has no member named ‘close’

I'm solving that by:

diff --git a/lib/database.cc b/lib/database.cc
index 761dc1a..fd78135 100644
--- a/lib/database.cc
+++ b/lib/database.cc
@@ -764,7 +764,7 @@ notmuch_database_close (notmuch_database_t *notmuch)
      * close it.  Thus, we explicitly close it here. */
     if (notmuch->xapian_db != NULL) {
 	try {
-	    notmuch->xapian_db->close();
+	    /* notmuch->xapian_db->close(); */
 	} catch (const Xapian::Error &error) {
 	    /* do nothing */
 	}

which does not seem to break anything.  The Xapian packages installed on
my machine:

$ dpkg -l |grep xapian
ii  apt-xapian-index  0.25ubuntu2      maintenance tools for a Xapian index of Debi
ii  libxapian-dev     1.0.18-1         Development files for Xapian search engine l
ii  libxapian15       1.0.18-1         Search engine library
ii  python-xapian     1.0.17-1ubuntu1  Xapian search engine interface for Python

-- 
Best regards,                                         _     _
.o. | Liege of Serenely Enlightened Majesty of      o' \,=./ `o
..o | Computer Science,  Michał “mina86” Nazarewicz    (o o)
ooo +----<email/xmpp: mpn@google.com>--------------ooO--(_)--Ooo--

Thread: