aptitude fails to build from source in maverick

Bug #600162 reported by Matthias Klose
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
aptitude (Ubuntu)
Fix Released
High
Michael Vogt
Maverick
Fix Released
High
Michael Vogt

Bug Description

0.6.1.5-3ubuntu1

if g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../.. -I. -I../../../.. -I../../../../src -I/usr/include -DHELPDIR=\"/usr/share/aptitude\" -DPKGDATADIR=\"/usr/share/aptitude\" -g -O2 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/lib/cwidget -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/tagcoll-2.0.11 -pthread -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/include/giomm-2.4 -I/usr/lib/giomm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/lib/pangomm-1.4/include -I/usr/include/gtk-2.0 -I/usr/include/gtk-unix-print-2.0 -I/usr/include/atkmm-1.6 -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/cairomm-1.0 -I/usr/lib/cairomm-1.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/gio-unix-2.0/ -pthread -I/usr/include/libglademm-2.4 -I/usr/lib/libglademm-2.4/include -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/include/libglade-2.0 -I/usr/include/giomm-2.4 -I/usr/lib/giomm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/lib/pangomm-1.4/include -I/usr/include/gtk-2.0 -I/usr/include/gtk-unix-print-2.0 -I/usr/include/atkmm-1.6 -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/cairomm-1.0 -I/usr/lib/cairomm-1.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/libxml2 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gtk-2.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -D_REENTRANT -fno-strict-aliasing -Wall -MT match.o -MD -MP -MF ".deps/match.Tpo" -c -o match.o match.cc; \
 then mv -f ".deps/match.Tpo" ".deps/match.Po"; else rm -f ".deps/match.Tpo"; exit 1; fi
