Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275300 - eix-0.16.1 fails to build on IRIX
Summary: eix-0.16.1 fails to build on IRIX
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All IRIX
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-24 16:09 UTC by Stuart Shelton
Modified: 2009-06-28 12:33 UTC (History)
1 user (show)

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


Attachments
eix-0.16.1 patch to fix multiple declaration of 'it' in parse.cc (eix-0.16.1.patch,1.22 KB, patch)
2009-06-24 16:13 UTC, Stuart Shelton
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2009-06-24 16:09:28 UTC
cc-3232 CC: ERROR File = cache/parse/parse.cc, Line = 260
  "it", declared in for-loop initialization, may not be redeclared in this scope.

                vector<BasicCache*>::const_iterator it;
                                                    ^

1 error detected in the compilation of "cache/parse/parse.cc".
make[2]: *** [cache/parse/parse.o] Error 2
make[2]: Leaving directory `/usr/opt/gentoo/var/tmp/portage/app-portage/eix-0.16.1/work/eix-0.16.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/opt/gentoo/var/tmp/portage/app-portage/eix-0.16.1/work/eix-0.16.1'
make: *** [all] Error 2
 * ERROR: app-portage/eix-0.16.1 failed:
 *   emake failed
 * 
 * Call stack:
 *               ebuild.sh: 42: <call src_compile>
 *             environment:841:     emake || die "emake failed"
Comment 1 Stuart Shelton 2009-06-24 16:13:07 UTC
Created attachment 195665 [details, diff]
eix-0.16.1 patch to fix multiple declaration of 'it' in parse.cc


There's no test-suite to check that this works beyond compiling, but how's this patch look?
Comment 2 Martin Väth 2009-06-24 18:04:08 UTC
Thanks, the patch is now in the eix svn trunk (with a different variable name).
It is very strange that gcc-4.4 did not even warn about this obvious violation
(despite all sort of warnings turned on).

Unfortunately, the eix-0.16.2 tarball is already out since some days,
so this patch will probably have to wait until >=eix-0.16.3 (which might
take a long time since currently there are no other issues).
Comment 3 Fabian Groffen gentoo-dev 2009-06-28 12:33:30 UTC
applied it in prefix, thanks