[Xapian-discuss] xapian-1.0.12 compiled error with debug mode

马明练 hightman at zuaa.zju.edu.cn
Wed May 13 06:12:13 BST 2009


Hello, for some reason, my xapian often have follow errors, I know this means
xapian run out of memory...

--->>
terminate called after throwing an instance of 'std::bad_alloc'
  what():  St9bad_alloc
Abort trap: 6 (core dumped)
<<---

So, I try to re-compile the xapian with debug mode (add --enable-log=yes
--enable-assertions=yes to configure options), but got the folowing error
messages:

How can I fixed it?

<<---
api/omdatabase.cc: In member function `Xapian::TermIterator
Xapian::Database::metadata_keys_begin(const std::string&) const':
api/omdatabase.cc:563: error: conversion from `Xapian::TermIterator' to non-scalar
type `std::basic_string<char, std::char_traits<char>, std::allocator<char> >'
requested
api/omdatabase.cc:563: error: conversion from
`Xapian::Database::metadata_keys_begin(const std::string&)
const::omdebugapicallreturn_t' to non-scalar type `Xapian::TermIterator'
requested
*** Error code 1

...

backends/flint/flint_table.cc: In constructor `FlintTable::FlintTable(std::string,
bool, int, bool)':
backends/flint/flint_table.cc:1566: error: `tablename_' undeclared (first use this
function)
backends/flint/flint_table.cc:1566: error: (Each undeclared identifier is reported
only once for each function it appears in.)

--->>





More information about the Xapian-discuss mailing list