error building against xapian 1.3.4

Matthew Lear matt at bubblegen.co.uk
Fri Apr 21 04:28:53 PDT 2017


Hi. On a new machine that I've been setting up (running Ubuntu 16.04 LTS),
I'm unable to build notmuch from git with HEAD @

* 77c9ec1 -  (HEAD -> master, origin/master, origin/HEAD) test: add known
broken test for indexing html (2017-04-20 06:59:40 -0300) <David Bremner>

The error looks like this:
...
CXX  -g -O2 lib/database.o
CXX  -g -O2 lib/parse-time-vrp.o
CXX  -g -O2 lib/directory.o
CXX  -g -O2 lib/index.o
CXX  -g -O2 lib/message.o
CXX  -g -O2 lib/message-property.o
CXX  -g -O2 lib/query.o
CXX  -g -O2 lib/query-fp.o
CXX  -g -O2 lib/config.o
CXX  -g -O2 lib/regexp-fields.o
lib/regexp-fields.cc: In member function ‘virtual Xapian::Query
RegexpFieldProcessor::operator()(const string&)’:
lib/regexp-fields.cc:159:38: error: ‘class RegexpPostingSource’ has no
member named ‘release’
      return Xapian::Query (postings->release ());
                                      ^
make: *** [lib/regexp-fields.o] Error 1

Even though xapian 1.4 is marked as stable, Ubuntu 16.04 has xapian 1.3.4
installed. I'd rather not start hacking around updating xapian and
dependant packages since the whole point of me having this machine is to
use it as a stable baseline with other colleagues who I work with.

Here's the output from the configure checks:

Sanity checking C compilation environment... OK.
Sanity checking C++ compilation environment... OK.
Reading libnotmuch version from source... OK.
Checking for Xapian development files... Yes (1.3.4).
Checking for Xapian compaction support... Yes.
Checking for Xapian FieldProcessor API... Yes.
Checking for Xapian lock retry support... Yes.
Testing default Xapian backend... chert
Checking for GMime development files... Yes.
Checking for Glib development files (>= 2.22)... Yes.
Checking for zlib (>= 1.2.5.2)... Yes.
Checking for talloc development files... Yes.
Checking for python... Yes (python).
Checking for valgrind development files... No (but that's fine).
Checking for bash-completion (>= 1.90)... Yes.
Checking if emacs is available... Yes.
Checking if doxygen is available... No (so will not install api docs)
Checking for ruby development files... No (skipping ruby bindings)
Checking if sphinx is available and supports nroff output... No (so will
not install man pages).
Checking if desktop-file-install is available... Yes.
Checking which platform we are on... Linux
Checking for /usr/local/lib in ldconfig... Yes
Checking for canonicalize_file_name... Yes.
Checking for getline... Yes.
Checking for strcasestr... Yes.
Checking for strsep... Yes.
Checking for timegm... Yes.
Checking for dirent.d_type... Yes.
Checking for standard version of getpwuid_r... Yes.
Checking for standard version of asctime_r... Yes.
Checking for rpath support... Yes.
Checking for -Wl,--as-needed... Yes.
Checking for -Wl,--no-undefined... Yes.
Checking for available C++ compiler warning flags...
        -Wall -Wextra -Wwrite-strings
Checking for available C compiler warning flags...
        -Wall -Wextra -Wwrite-strings -Wmissing-declarations

All required packages were found. You may now run the following
...

regexp-fields.cc was created in commit:

* 55524bb -  lib: regexp matching in 'subject' and 'from' (2017-03-03
17:46:48 -0400) <David Bremner>

If I revert to the previous commit:

* | 31b8ce4 -  lib: create field processors from prefix table (2017-03-03
07:15:13 -0400) <David Bremner>

I can build ok.

Is anybody still using xapian 1.3.x ? I was really hoping to keep up to
date with notmuch on my Ubuntu machine...

Cheers,
--  Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20170421/f55bbc16/attachment.html>


More information about the notmuch mailing list