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

Bug 358021

Summary: app-text/openjade-1.3.2-r3 fails to build with GCC 4.6
Product: Gentoo Linux Reporter: Ryan Hill (RETIRED) <rhill>
Component: [OLD] GCC PortingAssignee: Gentoo SGML project <sgml>
Status: RESOLVED FIXED    
Severity: normal CC: marduk
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 346809    
Attachments: openjade-1.3.2-gcc46.patch
Patch for openjade's ebuild

Description Ryan Hill (RETIRED) gentoo-dev 2011-03-09 06:25:07 UTC
In 4.6 the compiler no longer allows objects of const-qualified type to be default initialized unless the type has a user-declared default constructor.

TransformFOTBuilder.cxx: In function 'OpenJade_DSSSL::FOTBuilder* OpenJade_DSSSL::makeTransformFOTBuilder(OpenSP::CmdLineApp*, bool, const OpenSP::Vector<OpenSP::String<unsigned int> >&, const OpenJade_DSSSL::FOTBuilder::Extension*&)':
TransformFOTBuilder.cxx:251:66: error: uninitialized const 'pi' [-fpermissive]
TransformFOTBuilder.cxx:57:9: note: 'const class OpenJade_DSSSL::TransformFOTBuilder::ProcessingInstructionFlowObj' has no user-provided default constructor
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2011-03-09 06:27:25 UTC
Created attachment 265261 [details, diff]
openjade-1.3.2-gcc46.patch
Comment 2 Jean-Francis Roy 2011-05-03 02:28:48 UTC
Created attachment 271935 [details, diff]
Patch for openjade's ebuild

I confirm that the proposed patch would resolve the problem, but its format is not valid. The changes are made on two files, but the patch doesn't state which ones.

I used the info in the original patch (thanks for it!) and made one that says which files are patched. This one works on my box, simply modifying openjade's ebuild to apply it.
Comment 3 Christoph Mende (RETIRED) gentoo-dev 2011-05-14 14:51:28 UTC
applied the fixed patch, thanks