In file included from par.h:27, from prot_nntp.cc:43: auto_map.h:58: error: type/value mismatch at argument 3 in template parameter list for ‘template<class K, class T, template<class BK, class BT> class B ase> class auto_map_base’ auto_map.h:58: error: expected a template of type ‘template<class BK, class BT> class Base’, got ‘template<class _Key, class _Tp, class _Compare, cla ss _Alloc> class std::map’ auto_map.h:60: error: type/value mismatch at argument 3 in template parameter list for ‘template<class K, class T, template<class BK, class BT> class B ase> class auto_map_base’ auto_map.h:60: error: expected a template of type ‘template<class BK, class BT> class Base’, got ‘template<class _Key, class _Tp, class _Compare, cla ss _Alloc> class std::map’ auto_map.h:61: error: ‘super’ is not a class or namespace auto_map.h:62: error: ‘super’ is not a class or namespace auto_map.h: In member function ‘std::pair<int, bool> auto_map<K, T>::insert_value(const K&, T*)’: auto_map.h:72: error: ‘super’ is not a class or namespace auto_map.h: At global scope: auto_map.h:77: error: type/value mismatch at argument 3 in template parameter list for ‘template<class K, class T, template<class BK, class BT> class B ase> class auto_map_base’ auto_map.h:77: error: expected a template of type ‘template<class BK, class BT> class Base’, got ‘template<class _Key, class _Tp, class _Compare, cla ss _Alloc> class std::multimap’ auto_map.h:79: error: type/value mismatch at argument 3 in template parameter list for ‘template<class K, class T, template<class BK, class BT> class B ase> class auto_map_base’ auto_map.h:79: error: expected a template of type ‘template<class BK, class BT> class Base’, got ‘template<class _Key, class _Tp, class _Compare, cla ss _Alloc> class std::multimap’ auto_map.h:80: error: ‘super’ is not a class or namespace auto_map.h:81: error: ‘super’ is not a class or namespace auto_map.h: In member function ‘int auto_multimap<K, T>::insert_value(const K&, T*)’: auto_map.h:83: error: ‘super’ is not a class or namespace In file included from prot_nntp.cc:43: par.h: In member function ‘void LocalParFiles::clear()’: par.h:129: error: ‘class t_subjmatches_map’ has no member named ‘clear’ par.h: At global scope: par.h:216: error: ‘mapped_type’ in class ‘auto_map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, ParInfo>’ does not name a ty pe par.h:217: error: ‘mapped_type’ in class ‘auto_map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, ParInfo>’ does not name a ty pe prot_nntp.cc: In member function ‘void c_prot_nntp::nntp_dogroupdescriptions(const char*)’: prot_nntp.cc:218: warning: deprecated conversion from string constant to ‘char*’ make: *** [prot_nntp.o] Error 1
indeed
emerge --info? :)
Created attachment 142524 [details, diff] nget-0.27.1-gcc42.patch This patch helps to get nget-0.27.1 compiled under newer versions of GCC.
Created attachment 147370 [details, diff] nget-0.27.1-gcc43.patch This patch helps to get nget-0.27.1 compiled under GCC 4.3.x
The 4.3 patch looks fine, and exactly like what upstream applied. The 4.2 patch is upstream in pretty much the same form. If someone is going to maintain this, grab the fix from upstream: http://nget.cvs.sourceforge.net/nget/nget/auto_map.h?r1=1.8&r2=1.9
thanks to upstream for the patch, Mark for pointing me to it and Diego for reporting the bug. note: had some time to commit this - I don't intend maintaining this unless something I added broke it.