match.cc:33:39: error: ept/textsearch/textsearch.h: No such file or directory
In file included from match.cc:23:
../../../../src/generic/apt/tags.h:236: error: 'Tag' is not a member of 'ept::debtags'
../../../../src/generic/apt/tags.h:236: error: 'Tag' is not a member of 'ept::debtags'
../../../../src/generic/apt/tags.h:236: error: template argument 1 is invalid
../../../../src/generic/apt/tags.h:236: error: template argument 2 is invalid
../../../../src/generic/apt/tags.h:236: error: template argument 3 is invalid
../../../../src/generic/apt/tags.h:236: error: invalid type in declaration before ';' token
match.cc:149: error: 'textsearch' is not a member of 'ept'
match.cc:149: error: 'textsearch' is not a member of 'ept'
match.cc:149: error: template argument 1 is invalid
match.cc: In member function 'bool aptitude::matching::<unnamed>::xapian_info::maybe_contains_package(const pkgCache::PkgIterator&, const int&) const':
match.cc:156: error: base operand of '->' is not a pointer
match.cc: At global scope:
match.cc:278: error: 'textsearch' is not a member of 'ept'
match.cc:278: error: 'textsearch' is not a member of 'ept'
match.cc:278: error: template argument 1 is invalid
match.cc:307: error: 'textsearch' is not a member of 'ept'
match.cc:307: error: 'textsearch' is not a member of 'ept'
match.cc:307: error: template argument 1 is invalid
match.cc: In constructor 'aptitude::matching::search_cache::implementation::implementation()':
match.cc:299: error: request for member 'reset' in '((aptitude::matching::search_cache::implementation*)this)->aptitude::matching::search_cache::implementation::db', which is of non-class type 'int'
match.cc:299: error: expected type-specifier
match.cc:299: error: expected ')'
match.cc:303: error: request for member 'reset' in '((aptitude::matching::search_cache::implementation*)this)->aptitude::matching::search_cache::implementation::db', which is of non-class type 'int'
match.cc: In member function 'bool aptitude::matching::search_cache::implementation::term_prefix_matches(const pkgCache::PkgIterator&, const std::string&, bool)':
match.cc:346: error: base operand of '->' is not a pointer
match.cc:347: error: variable 'const Xapian::Database xapian_db' has initializer but incomplete type
match.cc:347: error: base operand of '->' is not a pointer
match.cc:374: error: 'Stem' is not a member of 'Xapian'
match.cc:385: error: variable 'Xapian::PostingIterator postingsBegin' has initializer but incomplete type
match.cc:386: error: variable 'Xapian::PostingIterator postingsEnd' has initializer but incomplete type
match.cc:388: error: variable 'Xapian::PostingIterator it' has initializer but incomplete type
match.cc: In member function 'bool aptitude::matching::search_cache::implementation::term_matches(const pkgCache::PkgIterator&, const std::string&, bool)':
match.cc:413: error: base operand of '->' is not a pointer
match.cc:432: error: 'Stem' is not a member of 'Xapian'
match.cc:440: error: variable 'Xapian::Database xapian_db' has initializer but incomplete type
match.cc:440: error: base operand of '->' is not a pointer
match.cc:443: error: variable 'Xapian::PostingIterator postingsBegin' has initializer but incomplete type
match.cc:444: error: variable 'Xapian::PostingIterator postingsEnd' has initializer but incomplete type
match.cc:446: error: variable 'Xapian::PostingIterator it' has initializer but incomplete type
match.cc: In member function 'const aptitude::matching::<unnamed>::xapian_info& aptitude::matching::search_cache::implementation::get_toplevel_xapian_info(const cwidget::util::ref_ptr<aptitude::matching::pattern>&, bool)':
match.cc:478: error: request for member 'get' in '((aptitude::matching::search_cache::implementation*)this)->aptitude::matching::search_cache::implementation::db', which is of non-class type 'int'
match.cc:479: error: base operand of '->' is not a pointer
match.cc: In function 'Xapian::Query aptitude::matching::<unnamed>::stem_term(const std::string&)':
match.cc:499: error: return type 'struct Xapian::Query' is incomplete
match.cc:501: error: incomplete type 'Xapian::Query' used in nested name specifier
match.cc:502: error: invalid use of incomplete type 'struct Xapian::Query'
//usr/include/xapian/enquire.h:43: error: forward declaration of 'struct Xapian::Query'
match.cc:503: error: 'Stem' is not a member of 'Xapian'
match.cc:503: error: invalid use of incomplete type 'struct Xapian::Query'
//usr/include/xapian/enquire.h:43: error: forward declaration of 'struct Xapian::Query'
match.cc: In function 'cwidget::util::ref_ptr<aptitude::matching::match> aptitude::matching::<unnamed>::evaluate_atomic(const cwidget::util::ref_ptr<aptitude::matching::pattern>&, const aptitude::matching::matchable&, aptitude::matching::<unnamed>::stack&, const cwidget::util::ref_ptr<aptitude::matching::search_cache::implementation>&, aptitudeDepCache&, pkgRecords&, bool)':
match.cc:1376: error: 'Tag' in namespace 'ept::debtags' does not name a type
match.cc:1381: error: 'tag' was not declared in this scope
match.cc:1381: error: template argument 1 is invalid
match.cc:1381: error: template argument 2 is invalid
match.cc:1381: error: template argument 3 is invalid
match.cc:1381: error: invalid type in declaration before '(' token
match.cc:1382: error: 'tag' cannot appear in a constant-expression
match.cc:1382: error: template argument 1 is invalid
match.cc:1382: error: template argument 2 is invalid
match.cc:1382: error: template argument 3 is invalid
match.cc:1382: error: invalid type in declaration before '(' token
match.cc:1390: error: 'tag' cannot appear in a constant-expression
match.cc:1390: error: template argument 1 is invalid
match.cc:1390: error: template argument 2 is invalid
match.cc:1390: error: template argument 3 is invalid
match.cc:1390: error: expected initializer before 'i'
match.cc:1390: error: 'i' was not declared in this scope
match.cc:1390: error: request for member 'end' in '*(const int*)tags', which is of non-class type 'const int'
match.cc: In function 'Xapian::Query aptitude::matching::<unnamed>::build_xapian_query(const cwidget::util::ref_ptr<aptitude::matching::pattern>&, const Xapian::Database&)':
match.cc:2413: error: return type 'struct Xapian::Query' is incomplete
match.cc:2432: error: aggregate 'Xapian::Query and_not_tail' has incomplete type and cannot be defined
match.cc:2450: error: variable 'Xapian::Query q' has initializer but incomplete type
match.cc:2461: error: incomplete type 'Xapian::Query' used in nested name specifier
match.cc:2463: error: invalid use of incomplete type 'struct Xapian::Query'
//usr/include/xapian/enquire.h:43: error: forward declaration of 'struct Xapian::Query'
match.cc:2468: error: aggregate 'Xapian::Query and_maybe_tail' has incomplete type and cannot be defined
match.cc:2483: error: variable 'Xapian::Query q' has initializer but incomplete type
match.cc:2489: error: incomplete type 'Xapian::Query' used in nested name specifier
match.cc:2491: error: invalid use of incomplete type 'struct Xapian::Query'
//usr/include/xapian/enquire.h:43: error: forward declaration of 'struct Xapian::Query'
match.cc:2495: error: aggregate 'Xapian::Query and_tail' has incomplete type and cannot be defined
match.cc:2503: error: variable 'Xapian::Query q' has initializer but incomplete type
match.cc:2511: error: incomplete type 'Xapian::Query' used in nested name specifier
match.cc:2513: error: invalid use of incomplete type 'struct Xapian::Query'
//usr/include/xapian/enquire.h:43: error: forward declaration of 'struct Xapian::Query'
match.cc:2540: error: incomplete type 'Xapian::Query' used in nested name specifier
match.cc:2542: error: invalid use of incomplete type 'struct Xapian::Query'
//usr/include/xapian/enquire.h:43: error: forward declaration of 'struct Xapian::Query'
match.cc:2544: error: incomplete type 'Xapian::Query' used in nested name specifier
match.cc:2546: error: invalid use of incomplete type 'struct Xapian::Query'
//usr/include/xapian/enquire.h:43: error: forward declaration of 'struct Xapian::Query'
match.cc:2548: error: incomplete type 'Xapian::Query' used in nested name specifier
match.cc:2549: error: incomplete type 'Xapian::Query' used in nested name specifier
match.cc:2551: error: invalid use of incomplete type 'struct Xapian::Query'
//usr/include/xapian/enquire.h:43: error: forward declaration of 'struct Xapian::Query'
match.cc:2552: error: invalid use of incomplete type 'struct Xapian::Query'
//usr/include/xapian/enquire.h:43: error: forward declaration of 'struct Xapian::Query'
match.cc:2576: error: invalid use of incomplete type 'struct Xapian::Query'
//usr/include/xapian/enquire.h:43: error: forward declaration of 'struct Xapian::Query'
match.cc:2583: error: aggregate 'Xapian::Query tail' has incomplete type and cannot be defined
match.cc:2590: error: variable 'Xapian::Query q' has initializer but incomplete type
match.cc:2598: error: incomplete type 'Xapian::Query' used in nested name specifier
match.cc:2600: error: invalid use of incomplete type 'struct Xapian::Query'
//usr/include/xapian/enquire.h:43: error: forward declaration of 'struct Xapian::Query'
match.cc:2613: error: invalid use of incomplete type 'struct Xapian::Query'
//usr/include/xapian/enquire.h:43: error: forward declaration of 'struct Xapian::Query'
match.cc:2625: error: 'Stem' is not a member of 'Xapian'
match.cc:2625: error: expected ';' before 'stemmer'
match.cc:2628: error: invalid use of incomplete type 'const struct Xapian::Database'
//usr/include/xapian/positioniterator.h:36: error: forward declaration of 'const struct Xapian::Database'
match.cc:2629: error: invalid use of incomplete type 'const struct Xapian::Database'
//usr/include/xapian/positioniterator.h:36: error: forward declaration of 'const struct Xapian::Database'
match.cc:2633: error: invalid use of incomplete type 'struct Xapian::Query'
//usr/include/xapian/enquire.h:43: error: forward declaration of 'struct Xapian::Query'
match.cc:2634: error: 'stemmer' was not declared in this scope
match.cc:2634: error: invalid use of incomplete type 'struct Xapian::Query'
//usr/include/xapian/enquire.h:43: error: forward declaration of 'struct Xapian::Query'
match.cc:2637: error: incomplete type 'Xapian::Query' used in nested name specifier
match.cc:2639: error: invalid use of incomplete type 'struct Xapian::Query'
//usr/include/xapian/enquire.h:43: error: forward declaration of 'struct Xapian::Query'
match.cc:2678: error: invalid use of incomplete type 'struct Xapian::Query'
//usr/include/xapian/enquire.h:43: error: forward declaration of 'struct Xapian::Query'
match.cc: In member function 'void aptitude::matching::<unnamed>::xapian_info::setup(const Xapian::Database&, const cwidget::util::ref_ptr<aptitude::matching::pattern>&, bool)':
match.cc:2765: error: variable 'Xapian::Query q' has initializer but incomplete type
match.cc: In function 'void aptitude::matching::search(const cwidget::util::ref_ptr<aptitude::matching::pattern>&, const cwidget::util::ref_ptr<aptitude::matching::search_cache>&, std::vector<std::pair<pkgCache::PkgIterator, cwidget::util::ref_ptr<aptitude::matching::structural_match> >, std::allocator<std::pair<pkgCache::PkgIterator, cwidget::util::ref_ptr<aptitude::matching::structural_match> > > >&, aptitudeDepCache&, pkgRecords&, bool)':
match.cc:2886: error: expected type-specifier
match.cc:2886: error: expected unqualified-id before '&' token
match.cc:2886: error: expected ')' before '&' token
match.cc:2886: error: expected '{' before '&' token
match.cc:2886: error: 'e' was not declared in this scope
match.cc:2886: error: expected ';' before ')' token
In file included from /usr/include/c++/4.4/vector:65,
                 from //usr/include/cwidget/generic/util/exception.h:31,
                 from //usr/include/cwidget/generic/util/eassert.h:20,
                 from //usr/include/cwidget/generic/util/ref_ptr.h:12,
                 from match.h:23,
                 from match.cc:20:
