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

Bug 120078

Summary: Wormux fails to build with gcc4.1 (extra qualification on member)
Product: Gentoo Linux Reporter: Konrad Campowsky <frollen>
Component: [OLD] GCC PortingAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal CC: halcy0n
Priority: High    
Version: 2005.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 117482    
Attachments: patch to make the wormux ebuild apply the gcc4.1 patch
patch to make wormux build with gcc4.1

Description Konrad Campowsky 2006-01-23 10:39:27 UTC
When building Wormux, gcc 4.1 complains about some
constructs of the following form:

class X {
void X::someFunc();
};

while it should of course just read:

class X {
void someFunc();
};

The corresponding error messages are:

game/../tool/xml_document.h:45: Fehler: extra qualification 
Comment 1 Konrad Campowsky 2006-01-23 10:39:27 UTC
When building Wormux, gcc 4.1 complains about some
constructs of the following form:

class X {
void X::someFunc();
};

while it should of course just read:

class X {
void someFunc();
};

The corresponding error messages are:

game/../tool/xml_document.h:45: Fehler: extra qualification »LitDocXml::« on Member »LitListeString«
game/../map/maps_list.h:54: Fehler: extra qualification »InfoTerrain::« on member »LitImgTerrain«
game/../map/maps_list.h:55: Fehler: extra qualification »InfoTerrain::« on member »LitImgCiel«
game/../team/../tool/xml_document.h:45: Fehler: extra qualification »LitDocXml::« on member »LitListeString«

I made a patchset
which changes just that and
nothing of the actual code 
and thus should be quite safe to use.
Comment 2 Konrad Campowsky 2006-01-23 10:41:02 UTC
Created attachment 77929 [details, diff]
patch to make the wormux ebuild apply the gcc4.1 patch
Comment 3 Konrad Campowsky 2006-01-23 10:41:35 UTC
Created attachment 77930 [details, diff]
patch to make wormux build with gcc4.1
Comment 4 Mark Loeser (RETIRED) gentoo-dev 2006-01-23 20:39:52 UTC
Looks good.  Did you send the patch upstream?
Comment 5 Mark Loeser (RETIRED) gentoo-dev 2006-02-25 22:18:52 UTC
Fixed, thanks.