Aptitude

From Wiki at Neela Nurseries
Revision as of 20:55, 2 April 2018 by Ted (talk | contribs)
Jump to: navigation, search


Trying to build aptitude from sources on a three-year old Debian host . . . g++ complains that 'make_unique' not a member of std

There's a code example at the last and third link, which can be compiled with,

   $ g++ -std=c++14 a.cpp


Several subdirs and each has a makefile:

user@localhost:~/Downloads/debian/aptitude-0.8.10$ make
make  all-recursive
make[1]: Entering directory '/home/veris/Downloads/debian/aptitude-0.8.10'
Making all in buildlib
make[2]: Entering directory '/home/veris/Downloads/debian/aptitude-0.8.10/buildlib'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/veris/Downloads/debian/aptitude-0.8.10/buildlib'
Making all in src
make[2]: Entering directory '/home/veris/Downloads/debian/aptitude-0.8.10/src'
Making all in generic
make[3]: Entering directory '/home/veris/Downloads/debian/aptitude-0.8.10/src/generic'
Making all in util
make[4]: Entering directory '/home/veris/Downloads/debian/aptitude-0.8.10/src/generic/util'
Making all in mocks
make[5]: Entering directory '/home/veris/Downloads/debian/aptitude-0.8.10/src/generic/util/mocks'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/veris/Downloads/debian/aptitude-0.8.10/src/generic/util/mocks'
make[5]: Entering directory '/home/veris/Downloads/debian/aptitude-0.8.10/src/generic/util'
make[5]: Nothing to be done for 'all-am'.
make[5]: Leaving directory '/home/veris/Downloads/debian/aptitude-0.8.10/src/generic/util'
make[4]: Leaving directory '/home/veris/Downloads/debian/aptitude-0.8.10/src/generic/util'
Making all in apt
make[4]: Entering directory '/home/veris/Downloads/debian/aptitude-0.8.10/src/generic/apt'
Making all in history
make[5]: Entering directory '/home/veris/Downloads/debian/aptitude-0.8.10/src/generic/apt/history'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/veris/Downloads/debian/aptitude-0.8.10/src/generic/apt/history'
Making all in matching
make[5]: Entering directory '/home/veris/Downloads/debian/aptitude-0.8.10/src/generic/apt/matching'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/veris/Downloads/debian/aptitude-0.8.10/src/generic/apt/matching'
make[5]: Entering directory '/home/veris/Downloads/debian/aptitude-0.8.10/src/generic/apt'
g++ -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../../..  -I../../.. -I. -I../../.. -I../../../src -I/usr/include  -DHELPDIR=\"/usr/local/share/aptitude\" -DPKGDATADIR=\"/usr/local/share/aptitude\" -std=c++11  -I/usr/include/sigc++-2.0 -I/usr/lib/i386-linux-gnu/sigc++-2.0/include -I/usr/lib/i386-linux-gnu/cwidget -I/usr/include/sigc++-2.0 -I/usr/lib/i386-linux-gnu/sigc++-2.0/include    -g -O2 -D_REENTRANT -Wall  -MT apt.o -MD -MP -MF .deps/apt.Tpo -c -o apt.o apt.cc
apt.cc: In function â:
apt.cc:1710:28: error: â is not a member of â
       internal_fetchinfo = std::make_unique<pkgAcquire_fetch_info>(f);
                            ^
apt.cc:1710:66: error: expected primary-expression before â token
       internal_fetchinfo = std::make_unique<pkgAcquire_fetch_info>(f);
                                                                  ^
apt.cc: In function â:
apt.cc:1724:9: error: â is not a member of â
  return std::make_unique<pkgAcquire_fetch_info>(*internal_fetchinfo);