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

Bug 65930

Summary: simgear-0.3.4 fails to compile with gcc-3.4.x
Product: Gentoo Linux Reporter: iago <iagofrombrad>
Component: Current packagesAssignee: Seemant Kulleen (RETIRED) <seemant>
Status: RESOLVED DUPLICATE    
Severity: normal CC: axa1981, toolchain
Priority: High    
Version: unspecified   
Hardware: PPC   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: A little patch to solve the above errors.
Other errors raised after patching simgear-0.3.4

Description iago 2004-09-30 09:06:26 UTC
props.cxx:74: error: too few template-parameter-lists
props.cxx:74: error: expected `,' or `;' before '=' token
props.cxx:75: error: too few template-parameter-lists
props.cxx:75: error: expected `,' or `;' before '=' token
props.cxx:76: error: too few template-parameter-lists
props.cxx:76: error: expected `,' or `;' before '=' token
props.cxx:77: error: too few template-parameter-lists
props.cxx:77: error: expected `,' or `;' before '=' token
props.cxx:78: error: too few template-parameter-lists
props.cxx:78: error: expected `,' or `;' before '=' token
props.cxx:79: error: too few template-parameter-lists
props.cxx:79: error: expected `,' or `;' before '=' token


Reproducible: Always
Steps to Reproduce:
1.emerge simgear
2.
3.

Actual Results:  
I can't get no more output. It fails to compile, so building the ebuild isn't ok.
Comment 1 iago 2004-09-30 13:44:26 UTC
const bool SGRawValue<bool>::DefaultValue = false;
const int SGRawValue<int>::DefaultValue = 0;
const long SGRawValue<long>::DefaultValue = 0L;
const float SGRawValue<float>::DefaultValue = 0.0;
const double SGRawValue<double>::DefaultValue = 0.0L;
const char * const SGRawValue<const char *>::DefaultValue = "";

these are the lines of code those produce the errors above. I don't know enough C++ to tell what is wrong with DefaultValue. If someone knows, the solution is obvious.
Comment 2 iago 2004-10-01 14:11:50 UTC
Created attachment 40890 [details, diff]
A little patch to solve the above errors.

This patch solves the bugs above. But It means only to raise other errors. So I
think a better solution is to use simgear-0.3.5 instead of 0.3. 4. I think this
is related to a change in the compiler version used.
Comment 3 iago 2004-10-01 14:15:23 UTC
Created attachment 40891 [details]
Other errors raised after patching simgear-0.3.4

These are other errors those appear after I patch simgear.
These aren't related to the previous bug, except for a thing. I think the
compiler used is the real issue, and that simgear-0.3.4 isn't compatible with
gcc-3.4.1, which is used under ppc arch. The next version, simgear-0.3.5,
compiles without errors on ppc.
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2004-10-21 13:27:13 UTC
simgear-0.3.5 and 0.3.6 are in portatge (along with the flightgear versions that depend on those).  please test and report in bug #67809

*** This bug has been marked as a duplicate of 67809 ***