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

Bug 202446

Summary: media-gfx/graphviz build error with GCC 4.3
Product: Gentoo Linux Reporter: Ryan Hill (RETIRED) <rhill>
Component: Current packagesAssignee: Gentoo Graphics Project <graphics+disabled>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 198121    
Attachments: graphviz-2.16.1-gcc43-missing-includes.patch

Description Ryan Hill (RETIRED) gentoo-dev 2007-12-16 02:39:54 UTC
During the GCC 4.3 cycle there was a massive cleanup of the C++ header dependencies.  A lot of headers were being pulled in indirectly by others even if they weren't needed, wasting time and resources.  Code which worked up until now because it happened to (accidentally or intentionally) rely on this can fail to build.

The attached patch fixes two such errors in graphviz-2.12:

generate-constraints.cpp:155: error: 'qsort' was not declared in this scope
csolve_VPSC.cpp:97: error: 'exit' was not declared in this scope

These are also present in the latest version, 2.16.1.
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2007-12-16 02:44:33 UTC
Created attachment 138598 [details, diff]
graphviz-2.16.1-gcc43-missing-includes.patch
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2007-12-16 22:46:11 UTC
fixed in 2.16.1