Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 489836 - dev-libs/liborcus-0.5.1 fails to build with sys-devel/gcc-4.8 - add #include <iostream>
Summary: dev-libs/liborcus-0.5.1 fails to build with sys-devel/gcc-4.8 - add #include ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-10-29 22:13 UTC by Martin Väth
Modified: 2013-12-27 08:57 UTC (History)
0 users

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


Attachments
patch to add missing include (liborcus-0.5.1-gcc-4.8.patch,205 bytes, patch)
2013-10-29 22:13 UTC, Martin Väth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.