Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147984 - x11-misc/3dfb does not compile with gcc 4.1.1
Summary: x11-misc/3dfb does not compile with gcc 4.1.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Sven Wegener
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 117482
  Show dependency tree
 
Reported: 2006-09-17 14:12 UTC by Ian S.
Modified: 2006-09-18 14:39 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian S. 2006-09-17 14:12:10 UTC
I tried to emerge 3dfb today,but it failed with this compilation error:

gui.cpp:73: error: array bound is not an integer constant

The line in question:
------
    static levelLocation levels[fileMap.maxLevels];
------
maxLevels appears to be a static const uint which is set to 1024
when i ctrl-z'ed the ebuild after unpacking, and replaced the line with

------
    static levelLocation levels[1024];
------

Everything seems to work perfectly.

I went back and checked if it worked with gcc 3.4.6, which it does


ps: this is my first bug report, so feel free to tell me what I am doing wrong/should read first.
Comment 1 Sven Wegener gentoo-dev 2006-09-18 14:39:59 UTC
Thanks! I just fixed this in CVS. A bug is good, if it contains all relevant information for us to solve the issue without asking questions. ;) For real bugs it might be valueable to include the output of emerge --info, so that we know how your system configured.