Problem on Mandrake cooker (9.2)

Trying to build your own version of Vega Strike and having problems? Unix users, paste your config.log here (stderr output alone is not helpful).
Post Reply
zeb
Star Pilot
Star Pilot
Posts: 6
Joined: Thu Sep 25, 2003 3:24 pm

Problem on Mandrake cooker (9.2)

Post by zeb »

Hi
On Mandrake close-to-9.2 (using cooker, the frozen develoment version), there is a syntax error problem :

Code: Select all

c++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../src    -I../../../src/boost129  -DHAVE_SDL=1 -DSDL_WINDOWING=1 -DHAVE_SDL_MIXER=1      -DHAVE_AL=1   -I/usr/include/python2.3 -DHAVE_PYTHON=1  -DUSE_BOOST_129=1   -pipe -O3 -fexpensive-optimizations -fomit-frame-pointer -Wall -ffast-math   -I/usr/include/SDL -D_REENTRANT -pipe  -c hard_coded_scripts.cpp
In file included from /usr/include/python2.3/Python.h:8,
                 from ../../../src/python/python_class.h:3,
                 from hard_coded_scripts.cpp:9:
/usr/include/python2.3/pyconfig.h:844:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/math.h:27,
                 from ../../../src/gfx/vec.h:4,
                 from order.h:32,
                 from script.h:3,
                 from hard_coded_scripts.cpp:1:
/usr/include/features.h:131:1: warning: this is the location of the previous definition
In file included from ../../../src/boost129/boost/python/converter/arg_to_python.hpp:22,
                 from ../../../src/boost129/boost/python/call.hpp:14,
                 from ../../../src/boost129/boost/python/object_core.hpp:11,
                 from ../../../src/boost129/boost/python/object.hpp:9,
                 from ../../../src/python/python_class.h:13,
                 from hard_coded_scripts.cpp:9:
../../../src/boost129/boost/python/converter/builtin_converters.hpp:98: error: syntax error before `&' token
../../../src/boost129/boost/python/converter/builtin_converters.hpp:98: error: syntax error before `&' token
../../../src/boost129/boost/python/converter/builtin_converters.hpp:98: error: syntax error before `const'
../../../src/boost129/boost/python/converter/builtin_converters.hpp:98: error: syntax error before `const'
../../../src/boost129/boost/python/converter/builtin_converters.hpp:98: error: syntax error before `>' token
../../../src/boost129/boost/python/converter/builtin_converters.hpp:98: error: syntax error before `>' token
../../../src/boost129/boost/python/converter/builtin_converters.hpp:98: error: syntax error before `}' token
../../../src/boost129/boost/python/converter/builtin_converters.hpp:99: error: syntax error before `&' token
../../../src/boost129/boost/python/converter/builtin_converters.hpp:99: error: syntax error before `&' token
../../../src/boost129/boost/python/converter/builtin_converters.hpp:99: error: syntax error before `const'
../../../src/boost129/boost/python/converter/builtin_converters.hpp:99: error: syntax error before `const'
../../../src/boost129/boost/python/converter/builtin_converters.hpp:99: error: syntax error before `>' token
../../../src/boost129/boost/python/converter/builtin_converters.hpp:99: error: syntax error before `>' token
../../../src/boost129/boost/python/converter/builtin_converters.hpp:99: error: syntax error before `}' token
../../../src/boost129/boost/python/converter/builtin_converters.hpp:104: error: `to_python_value' is not a template
../../../src/boost129/boost/python/converter/builtin_converters.hpp:104: error: `detail' is not a class or namespace
../../../src/boost129/boost/python/converter/builtin_converters.hpp:104: error: `builtin_to_python' is not a class or namespace
../../../src/boost129/boost/python/converter/builtin_converters.hpp:104: error: invalid base-class specification
../../../src/boost129/boost/python/converter/builtin_converters.hpp:104: error: can't make `operator()' into a method -- not in a class
../../../src/boost129/boost/python/converter/builtin_converters.hpp:104: error: `to_python_value' is not a template
../../../src/boost129/boost/python/converter/builtin_converters.hpp:104: error: `detail' is not a class or namespace
../../../src/boost129/boost/python/converter/builtin_converters.hpp:104: error: `builtin_to_python' is not a class or namespace
../../../src/boost129/boost/python/converter/builtin_converters.hpp:104: error: invalid base-class specification
../../../src/boost129/boost/python/converter/builtin_converters.hpp:104: error: can't make `operator()' into a method -- not in a class
../../../src/boost129/boost/python/converter/builtin_converters.hpp:104: error: `arg_to_python' is not a template
../../../src/boost129/boost/python/converter/builtin_converters.hpp:104: error: syntax error before `<' token
../../../src/boost129/boost/python/converter/builtin_converters.hpp:104: error: syntax error before `}' token

[a lot of errors like this...]

hard_coded_scripts.cpp: In constructor `Orders::LoopAround::LoopAround(bool, int)':
hard_coded_scripts.cpp:151: warning: comparison between signed and unsigned integer expressions
make[4]: *** [hard_coded_scripts.o] Erreur 1
make[4]: Leaving directory `/usr/local/src/vegastrike-0.4.1-installer/vegastrike/src/cmd/ai'
make[3]: *** [all-recursive] Erreur 1
make[3]: Leaving directory `/usr/local/src/vegastrike-0.4.1-installer/vegastrike/src/cmd'
make[2]: *** [all-recursive] Erreur 1
make[2]: Leaving directory `/usr/local/src/vegastrike-0.4.1-installer/vegastrike/src'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/usr/local/src/vegastrike-0.4.1-installer/vegastrike'
make: *** [all-recursive-am] Erreur 2
Any idea ?
Thanks for this great game :)
Guest

Post by Guest »

Try add '--enable-boost-128' to 'configure' in the 'setup.sh'-script.

/Magnus
zeb
Star Pilot
Star Pilot
Posts: 6
Joined: Thu Sep 25, 2003 3:24 pm

Post by zeb »

Thank you. However, I have another error :

Code: Select all

c_alike.yacc:132: warning: comparison between signed and unsigned integer expressions
c_alike.yacc:165: warning: comparison between signed and unsigned integer expressions
/usr/lib/bison.simple:614: warning: comparison between signed and unsigned integer expressions
/usr/lib/bison.simple:626: warning: comparison between signed and unsigned integer expressions

cc1plus: out of memory allocating 373696088 bytes after a total of 6252736 bytes
I have seen there are similar errors with Suse, I am going to check the other threads. Thanks.
hellcatv
Developer
Developer
Posts: 3980
Joined: Fri Jan 03, 2003 4:53 am
Location: Stanford, CA
Contact:

Post by hellcatv »

ya you need to copy the command line that fails
cd src/cmd/script/c_alike
then paste it (but remover the -O3 or -O2
that'll fix it

then run the script again
Vega Strike Lead Developer
http://vegastrike.sourceforge.net/
Post Reply