THe file curkeys.h is generated during the build. Written on top of the file dselect/curkeys.h :
/*
* WARNING - THIS FILE IS GENERATED AUTOMATICALLY - DO NOT EDIT
* It is generated by mkcurkeys.pl from <curses.h>
* and keyoverride. If you want to override things try adding
* them to keyoverride.
*/
Well, I tried to edit the file "keyoverride" but still the same error. Then I deleted the rogue line in the file curkeys.h and ran make again. This time it built without errors.
I proceeded to build apt. This time i got the fllowing errors:
<code>
Compiling policy.cc to /root/downloads/apt-0.5.4/obj/apt-pkg/policy.opic
policy.cc: In member function `void
pkgPolicy::CreatePin(pkgVersionMatch::MatchType, std::basic_string<char,
std::char_traits<char>, std::allocator<char> >, std::basic_string<char,
std::char_traits<char>, std::allocator<char> >, short int)':
policy.cc:186: error: no matching function for call to `
std::vector<pkgPolicy::Pin, std::allocator<pkgPolicy::Pin> >::insert(
__gnu_cxx::__normal_iterator<pkgPolicy::Pin*, std::vector<pkgPolicy::Pin,
std::allocator<pkgPolicy::Pin> > >)'
/usr/include/c++/3.3.1/bits/vector.tcc:89: error: candidates are:
__gnu_cxx::__normal_iterator<_Tp*, std::vector<_Tp, _Alloc> >
std::vector<_Tp, _Alloc>::insert(__gnu_cxx::__normal_iterator<_Tp*,
std::vector<_Tp, _Alloc> >, const _Tp&) [with _Tp = pkgPolicy::Pin, _Alloc =
std::allocator<pkgPolicy::Pin>]
/usr/include/c++/3.3.1/bits/stl_vector.h:671: error: void
std::vector<_Tp, _Alloc>::insert(__gnu_cxx::__normal_iterator<_Tp*,
std::vector<_Tp, _Alloc> >, unsigned int, const _Tp&) [with _Tp =
pkgPolicy::Pin, _Alloc = std::allocator<pkgPolicy::Pin>]
policy.cc:200: error: no matching function for call to `
std::vector<pkgPolicy::PkgPin, std::allocator<pkgPolicy::PkgPin> >::insert(
__gnu_cxx::__normal_iterator<pkgPolicy::PkgPin*,
std::vector<pkgPolicy::PkgPin, std::allocator<pkgPolicy::PkgPin> > >)'
/usr/include/c++/3.3.1/bits/vector.tcc:89: error: candidates are:
__gnu_cxx::__normal_iterator<_Tp*, std::vector<_Tp, _Alloc> >
std::vector<_Tp, _Alloc>::insert(__gnu_cxx::__normal_iterator<_Tp*,
std::vector<_Tp, _Alloc> >, const _Tp&) [with _Tp = pkgPolicy::PkgPin,
_Alloc = std::allocator<pkgPolicy::PkgPin>]
/usr/include/c++/3.3.1/bits/stl_vector.h:671: error: void
std::vector<_Tp, _Alloc>::insert(__gnu_cxx::__normal_iterator<_Tp*,
std::vector<_Tp, _Alloc> >, unsigned int, const _Tp&) [with _Tp =
pkgPolicy::PkgPin, _Alloc = std::allocator<pkgPolicy::PkgPin>]
make[2]: *** [/root/downloads/apt-0.5.4/obj/apt-pkg/policy.opic] Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 2
</code>
Well, what's goin on?
|