Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 358021 - app-text/openjade-1.3.2-r3 fails to build with GCC 4.6
Summary: app-text/openjade-1.3.2-r3 fails to build with GCC 4.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo SGML project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.6
  Show dependency tree
 
Reported: 2011-03-09 06:25 UTC by Ryan Hill (RETIRED)
Modified: 2011-05-14 14:51 UTC (History)
1 user (show)

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


Attachments
openjade-1.3.2-gcc46.patch (openjade-1.3.2-gcc46.patch,2.20 KB, patch)
2011-03-09 06:27 UTC, Ryan Hill (RETIRED)
Details | Diff
Patch for openjade's ebuild (openjade-1.3.2-gcc46.patch,2.29 KB, patch)
2011-05-03 02:28 UTC, Jean-Francis Roy
Details | Diff

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