Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 116209 - xarchon-0.60 doesn't compile on gcc-3.4
Summary: xarchon-0.60 doesn't compile on gcc-3.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-20 15:12 UTC by gentoo-bugs
Modified: 2006-03-15 10:42 UTC (History)
0 users

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


Attachments
01_all_gcc34.patch (01_all_gcc34.patch,3.73 KB, patch)
2006-03-14 13:23 UTC, Tupone Alfredo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description gentoo-bugs 2005-12-20 15:12:57 UTC
xarchon-0.60 does not compile on gcc-3.4, although it does (and runs fine) on gcc-3.3. This is the relevant part of the compilation:

i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..     -march=athlon-xp -O3 -pipe -Wall -c -o Xarchon_Problem.o `test -f Xarchon_Problem.cpp || echo './'`Xarchon_Problem.cpp
In file included from Xarchon_Problem.hpp:16,
                 from Xarchon_Problem.cpp:1:
Problem.hpp: In member function `virtual G Minimax_Goal_Test<G, T>::Goal_Value(T*)':
Problem.hpp:309: error: `tester' undeclared (first use this function)
Problem.hpp:309: error: (Each undeclared identifier is reported only once for each function it appears in.)
Problem.hpp:312: error: `generator' undeclared (first use this function)
Problem.hpp:312: error: `goal_acc' undeclared (first use this function)
Problem.hpp:316: error: `next' undeclared (first use this function)
Problem.hpp: In member function `virtual G Multi_Minimax_Goal_Test<G, T>::Goal_Value(T*)':
Problem.hpp:343: error: `goal_acc' undeclared (first use this function)
Problem.hpp:350: error: `d' undeclared (first use this function)
Problem.hpp:350: error: `b' undeclared (first use this function)
Problem.hpp:350: error: `gen' undeclared (first use this function)
Problem.hpp:350: error: `tester' undeclared (first use this function)
Problem.hpp:352: error: `accumulator' undeclared (first use this function)
Problem.hpp:352: error: `acc' undeclared (first use this function)
In file included from Xarchon_Genetic.hpp:6,
                 from Xarchon_Interface.hpp:6,
                 from Xarchon_Problem.cpp:2:
Genetic.hpp: In member function `virtual Genetic_Operator<T>* Genetic_Generation<T>::Choose_Operator()':
Genetic.hpp:219: error: expected `;' before "start"
Genetic.hpp:220: error: expected `;' before "end"
Genetic.hpp:221: error: expected `;' before "iter"
Genetic.hpp:224: error: `iter' undeclared (first use this function)
Genetic.hpp:224: error: `start' undeclared (first use this function)
Genetic.hpp:224: error: `end' undeclared (first use this function)
Genetic.hpp: In member function `virtual Genetic_Population<T>* Genetic_Generation_a<T>::Operate(Genetic_Population<T>*)':
Genetic.hpp:252: error: there are no arguments to `Choose_Operator' that depend on a template parameter, so a declaration of `Choose_Operator' must be available
Genetic.hpp:252: error: (if you use `-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
Genetic.hpp:267: error: `fit_func' undeclared (first use this function)
Comment 1 Tupone Alfredo gentoo-dev 2006-03-14 13:23:16 UTC
Created attachment 82139 [details, diff]
01_all_gcc34.patch

This patch fix emerging of xarchon

I was not able to play with it, as I got:

canvas_font_load():  cannot load font `-misc-fixed-medium-*-normal-*-15-0-*-*-*-*-iso8859-1'

If somebody can test that, I can put the patch in portage
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2006-03-14 13:57:27 UTC
Are you using modular X?
Comment 3 Tupone Alfredo gentoo-dev 2006-03-15 10:42:38 UTC
Fixed in CVS