Summary: | app-backup/snapper with gcc-6.4: cleanup.cc:203:6: error: ‘cerr’ was not declared in this scope | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Dainius Masiliūnas <pastas4> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | dlan, polynomial-c, proxy-maint |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 582084 | ||
Attachments: |
app-backup:snapper-0.3.3:20160929-103643.log
config.log emerge-history.txt environment |
Description
Toralf Förster
2016-09-29 16:59:23 UTC
Created attachment 448440 [details]
app-backup:snapper-0.3.3:20160929-103643.log
Created attachment 448442 [details]
config.log
Created attachment 448444 [details]
emerge-history.txt
Created attachment 448446 [details]
environment
Snapper 0.5.0 seems to ignore that warning. However it fails with x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DCONFDIR='"/etc/conf.d"' -march=native -O2 -pipe -g -std=c++11 -Wall -Wextra -Wformat=2 -Wnon-virtual-dtor -Wno-unused-parameter -c -o cleanup.o cleanup.cc x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DCONFDIR='"/etc/conf.d"' -march=native -O2 -pipe -g -std=c++11 -Wall -Wextra -Wformat=2 -Wnon-virtual-dtor -Wno-unused-parameter -c -o proxy.o proxy.cc x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DCONFDIR='"/etc/conf.d"' -march=native -O2 -pipe -g -std=c++11 -Wall -Wextra -Wformat=2 -Wnon-virtual-dtor -Wno-unused-parameter -c -o proxy-dbus.o proxy-dbus.cc cleanup.cc: In member function ‘bool Cleaner::is_quota_aware() const’: cleanup.cc:203:6: error: ‘cerr’ was not declared in this scope cerr << "quota not working (" << e.message() << ")" << endl; ^~~~ cleanup.cc:213:2: error: ‘cerr’ was not declared in this scope cerr << "quota not working (" << e.what() << ")" << endl; ^~~~ make[3]: *** [Makefile:669: cleanup.o] Error 1 make[3]: *** Waiting for unfinished jobs.... The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=502172039b109f54f097d3b8edda6d741bb0367f commit 502172039b109f54f097d3b8edda6d741bb0367f Author: Andreas K. Hüttel <dilfridge@gentoo.org> AuthorDate: 2017-09-21 20:59:30 +0000 Commit: Andreas K. Hüttel <dilfridge@gentoo.org> CommitDate: 2017-09-21 21:00:00 +0000 app-backup/snapper: Add build fix for gcc-6, bug 595552 Closes: https://bugs.gentoo.org/595552 Package-Manager: Portage-2.3.10, Repoman-2.3.3 app-backup/snapper/files/snapper-0.5.0-gcc6.patch | 21 +++++++++++++++++++++ app-backup/snapper/snapper-0.5.0.ebuild | 1 + 2 files changed, 22 insertions(+) *** Bug 630050 has been marked as a duplicate of this bug. *** This indeed works for 0.5.0, but older versions in the tree (0.3.3, 0.4.1) fail without this patch. Either the patch should also be backported there, or the older versions dropped fromt he tree. Also FIY that these includes are now upstream as part of 0.5.4 ( https://github.com/openSUSE/snapper/commit/2e3812d2c1d1f54861fb79f5c2b0197de96a00a3 ), so it might be a good idea to include this version into the tree without the GCC6 patch. I think this bug is obsolete, so let's close it. |