/usr/include/c++/4.4/bits/stl_vector.h: In destructor 'std::_Vector_base<_Tp, _Alloc>::~_Vector_base() [with _Tp = Xapian::Query, _Alloc = std::allocator<Xapian::Query>]':
/usr/include/c++/4.4/bits/stl_vector.h:208: instantiated from 'std::vector<_Tp, _Alloc>::vector() [with _Tp = Xapian::Query, _Alloc = std::allocator<Xapian::Query>]'
match.cc:2626: instantiated from here
/usr/include/c++/4.4/bits/stl_vector.h:132: error: invalid use of incomplete type 'struct Xapian::Query'
//usr/include/xapian/enquire.h:43: error: forward declaration of 'struct Xapian::Query'
In file included from /usr/include/c++/4.4/vector:63,
                 from //usr/include/cwidget/generic/util/exception.h:31,
                 from //usr/include/cwidget/generic/util/eassert.h:20,
                 from //usr/include/cwidget/generic/util/ref_ptr.h:12,
                 from match.h:23,
                 from match.cc:20:
/usr/include/c++/4.4/bits/stl_construct.h: In function 'void std::_Destroy(_ForwardIterator, _ForwardIterator) [with _ForwardIterator = Xapian::Query*]':
/usr/include/c++/4.4/bits/stl_construct.h:142: instantiated from 'void std::_Destroy(_ForwardIterator, _ForwardIterator, std::allocator<_T2>&) [with _ForwardIterator = Xapian::Query*, _Tp = Xapian::Query]'
/usr/include/c++/4.4/bits/stl_vector.h:313: instantiated from 'std::vector<_Tp, _Alloc>::~vector() [with _Tp = Xapian::Query, _Alloc = std::allocator<Xapian::Query>]'
match.cc:2626: instantiated from here
/usr/include/c++/4.4/bits/stl_construct.h:116: error: incomplete type 'std::_Destroy(_ForwardIterator, _ForwardIterator) [with _ForwardIterator = Xapian::Query*]::_Value_type' not allowed
make[4]: *** [match.o] Error 1
make[4]: Leaving directory `/scratch/packages/tmp/aptitude-0.6.1.5/src/generic/apt/matching'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/scratch/packages/tmp/aptitude-0.6.1.5/src/generic/apt'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/scratch/packages/tmp/aptitude-0.6.1.5/src/generic'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/scratch/packages/tmp/aptitude-0.6.1.5/src'
make: *** [build-stamp-gtk] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary-arch gave error exit status 2

Colin Watson (cjwatson)
affects: Ubuntu Maverick → aptitude (Ubuntu Maverick)
Revision history for this message
Michael Vogt (mvo) wrote :
Changed in aptitude (Ubuntu Maverick):
assignee: nobody → Michael Vogt (mvo)
status: Confirmed → In Progress
Revision history for this message
Michael Vogt (mvo) wrote :

There is a merge for this in lp:ubuntu/maverick/aptitude that currently waits on google-mock to enter the archive.

Revision history for this message
Michael Vogt (mvo) wrote :

Steve fixed it by removig the need for google-mock temporarily.

Revision history for this message
Michael Vogt (mvo) wrote :
Changed in aptitude (Ubuntu Maverick):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.