Difference between revisions of "Aptitude"
From Wiki at Neela Nurseries
m |
m |
||
(3 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
* https://stackoverflow.com/questions/24609271/errormake-unique-is-not-a-member-of-std?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa | * https://stackoverflow.com/questions/24609271/errormake-unique-is-not-a-member-of-std?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa | ||
* https://wiki.debian.org/GCC5 | * https://wiki.debian.org/GCC5 | ||
+ | * http://en.cppreference.com/w/cpp/memory/unique_ptr/make_unique | ||
+ | |||
+ | 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: | Several subdirs and each has a makefile: | ||
<pre> | <pre> | ||
− | + | user@localhost:~/Downloads/debian/aptitude-0.8.10$ make | |
make all-recursive | make all-recursive | ||
− | make[1]: Entering directory '/home/ | + | make[1]: Entering directory '/home/${USER}/Downloads/debian/aptitude-0.8.10' |
Making all in buildlib | Making all in buildlib | ||
− | make[2]: Entering directory '/home/ | + | make[2]: Entering directory '/home/${USER}/Downloads/debian/aptitude-0.8.10/buildlib' |
make[2]: Nothing to be done for 'all'. | make[2]: Nothing to be done for 'all'. | ||
− | make[2]: Leaving directory '/home/ | + | make[2]: Leaving directory '/home/${USER}/Downloads/debian/aptitude-0.8.10/buildlib' |
Making all in src | Making all in src | ||
− | make[2]: Entering directory '/home/ | + | make[2]: Entering directory '/home/${USER}/Downloads/debian/aptitude-0.8.10/src' |
Making all in generic | Making all in generic | ||
− | make[3]: Entering directory '/home/ | + | make[3]: Entering directory '/home/${USER}/Downloads/debian/aptitude-0.8.10/src/generic' |
Making all in util | Making all in util | ||
− | make[4]: Entering directory '/home/ | + | make[4]: Entering directory '/home/${USER}/Downloads/debian/aptitude-0.8.10/src/generic/util' |
Making all in mocks | Making all in mocks | ||
− | make[5]: Entering directory '/home/ | + | make[5]: Entering directory '/home/${USER}/Downloads/debian/aptitude-0.8.10/src/generic/util/mocks' |
make[5]: Nothing to be done for 'all'. | make[5]: Nothing to be done for 'all'. | ||
− | make[5]: Leaving directory '/home/ | + | make[5]: Leaving directory '/home/${USER}/Downloads/debian/aptitude-0.8.10/src/generic/util/mocks' |
− | make[5]: Entering directory '/home/ | + | make[5]: Entering directory '/home/${USER}/Downloads/debian/aptitude-0.8.10/src/generic/util' |
make[5]: Nothing to be done for 'all-am'. | make[5]: Nothing to be done for 'all-am'. | ||
− | make[5]: Leaving directory '/home/ | + | make[5]: Leaving directory '/home/${USER}/Downloads/debian/aptitude-0.8.10/src/generic/util' |
− | make[4]: Leaving directory '/home/ | + | make[4]: Leaving directory '/home/${USER}/Downloads/debian/aptitude-0.8.10/src/generic/util' |
Making all in apt | Making all in apt | ||
− | make[4]: Entering directory '/home/ | + | make[4]: Entering directory '/home/${USER}/Downloads/debian/aptitude-0.8.10/src/generic/apt' |
Making all in history | Making all in history | ||
− | make[5]: Entering directory '/home/ | + | make[5]: Entering directory '/home/${USER}/Downloads/debian/aptitude-0.8.10/src/generic/apt/history' |
make[5]: Nothing to be done for 'all'. | make[5]: Nothing to be done for 'all'. | ||
− | make[5]: Leaving directory '/home/ | + | make[5]: Leaving directory '/home/${USER}/Downloads/debian/aptitude-0.8.10/src/generic/apt/history' |
Making all in matching | Making all in matching | ||
− | make[5]: Entering directory '/home/ | + | make[5]: Entering directory '/home/${USER}/Downloads/debian/aptitude-0.8.10/src/generic/apt/matching' |
make[5]: Nothing to be done for 'all'. | make[5]: Nothing to be done for 'all'. | ||
− | make[5]: Leaving directory '/home/ | + | make[5]: Leaving directory '/home/${USER}/Downloads/debian/aptitude-0.8.10/src/generic/apt/matching' |
− | make[5]: Entering directory '/home/ | + | make[5]: Entering directory '/home/${USER}/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 | 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: In function ?: |
− | apt.cc:1710:28: error: | + | apt.cc:1710:28: error: ? is not a member of ? |
internal_fetchinfo = std::make_unique<pkgAcquire_fetch_info>(f); | internal_fetchinfo = std::make_unique<pkgAcquire_fetch_info>(f); | ||
^ | ^ | ||
− | apt.cc:1710:66: error: expected primary-expression before | + | apt.cc:1710:66: error: expected primary-expression before ? token |
internal_fetchinfo = std::make_unique<pkgAcquire_fetch_info>(f); | internal_fetchinfo = std::make_unique<pkgAcquire_fetch_info>(f); | ||
^ | ^ | ||
− | apt.cc: In function | + | apt.cc: In function ?: |
− | apt.cc:1724:9: error: | + | apt.cc:1724:9: error: ? is not a member of ? |
return std::make_unique<pkgAcquire_fetch_info>(*internal_fetchinfo); | return std::make_unique<pkgAcquire_fetch_info>(*internal_fetchinfo); | ||
</pre> | </pre> |
Latest revision as of 19:52, 26 July 2018
Trying to build aptitude from sources on a three-year old Debian host . . . g++ complains that 'make_unique' not a member of std
- https://stackoverflow.com/questions/24609271/errormake-unique-is-not-a-member-of-std?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
- https://wiki.debian.org/GCC5
- http://en.cppreference.com/w/cpp/memory/unique_ptr/make_unique
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/${USER}/Downloads/debian/aptitude-0.8.10' Making all in buildlib make[2]: Entering directory '/home/${USER}/Downloads/debian/aptitude-0.8.10/buildlib' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/${USER}/Downloads/debian/aptitude-0.8.10/buildlib' Making all in src make[2]: Entering directory '/home/${USER}/Downloads/debian/aptitude-0.8.10/src' Making all in generic make[3]: Entering directory '/home/${USER}/Downloads/debian/aptitude-0.8.10/src/generic' Making all in util make[4]: Entering directory '/home/${USER}/Downloads/debian/aptitude-0.8.10/src/generic/util' Making all in mocks make[5]: Entering directory '/home/${USER}/Downloads/debian/aptitude-0.8.10/src/generic/util/mocks' make[5]: Nothing to be done for 'all'. make[5]: Leaving directory '/home/${USER}/Downloads/debian/aptitude-0.8.10/src/generic/util/mocks' make[5]: Entering directory '/home/${USER}/Downloads/debian/aptitude-0.8.10/src/generic/util' make[5]: Nothing to be done for 'all-am'. make[5]: Leaving directory '/home/${USER}/Downloads/debian/aptitude-0.8.10/src/generic/util' make[4]: Leaving directory '/home/${USER}/Downloads/debian/aptitude-0.8.10/src/generic/util' Making all in apt make[4]: Entering directory '/home/${USER}/Downloads/debian/aptitude-0.8.10/src/generic/apt' Making all in history make[5]: Entering directory '/home/${USER}/Downloads/debian/aptitude-0.8.10/src/generic/apt/history' make[5]: Nothing to be done for 'all'. make[5]: Leaving directory '/home/${USER}/Downloads/debian/aptitude-0.8.10/src/generic/apt/history' Making all in matching make[5]: Entering directory '/home/${USER}/Downloads/debian/aptitude-0.8.10/src/generic/apt/matching' make[5]: Nothing to be done for 'all'. make[5]: Leaving directory '/home/${USER}/Downloads/debian/aptitude-0.8.10/src/generic/apt/matching' make[5]: Entering directory '/home/${USER}/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);