dpkg/apt as package manager over temp lfs system 5.0

Subir pradhanang subir at mpp.org.np
Wed May 26 21:27:03 PDT 2004


Hello,

I have successfully installed lfs 5.0 twice.

Objective:
Now my idea is to install temporary lfs system (chapter 5). And then install dpkg and apt packages to make debian packages (.deb) from source and install them over the temporary lfs system for all other packages (chapter 6).


After installing the temporary lfs system and entering the chroot environment, I successfully installed dpkg_1.9.21.tar.gz (with reference from lfs-hints: Compiling apt-get and dpkg). 

Problem:
But when I tried to compile apt_0.5.4.tar.gz, I got the following error:

-----------------------------------------------------------------------------------------------------------------------------------------------
root:/usr/local/src/apt-0.5.4# make
Compiling policy.cc to /usr/local/src/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> > >)'
/tools/include/c++/3.3.3/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>]
/tools/include/c++/3.3.3/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> > >)'
/tools/include/c++/3.3.3/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>]
/tools/include/c++/3.3.3/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]: *** [/usr/local/src/apt-0.5.4/obj/apt-pkg/policy.opic] Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 2
root:/usr/local/src/apt-0.5.4# make
Compiling policy.cc to /usr/local/src/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> > >)'
/tools/include/c++/3.3.3/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>]
/tools/include/c++/3.3.3/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> > >)'
/tools/include/c++/3.3.3/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>]
/tools/include/c++/3.3.3/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]: *** [/usr/local/src/apt-0.5.4/obj/apt-pkg/policy.opic] Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 2

-----------------------------------------------------------------------------------------------------------------------------------------------
Please suggest a way out. Suggestions are welcome.

Regards,

Subir





More information about the lfs-support mailing list