unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* ‘class Xapian::Database’ has no member named ‘close’
@ 2012-08-07 15:23 Michal Nazarewicz
  2012-08-14  9:17 ` David Bremner
  0 siblings, 1 reply; 5+ messages in thread
From: Michal Nazarewicz @ 2012-08-07 15:23 UTC (permalink / raw)
  To: notmuch

[-- Attachment #1: Type: text/plain, Size: 1453 bytes --]

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--

[-- Attachment #2.1: Type: text/plain, Size: 0 bytes --]



[-- Attachment #2.2: Type: application/pgp-signature, Size: 835 bytes --]

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-08-14 17:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-07 15:23 ‘class Xapian::Database’ has no member named ‘close’ Michal Nazarewicz
2012-08-14  9:17 ` David Bremner
2012-08-14 12:26   ` Michal Nazarewicz
2012-08-14 12:57     ` Jani Nikula
2012-08-14 17:22       ` Justus Winter

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).