Your message dated Mon, 23 Oct 2006 11:33:26 -0700 with message-id <[EMAIL PROTECTED]> and subject line Bug#302561: fixed in swish++ 6.1.4-1 has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database)
--- Begin Message ---Package: swish++ Version: 5.15.3-3 Severity: normal Tags: patch When building 'swish++' on amd64/unstable with gcc-4.0, I get the following error: pattern_map.h:114: error: ISO C++ forbids declaration of 'result_type' with no type pattern_map.h:114: error: expected ';' before 'operator' pattern_map.h:117: error: expected `;' before 'private' pattern_map.h: In member function 'typename std::map<const char*, T, std::less<const char*>, std::allocator<std::pair<const char* const, T> > >::iterator pattern_map<T>::find(const char*)': pattern_map.h:90: error: there are no arguments to 'begin' that depend on a template parameter, so a declaration of 'begin' must be available pattern_map.h:90: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) pattern_map.h:90: error: there are no arguments to 'end' that depend on a template parameter, so a declaration of 'end' must be available pattern_map.h: In member function 'typename std::map<const char*, T, std::less<const char*>, std::allocator<std::pair<const char* const, T> > >::const_iterator pattern_map<T>::find(const char*) const': pattern_map.h:95: error: there are no arguments to 'begin' that depend on a template parameter, so a declaration of 'begin' must be available pattern_map.h:95: error: there are no arguments to 'end' that depend on a template parameter, so a declaration of 'end' must be available pattern_map.h: In member function 'bool pattern_map<T>::matches(const char*) const': pattern_map.h:100: error: there are no arguments to 'end' that depend on a template parameter, so a declaration of 'end' must be available /usr/lib/gcc/x86_64-linux/4.0.0/../../../../include/c++/4.0.0/bits/stl_algo.h: In function '_InputIterator std::find_if(_InputIterator, _InputIterator, _Predicate, std::input_iterator_tag) [with _InputIterator = std::_Rb_tree_const_iterator<std::pair<const char* const, filter> >, _Predicate = pattern_map<filter>::pattern_match]': /usr/lib/gcc/x86_64-linux/4.0.0/../../../../include/c++/4.0.0/bits/stl_algo.h:337: instantiated from '_InputIterator std::find_if(_InputIterator, _InputIterator, _Predicate) [with _InputIterator = std::_Rb_tree_const_iterator<std::pair<const char* const, filter> >, _Predicate = pattern_map<filter>::pattern_match]' pattern_map.h:96: instantiated from 'typename std::map<const char*, T, std::less<const char*>, std::allocator<std::pair<const char* const, T> > >::const_iterator pattern_map<T>::find(const char*) const [with T = filter]' conf_filter.h:53: instantiated from here /usr/lib/gcc/x86_64-linux/4.0.0/../../../../include/c++/4.0.0/bits/stl_algo.h:187: error: no match for call to '(pattern_map<filter>::pattern_match) (const std::pair<const char* const, filter>&)' make[1]: *** [conf_filter.o] Error 1 make[1]: Leaving directory `/swish++-5.15.3' make: *** [build-stamp] Error 2 With the attached patch 'swish++' can be compiled on amd64 using gcc-4.0. Regards Andreas Jochens diff -urN ../tmp-orig/swish++-5.15.3/mod/html/elements.c ./mod/html/elements.c --- ../tmp-orig/swish++-5.15.3/mod/html/elements.c 2002-10-16 09:11:32.000000000 +0200 +++ ./mod/html/elements.c 2005-04-01 14:50:26.026466690 +0200 @@ -296,7 +296,7 @@ // C++ has become overly pedantic about casting to enums. // element::end_tag_value const - v = (element::end_tag_value const)(int const)(p[1]); + v = (element::end_tag_value const)(long const)(p[1]); element &e = insert( value_type( *p++, element( v ) ) ).first->second; diff -urN ../tmp-orig/swish++-5.15.3/my_set.h ./my_set.h --- ../tmp-orig/swish++-5.15.3/my_set.h 2001-07-03 09:39:13.000000000 +0200 +++ ./my_set.h 2005-04-01 14:48:57.007157353 +0200 @@ -52,7 +52,7 @@ //***************************************************************************** { public: - bool contains( T const &s ) const { return find( s ) != end(); } + bool contains( T const &s ) const { return find( s ) != this->end(); } }; //***************************************************************************** diff -urN ../tmp-orig/swish++-5.15.3/pattern_map.h ./pattern_map.h --- ../tmp-orig/swish++-5.15.3/pattern_map.h 2002-05-29 17:41:38.000000000 +0200 +++ ./pattern_map.h 2005-04-01 15:02:22.121202604 +0200 @@ -87,17 +87,17 @@ // insertion, however. // return std::find_if( - begin(), end(), pattern_match( file_name ) + this->begin(), this->end(), pattern_match( file_name ) ); } const_iterator find( char const *file_name ) const { return std::find_if( - begin(), end(), pattern_match( file_name ) + this->begin(), this->end(), pattern_match( file_name ) ); } bool matches( char const *file_name ) const { - return find( file_name ) != end(); + return find( file_name ) != this->end(); } void insert( char const *pattern, T const &t ) { (*this)[pattern] = t; } void insert( value_type const &n ) { map_type::insert( n ); } @@ -111,7 +111,7 @@ public: pattern_match( char const *file_name ) : file_name_( file_name ) { } - result_type operator()( argument_type map_node ) const { + bool operator()( value_type const &map_node ) const { return !::fnmatch( map_node.first, file_name_, 0 ); } private:
--- End Message ---
--- Begin Message ---Source: swish++ Source-Version: 6.1.4-1 We believe that the bug you reported is fixed in the latest version of swish++, which is due to be installed in the Debian FTP archive: swish++_6.1.4-1.diff.gz to pool/main/s/swish++/swish++_6.1.4-1.diff.gz swish++_6.1.4-1.dsc to pool/main/s/swish++/swish++_6.1.4-1.dsc swish++_6.1.4-1_amd64.deb to pool/main/s/swish++/swish++_6.1.4-1_amd64.deb swish++_6.1.4.orig.tar.gz to pool/main/s/swish++/swish++_6.1.4.orig.tar.gz A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [EMAIL PROTECTED], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Kapil Hari Paranjape <[EMAIL PROTECTED]> (supplier of updated swish++ package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [EMAIL PROTECTED]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Format: 1.7 Date: Mon, 23 Oct 2006 09:27:25 +0530 Source: swish++ Binary: swish++ Architecture: source amd64 Version: 6.1.4-1 Distribution: unstable Urgency: low Maintainer: Kapil Hari Paranjape <[EMAIL PROTECTED]> Changed-By: Kapil Hari Paranjape <[EMAIL PROTECTED]> Description: swish++ - Simple Document Indexing System for Humans: C++ version Closes: 282508 291070 302561 302561 321674 356160 356160 385743 Changes: swish++ (6.1.4-1) unstable; urgency=low . * New Maintainer. Closes: #385743. * New upstream release (6.1.4). Closes: #321674. - Builds with g++ 4.1. Closes: #356160. * debian/patches: - incorporated patches under "quilt". - patch from Andreas Jochens to cast char to int correctly for 64bit arches. Closes: #302561. * debian/rules: - updated for new location of scripts in source. - changed "configure-stamp" to use /usr/share/quilt/quilt.make. following suggestion of James Westby. - replaced use of "debian/fixmanpages" by use of quilt. - changed "configure-stamp" to fix manpage location. Closes: #282508. - DH_COMPAT=4 - Use "distclean" target of toplevel Makefile. - Removed call to "dh_undocumented". * debian/copyright: included all copyright statements. * debian/control: - added homepage to description. - updated "debhelper" dependency. - added "quilt" dependency. - update package description. Closes: #291070. - Standards-Version 3.7.2. No changes required. * debian/changelog: Acknowledge NMU's. Thanks to Frank Lichtenheld, Martin Michlmayr. Closes: #302561, #356160. * debian/: - Removed the unused files "all_in_one.patch" and "swish++.conf.patch". - added "watch" file. * debian/oo_indexing: Included OpenOffice indexing example from Bastian Kleineidam. Closes #242238. * debian/patches/use_gcc_for_ld: Patched config/config.mk and top-level GNUmakefile to use "gcc" instead of "g++" for linking. This prevents unneeded dependencies. Thanks to Christian Aichinger's scripts for pointing this out. Files: 2c497ab3fda10e35f6b990465749dcdb 598 web optional swish++_6.1.4-1.dsc 08c0eac88e4f08c353037b893e243268 302123 web optional swish++_6.1.4.orig.tar.gz 9bab0eafbba6f304176227803618e33f 41469 web optional swish++_6.1.4-1.diff.gz 1dbccb82463fee39b8617e0588689633 303978 web optional swish++_6.1.4-1_amd64.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFPQg4KO6zWj6NzMARAsW6AJ9eS1MVjsyQ6BYtpoenOdXMli30VgCdHgCr T89oumbvznEbra9zltmt1Uc= =EhAA -----END PGP SIGNATURE-----
--- End Message ---

