Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29523 - bochs 2.0.2 fails to compile with gcc-3.3.1-r1
Summary: bochs 2.0.2 fails to compile with gcc-3.3.1-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Holzer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-24 09:45 UTC by Michal Januszewski (RETIRED)
Modified: 2003-09-29 13:28 UTC (History)
4 users (show)

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


Attachments
A patch that fixes the brace-enclosed initializer problem (bochs-2.0.2-brace.patch,2.15 KB, patch)
2003-09-24 09:49 UTC, Michal Januszewski (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Januszewski (RETIRED) gentoo-dev 2003-09-24 09:45:51 UTC
When trying to compile bochs with gcc-3.3.1, one gets the following errors:

fetchdecode.cc:165: error: brace-enclosed initializer used to initialize `void
   (*)(bxInstruction_c*)'
fetchdecode.cc:165: error: brace-enclosed initializer used to initialize `void
   (*)(bxInstruction_c*)'
[.. repeated a few times - for line 170, 175, ..]

The attached patch fixes this problem.
Comment 1 Michal Januszewski (RETIRED) gentoo-dev 2003-09-24 09:49:32 UTC
Created attachment 18268 [details, diff]
A patch that fixes the brace-enclosed initializer problem

Note that this will probably break bochs with gcc < 3.3.1. Some kind of gcc
version detection might be necessary to be included in the ebuild.
Comment 2 Brandy Westcott (RETIRED) gentoo-dev 2003-09-24 20:00:28 UTC
The patch works fine on my machine using both gcc-3.3.1 and gcc-3.2.3 
 
In fact, I don't think we can expect any surprises from it since the 
upstream cvs version has also removed the extra braces. 
( http://cvs.sourceforge.net/viewcvs.py/bochs/bochs/cpu/fetchdecode.cc ) 
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-09-29 13:28:42 UTC
in cvs