[Xapian-devel] error building xapian

Alex Deucher alexdeucher at gmail.com
Fri Aug 12 19:12:47 BST 2005


I'm getting the following error when trying to build xapian.  I've
tried versions 0.9.1 and 0.9.2, same error.  It's a x86 debian box,
gcc 4.0.1.  It builds fine on my gentoo amd64 box (gcc 3.4.3).

Any ideas?

Thanks,

Alex

make[3]: Leaving directory `/home/mcam/xapian-core-0.9.1/backends/flint'
Making all in inmemory
make[3]: Entering directory `/home/mcam/xapian-core-0.9.1/backends/inmemory'
if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
-I. -I. -I../.. -I../../common -I../../include   -Wall -W
-Wredundant-decls -Wundef -Wshadow -Wpointer-arith -Wcast-qual
-Wcast-align -Wno-multichar -Wno-long-long -fno-gnu-keywords -g -O2
-MT inmemory_database.lo -MD -MP -MF ".deps/inmemory_database.Tpo" -c
-o inmemory_database.lo inmemory_database.cc; \
then mv -f ".deps/inmemory_database.Tpo"
".deps/inmemory_database.Plo"; else rm -f
".deps/inmemory_database.Tpo"; exit 1; fi
mkdir .libs
 g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../common -I../../include
-Wall -W -Wredundant-decls -Wundef -Wshadow -Wpointer-arith
-Wcast-qual -Wcast-align -Wno-multichar -Wno-long-long
-fno-gnu-keywords -g -O2 -MT inmemory_database.lo -MD -MP -MF
.deps/inmemory_database.Tpo -c inmemory_database.cc  -fPIC -DPIC -o
.libs/inmemory_database.o
inmemory_database.h:139: error: ISO C++ forbids declaration of 'type
name' with no type
inmemory_database.h:139: error: missing '>' to terminate the template
argument list
inmemory_database.h:139: error: template argument 1 is invalid
inmemory_database.h:139: error: expected ';' before '>' token
inmemory_database.h:141: error: ISO C++ forbids declaration of 'type
name' with no type
inmemory_database.h:141: error: missing '>' to terminate the template
argument list
inmemory_database.h:141: error: template argument 1 is invalid
inmemory_database.h:141: error: expected ',' or '...' before '>' token
inmemory_database.h:171: error: ISO C++ forbids declaration of 'type
name' with no type
inmemory_database.h:171: error: missing '>' to terminate the template
argument list
inmemory_database.h:171: error: template argument 1 is invalid
inmemory_database.h:171: error: expected ';' before '>' token
inmemory_database.h:175: error: ISO C++ forbids declaration of 'type
name' with no type
inmemory_database.h:175: error: missing '>' to terminate the template
argument list
inmemory_database.h:175: error: template argument 1 is invalid
inmemory_database.h:175: error: expected ',' or '...' before '>' token
inmemory_database.cc:79: error: prototype for
'InMemoryPostList::InMemoryPostList(Xapian::Internal::RefCntPtr<const
InMemoryDatabase>, const InMemoryTerm&)' does not match any in class
'InMemoryPostList'
inmemory_database.h:126: error: candidates are:
InMemoryPostList::InMemoryPostList(const InMemoryPostList&)
inmemory_database.h:142: error:                
InMemoryPostList::InMemoryPostList(int)
inmemory_database.cc: In constructor
'InMemoryPostList::InMemoryPostList(Xapian::Internal::RefCntPtr<const
InMemoryDatabase>, const InMemoryTerm&)':
inmemory_database.cc:84: error: class 'InMemoryPostList' does not have
any field named 'db'
inmemory_database.cc: In member function 'virtual Xapian::doclength
InMemoryPostList::get_doclength() const':
inmemory_database.cc:153: error: 'db' was not declared in this scope
inmemory_database.cc: At global scope:
inmemory_database.cc:182: error: prototype for
'InMemoryTermList::InMemoryTermList(Xapian::Internal::RefCntPtr<const
InMemoryDatabase>, Xapian::docid, const InMemoryDoc&,
Xapian::doclength)' does not match any in class 'InMemoryTermList'
inmemory_database.h:163: error: candidates are:
InMemoryTermList::InMemoryTermList(const InMemoryTermList&)
inmemory_database.h:177: error:                
InMemoryTermList::InMemoryTermList(int)
inmemory_database.cc: In constructor
'InMemoryTermList::InMemoryTermList(Xapian::Internal::RefCntPtr<const
InMemoryDatabase>, Xapian::docid, const InMemoryDoc&,
Xapian::doclength)':
inmemory_database.cc:184: error: class 'InMemoryTermList' does not
have any field named 'db'
inmemory_database.cc: In member function 'virtual Xapian::doccount
InMemoryTermList::get_termfreq() const':
inmemory_database.cc:205: error: 'db' was not declared in this scope
inmemory_database.cc: In member function 'virtual OmExpandBits
InMemoryTermList::get_weighting() const':
inmemory_database.cc:223: error: 'db' was not declared in this scope
inmemory_database.cc: In member function 'virtual
Xapian::PositionIterator InMemoryTermList::positionlist_begin()
const':
inmemory_database.cc:256: error: 'db' was not declared in this scope
inmemory_database.cc: In member function 'virtual LeafPostList*
InMemoryDatabase::do_open_post_list(const std::string&) const':
inmemory_database.cc:283: error: no matching function for call to
'InMemoryPostList::InMemoryPostList(Xapian::Internal::RefCntPtr<const
InMemoryDatabase>, const InMemoryTerm&)'
inmemory_database.h:142: note: candidates are:
InMemoryPostList::InMemoryPostList(int)
inmemory_database.h:126: note:                
InMemoryPostList::InMemoryPostList(const InMemoryPostList&)
inmemory_database.cc: In member function 'virtual LeafTermList*
InMemoryDatabase::open_term_list(Xapian::docid) const':
inmemory_database.cc:349: error: no matching function for call to
'InMemoryTermList::InMemoryTermList(Xapian::Internal::RefCntPtr<const
InMemoryDatabase>, Xapian::docid&, const InMemoryDoc&,
Xapian::doclength)'
inmemory_database.h:177: note: candidates are:
InMemoryTermList::InMemoryTermList(int)
inmemory_database.h:163: note:                
InMemoryTermList::InMemoryTermList(const InMemoryTermList&)
make[3]: *** [inmemory_database.lo] Error 1
make[3]: Leaving directory `/home/mcam/xapian-core-0.9.1/backends/inmemory'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/mcam/xapian-core-0.9.1/backends'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mcam/xapian-core-0.9.1'
make: *** [all] Error 2




More information about the Xapian-devel mailing list