Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 631252 - net-analyzer/icinga2-2.7.0-r1 : /.../icinga-checkresult.cpp:44:2: error: cout is not a member of std
Summary: net-analyzer/icinga2-2.7.0-r1 : /.../icinga-checkresult.cpp:44:2: error: cout...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-17 19:36 UTC by Toralf Förster
Modified: 2017-09-28 06:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.67 KB, text/plain)
2017-09-17 19:37 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,377.23 KB, text/plain)
2017-09-17 19:37 UTC, Toralf Förster
Details
environment (environment,147.92 KB, text/plain)
2017-09-17 19:37 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,20.04 KB, application/x-bzip)
2017-09-17 19:37 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,5.99 KB, application/x-bzip)
2017-09-17 19:37 UTC, Toralf Förster
Details
net-analyzer:icinga2-2.7.0-r1:20170916-063745.log (net-analyzer:icinga2-2.7.0-r1:20170916-063745.log,370.88 KB, text/plain)
2017-09-17 19:37 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,45.27 KB, application/x-bzip)
2017-09-17 19:37 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-09-17 19:36:59 UTC
/var/tmp/portage/net-analyzer/icinga2-2.7.0-r1/work/icinga2-2.7.0/test/icinga-checkresult.cpp: In function ‘void icinga_checkresult::NotificationHandler(const Ptr&, icinga::NotificationType)’:
/var/tmp/portage/net-analyzer/icinga2-2.7.0-r1/work/icinga2-2.7.0/test/icinga-checkresult.cpp:44:2: error: ‘cout’ is not a member of ‘std’
  std::cout << "Notification triggered: " << Notification::NotificationTypeToString(type) << std::endl;
  ^~~
/var/tmp/portage/net-analyzer/icinga2-2.7.0-r1/work/icinga2-2.7.0/test/icinga-checkresult.cpp: In member function ‘void icinga_checkresult::host_1attempt::test_method()’:

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 13.0-systemd_20170903-225953

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-6.4.0 *

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python2.7 (fallback)
  [3]   pypy (fallback)

java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.5.1 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpv net-analyzer/icinga2
[ebuild  N    ] net-analyzer/icinga2-2.7.0-r1  USE="mysql plugins vim-syntax -apache2 -classicui -console -libressl -lto -mail -minimal -nano-syntax -postgres -studio"
Comment 1 Toralf Förster gentoo-dev 2017-09-17 19:37:02 UTC
Created attachment 494986 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-09-17 19:37:05 UTC
Created attachment 494988 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2017-09-17 19:37:09 UTC
Created attachment 494990 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2017-09-17 19:37:12 UTC
Created attachment 494992 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2017-09-17 19:37:16 UTC
Created attachment 494994 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-09-17 19:37:19 UTC
Created attachment 494996 [details]
net-analyzer:icinga2-2.7.0-r1:20170916-063745.log
Comment 7 Toralf Förster gentoo-dev 2017-09-17 19:37:23 UTC
Created attachment 494998 [details]
temp.tbz2
Comment 8 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2017-09-18 16:09:37 UTC
I suspect this is a gcc issue, but I can't help but wonder how cout is not a part of the c++ standard library (my ancient c++ knowledge used cout a bit back in high school).
Comment 9 Reinhard Biegel 2017-09-24 22:38:20 UTC
icinga-checkresult.cpp is simply missing a
> #include <iostream>

Icinga Github-Issue:
https://github.com/Icinga/icinga2/issues/5613
Comment 10 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2017-09-26 16:53:41 UTC
fixed in 2.7.1 in place (build issue)
Comment 11 Daniel M. Weeks 2017-09-26 19:48:07 UTC
This isn't fixed. The same problem affects other files. I've added pertinent information on the upstream bug report.