Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27015 - crack-attack compile fails with gcc-3.3 (patch)
Summary: crack-attack compile fails with gcc-3.3 (patch)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-20 15:07 UTC by Wedge_
Modified: 2003-08-21 07:50 UTC (History)
0 users

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


Attachments
fixes compile problems with gcc-3.3 (crack-attack-gcc3.3.patch,22.00 KB, patch)
2003-08-20 15:08 UTC, Wedge_
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wedge_ 2003-08-20 15:07:33 UTC
Apparently some C++ headers have been removed in gcc-3.3, and the compilation
fails  with the following message:

In file included from Attack.cxx:43:
TextureLoader.h:7:25: strstream.h: No such file or directory
In file included from Attack.cxx:43:
TextureLoader.h: In static member function `static void 
   TextureLoader::buildLocalDataDirectoryName(char*)':
TextureLoader.h:34: error: `ostrstream' undeclared (first use this function)
TextureLoader.h:34: error: (Each undeclared identifier is reported only once 
   for each function it appears in.)
TextureLoader.h:34: error: parse error before `;' token
TextureLoader.h:36: error: `s' undeclared (first use this function)
TextureLoader.h: In static member function `static void 
   TextureLoader::buildLocalDataFileName(const char*, char*)':
TextureLoader.h:46: error: parse error before `;' token
make[1]: *** [Attack.o] Error 1
make[1]: *** Waiting for unfinished jobs....


Reproducible: Always
Steps to Reproduce:
1. emerge crack-attack (with gcc 3.3)
2.
3.
Comment 1 Wedge_ 2003-08-20 15:08:28 UTC
Created attachment 16388 [details, diff]
fixes compile problems with gcc-3.3
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2003-08-20 17:15:31 UTC
Wouldn't a 

using namespace std;

At the top of the files make for a much smaller patch?
Comment 3 SpanKY gentoo-dev 2003-08-20 17:23:31 UTC
yes, thats how i normally fix these errors with newer gcc's ... 
thx for the patch though, i can just trim out the hunks i dont want :) 
Comment 4 Wedge_ 2003-08-21 01:18:23 UTC
>Wouldn't a 
>using namespace std;
>At the top of the files make for a much smaller patch?
I just found the patch on Google, I didn't make it :)
Comment 5 SpanKY gentoo-dev 2003-08-21 07:50:07 UTC
i added a smaller version of the patch to cvs ... basically it utilizes 'using namespace std' instead of all those std:: ...

cuts the filesize down from 22k to 8k :)

thanks for the patch !