--- Begin Message ---
Package: libkdtree++-dev
Version: 0.2.1-1
Severity: grave
Justification: renders package unusable
I'm getting following error when trying to compile the example included in
libkdtree++-dev package:
-----------------------------------------
[EMAIL PROTECTED]:/tmp/foo/examples$ make
g++ -Wall -W -pedantic -ansi `pkg-config libkdtree++ --cflags` -c -o
test_kdtree.o test_kdtree.cpp
In file included from test_kdtree.cpp:3:
/usr/include/kdtree++/kdtree.hpp:36: error: ‘KDTree’ is not a type
/usr/include/kdtree++/kdtree.hpp:36: error: expected ‘,’ or ‘...’ before ‘<’
token
/usr/include/kdtree++/kdtree.hpp: In function ‘std::ostream&
KDTree::operator<<(std::ostream&, int)’:
/usr/include/kdtree++/kdtree.hpp:38: error: ‘__T’ was not declared in this scope
/usr/include/kdtree++/kdtree.hpp:46: error: expected initializer before ‘<’
token
/usr/include/kdtree++/kdtree.hpp:47: error: ‘_Tree’ has not been declared
/usr/include/kdtree++/kdtree.hpp:47: error: invalid type in declaration before
‘;’ token
/usr/include/kdtree++/kdtree.hpp:56: error: invalid type argument of ‘unary *’
/usr/include/kdtree++/kdtree.hpp:57: error: ‘_Tree’ has not been declared
/usr/include/kdtree++/kdtree.hpp:57: error: ‘_Tree’ has not been declared
/usr/include/kdtree++/kdtree.hpp:58: error: ‘_Tree’ has not been declared
/usr/include/kdtree++/kdtree.hpp:58: error: ‘_Tree’ has not been declared
/usr/include/kdtree++/kdtree.hpp: At global scope:
/usr/include/kdtree++/kdtree.hpp:75: error: declaration of ‘typedef typename
KDTree::_Alloc_base<_Val, _Alloc>::allocator_type KDTree::KDTree<__K, _Val,
_Acc, _Cmp, _Alloc>::allocator_type’
/usr/include/kdtree++/kdtree.hpp:73: error: conflicts with previous declaration
‘typedef _Alloc KDTree::KDTree<__K, _Val, _Acc, _Cmp, _Alloc>::allocator_type’
/usr/include/kdtree++/kdtree.hpp: In instantiation of ‘KDTree::KDTree<3ul,
triplet, KDTree::_Bracket_accessor<triplet>, std::less<int>,
std::allocator<KDTree::_Node<triplet> > >’:
test_kdtree.cpp:30: instantiated from here
/usr/include/kdtree++/kdtree.hpp:751: error: template-id ‘operator<< <>’ for
‘std::basic_ostream<char, std::char_traits<char> >&
KDTree::operator<<(std::basic_ostream<char, std::char_traits<char> >&, const
KDTree::KDTree<3ul, triplet, KDTree::_Bracket_accessor<triplet>,
std::less<int>, std::allocator<KDTree::_Node<triplet> > >&)’ does not match any
template declaration
test_kdtree.cpp: In function ‘int main()’:
test_kdtree.cpp:32: warning: missing braces around initializer for ‘int [3]’
test_kdtree.cpp:33: warning: missing braces around initializer for ‘int [3]’
test_kdtree.cpp:34: warning: missing braces around initializer for ‘int [3]’
test_kdtree.cpp:35: warning: missing braces around initializer for ‘int [3]’
test_kdtree.cpp:36: warning: missing braces around initializer for ‘int [3]’
test_kdtree.cpp:37: warning: missing braces around initializer for ‘int [3]’
test_kdtree.cpp:38: warning: missing braces around initializer for ‘int [3]’
test_kdtree.cpp:39: warning: missing braces around initializer for ‘int [3]’
test_kdtree.cpp:40: warning: missing braces around initializer for ‘int [3]’
test_kdtree.cpp:41: warning: missing braces around initializer for ‘int [3]’
test_kdtree.cpp:43: error: no match for ‘operator<<’ in ‘std::cout << t’
/usr/include/c++/4.2/ostream:112: note: candidates are:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(std::basic_ostream<_CharT, _Traits>&
(*)(std::basic_ostream<_CharT, _Traits>&)) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/include/c++/4.2/ostream:121: note:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(std::basic_ios<_CharT, _Traits>&
(*)(std::basic_ios<_CharT, _Traits>&)) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/include/c++/4.2/ostream:131: note:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char,
_Traits = std::char_traits<char>]
/usr/include/c++/4.2/ostream:169: note:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(long int) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/include/c++/4.2/ostream:173: note:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(long unsigned int) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/include/c++/4.2/ostream:177: note:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(bool) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/include/c++/4.2/bits/ostream.tcc:92: note:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(short int) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/include/c++/4.2/ostream:184: note:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(short unsigned int) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/include/c++/4.2/bits/ostream.tcc:106: note:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(int) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/include/c++/4.2/ostream:195: note:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(unsigned int) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/include/c++/4.2/ostream:204: note:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(long long int) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/include/c++/4.2/ostream:208: note:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(long long unsigned int) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/include/c++/4.2/ostream:213: note:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(double) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/include/c++/4.2/ostream:217: note:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(float) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/include/c++/4.2/ostream:225: note:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(long double) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/include/c++/4.2/ostream:229: note:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(const void*) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/include/c++/4.2/bits/ostream.tcc:120: note:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(std::basic_streambuf<_CharT, _Traits>*) [with _CharT =
char, _Traits = std::char_traits<char>]
test_kdtree.cpp:20: note: std::ostream&
operator<<(std::ostream&, const triplet&)
test_kdtree.cpp:45: warning: missing braces around initializer for ‘int [3]’
test_kdtree.cpp:61: error: no match for ‘operator<<’ in ‘std::cout << t’
/usr/include/c++/4.2/ostream:112: note: candidates are:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(std::basic_ostream<_CharT, _Traits>&
(*)(std::basic_ostream<_CharT, _Traits>&)) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/include/c++/4.2/ostream:121: note:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(std::basic_ios<_CharT, _Traits>&
(*)(std::basic_ios<_CharT, _Traits>&)) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/include/c++/4.2/ostream:131: note:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char,
_Traits = std::char_traits<char>]
/usr/include/c++/4.2/ostream:169: note:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(long int) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/include/c++/4.2/ostream:173: note:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(long unsigned int) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/include/c++/4.2/ostream:177: note:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(bool) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/include/c++/4.2/bits/ostream.tcc:92: note:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(short int) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/include/c++/4.2/ostream:184: note:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(short unsigned int) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/include/c++/4.2/bits/ostream.tcc:106: note:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(int) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/include/c++/4.2/ostream:195: note:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(unsigned int) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/include/c++/4.2/ostream:204: note:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(long long int) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/include/c++/4.2/ostream:208: note:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(long long unsigned int) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/include/c++/4.2/ostream:213: note:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(double) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/include/c++/4.2/ostream:217: note:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(float) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/include/c++/4.2/ostream:225: note:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(long double) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/include/c++/4.2/ostream:229: note:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(const void*) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/include/c++/4.2/bits/ostream.tcc:120: note:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(std::basic_streambuf<_CharT, _Traits>*) [with _CharT =
char, _Traits = std::char_traits<char>]
test_kdtree.cpp:20: note: std::ostream&
operator<<(std::ostream&, const triplet&)
make: *** [test_kdtree.o] Error 1
------------------------------------------------
Also with minimal program:
#include <kdtree++/kdtree.hpp>
int main()
{
return 0;
}
[EMAIL PROTECTED]:/tmp$ g++ `pkg-config --cflags libkdtree++` tst.cpp
In file included from tst.cpp:1:
/usr/include/kdtree++/kdtree.hpp:75: error: declaration of ‘typedef typename
KDTree::_Alloc_base<_Val, _Alloc>::allocator_type KDTree::KDTree<__K, _Val,
_Acc, _Cmp, _Alloc>::allocator_type’
/usr/include/kdtree++/kdtree.hpp:73: error: conflicts with previous declaration
‘typedef _Alloc KDTree::KDTree<__K, _Val, _Acc, _Cmp, _Alloc>::allocator_type’
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (990, 'testing'), (100, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.23-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
-- no debconf information
--- End Message ---