Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 489836

Summary: dev-libs/liborcus-0.5.1 fails to build with sys-devel/gcc-4.8 - add #include <iostream>
Product: Gentoo Linux Reporter: Martin Väth <martin>
Component: [OLD] LibraryAssignee: Gentoo Office Team <office>
Status: RESOLVED FIXED    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch to add missing include

Description Martin Väth 2013-10-29 22:13:49 UTC
Created attachment 362262 [details, diff]
patch to add missing include

Probably due to some cleanup in the C++ header files,
dev-libs/liborcus-0.5.1 does not compile with gcc-4.8.1:

The file src/orcus_xml_main.cpp is using some iostream(s) without including the appropriate <iostream> header file.

I guess with some older gcc versions the erraneous code might work due to some other header file including <iostream> as some side effect.

A patch fixing the missing include (and thus compilation with gcc-4.8.1) is attached.
Comment 1 Tomáš Chvátal (RETIRED) gentoo-dev 2013-12-27 08:57:24 UTC
Fixed in cvs. Thanks for report.