Ubuntu 9.10 Error in ./boost/1_35/boost/mpl/apply_wrap.hpp

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
ChristianKG
Just a tourist with a frag'd nav console
Just a tourist with a frag'd nav console
Posts: 3
Joined: Tue Nov 10, 2009 8:08 pm

Ubuntu 9.10 Error in ./boost/1_35/boost/mpl/apply_wrap.hpp

Post by ChristianKG »

Hello,
i'm, trying to compile VS on Ubuntu Karmic.
My first steps:

Code: Select all

sudo apt-get install libpng12-0 libpng12-dev python2.5-dev libexpat1-dev libjpeg62-dev glutg3-dev libopenal-dev libgtk2.0-dev libogg-dev libvorbis-dev build-essential libgl1-mesa-dev automake autoconf
svn co https://vegastrike.svn.sourceforge.net/svnroot/vegastrike/trunk/data
svn co https://vegastrike.svn.sourceforge.net/svnroot/vegastrike/trunk/vegastrike
svn update vegastrike/boost/1_35
cd vegastrike
./bootstrap-sh
./configure --enable-flags='-O3 -g' --with-data-dir=/root/VegaStrike/data/ // i have no disk space left in /home :-p
Then i run "make" and get the error:

Code: Select all

root@christian-desktop:/root/VegaStrike/vegastrike# make
make  all-am
make[1]: Betrete Verzeichnis '/root/VegaStrike/vegastrike'
depbase=`echo boost/1_35/src/list.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
	g++ -DHAVE_CONFIG_H -I.   -DBOOST_PYTHON_NO_PY_SIGNATURES -DBOOST_PYTHON_STATIC_LIB -I./boost/1_35    -DHAVE_SDL=1 -DSDL_WINDOWING=1      -DHAVE_AL=1   -DHAVE_OGG  -DDATA_DIR=\"/root/VegaStrike/data/\"  -I/usr/include/python2.5 -DHAVE_PYTHON=1    -I./src   -pipe -O3 -g -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -pthread -MT boost/1_35/src/list.o -MD -MP -MF $depbase.Tpo -c -o boost/1_35/src/list.o boost/1_35/src/list.cpp &&\
	mv -f $depbase.Tpo $depbase.Po
In file included from ./boost/1_35/boost/mpl/apply.hpp:23,
                 from ./boost/1_35/boost/python/object/pointer_holder.hpp:27,
                 from ./boost/1_35/boost/python/to_python_indirect.hpp:10,
                 from ./boost/1_35/boost/python/converter/arg_to_python.hpp:10,
                 from ./boost/1_35/boost/python/call.hpp:15,
                 from ./boost/1_35/boost/python/object_core.hpp:12,
                 from ./boost/1_35/boost/python/object.hpp:9,
                 from ./boost/1_35/boost/python/list.hpp:10,
                 from boost/1_35/src/list.cpp:5:
./boost/1_35/boost/mpl/apply_wrap.hpp:81:31: error: missing binary operator before token "("
./boost/1_35/boost/mpl/apply_wrap.hpp:173:31: error: missing binary operator before token "("
In file included from ./boost/1_35/boost/mpl/bind.hpp:27,
                 from ./boost/1_35/boost/mpl/lambda.hpp:18,
                 from ./boost/1_35/boost/mpl/apply.hpp:25,
                 from ./boost/1_35/boost/python/object/pointer_holder.hpp:27,
                 from ./boost/1_35/boost/python/to_python_indirect.hpp:10,
                 from ./boost/1_35/boost/python/converter/arg_to_python.hpp:10,
                 from ./boost/1_35/boost/python/call.hpp:15,
                 from ./boost/1_35/boost/python/object_core.hpp:12,
                 from ./boost/1_35/boost/python/object.hpp:9,
                 from ./boost/1_35/boost/python/list.hpp:10,
                 from boost/1_35/src/list.cpp:5:
./boost/1_35/boost/mpl/apply_wrap.hpp:81:31: error: missing binary operator before token "("
./boost/1_35/boost/mpl/apply_wrap.hpp:173:31: error: missing binary operator before token "("
In file included from ./boost/1_35/boost/mpl/lambda.hpp:18,
                 from ./boost/1_35/boost/mpl/apply.hpp:25,
                 from ./boost/1_35/boost/python/object/pointer_holder.hpp:27,
                 from ./boost/1_35/boost/python/to_python_indirect.hpp:10,
                 from ./boost/1_35/boost/python/converter/arg_to_python.hpp:10,
                 from ./boost/1_35/boost/python/call.hpp:15,
                 from ./boost/1_35/boost/python/object_core.hpp:12,
                 from ./boost/1_35/boost/python/object.hpp:9,
                 from ./boost/1_35/boost/python/list.hpp:10,
                 from boost/1_35/src/list.cpp:5:
./boost/1_35/boost/mpl/bind.hpp:364:31: error: missing binary operator before token "("
./boost/1_35/boost/mpl/bind.hpp:531:31: error: missing binary operator before token "("
In file included from ./boost/1_35/boost/mpl/lambda.hpp:22,
                 from ./boost/1_35/boost/mpl/apply.hpp:25,
                 from ./boost/1_35/boost/python/object/pointer_holder.hpp:27,
                 from ./boost/1_35/boost/python/to_python_indirect.hpp:10,
                 from ./boost/1_35/boost/python/converter/arg_to_python.hpp:10,
                 from ./boost/1_35/boost/python/call.hpp:15,
                 from ./boost/1_35/boost/python/object_core.hpp:12,
                 from ./boost/1_35/boost/python/object.hpp:9,
                 from ./boost/1_35/boost/python/list.hpp:10,
                 from boost/1_35/src/list.cpp:5:
./boost/1_35/boost/mpl/aux_/full_lambda.hpp:230:32: error: missing binary operator before token "("
In file included from ./boost/1_35/boost/python/object/pointer_holder.hpp:27,
                 from ./boost/1_35/boost/python/to_python_indirect.hpp:10,
                 from ./boost/1_35/boost/python/converter/arg_to_python.hpp:10,
                 from ./boost/1_35/boost/python/call.hpp:15,
                 from ./boost/1_35/boost/python/object_core.hpp:12,
                 from ./boost/1_35/boost/python/object.hpp:9,
                 from ./boost/1_35/boost/python/list.hpp:10,
                 from boost/1_35/src/list.cpp:5:
./boost/1_35/boost/mpl/apply.hpp:138:32: error: missing binary operator before token "("
boost/1_35/src/list.cpp: In static member function ‘static boost::python::detail::new_non_null_reference_t* boost::python::detail::list_base::call(const boost::python::api::object&)’:
boost/1_35/src/list.cpp:17: warning: deprecated conversion from string constant to ‘char*’
make[1]: *** [boost/1_35/src/list.o] Fehler 1
make[1]: Verlasse Verzeichnis '/root/VegaStrike/vegastrike'
make: *** [all] Fehler 2
Here is my config.log: http://etchris.dyndns.org/upload/files/ ... config.log

Thanks for help and sorry for my bad english :mrgreen:
ace123
Lead Network Developer
Lead Network Developer
Posts: 2560
Joined: Sun Jan 12, 2003 9:13 am
Location: Palo Alto CA
Contact:

Re: Ubuntu 9.10 Error in ./boost/1_35/boost/mpl/apply_wrap.hpp

Post by ace123 »

I committed a patch that should fix the compile errors with boost 1.35

Could you update and give it a try?
ChristianKG
Just a tourist with a frag'd nav console
Just a tourist with a frag'd nav console
Posts: 3
Joined: Tue Nov 10, 2009 8:08 pm

Re: Ubuntu 9.10 Error in ./boost/1_35/boost/mpl/apply_wrap.hpp

Post by ChristianKG »

Hello,
now i get this error:

Code: Select all

make[1]: Betrete Verzeichnis '/root/VegaStrike/vegastrike'
depbase=`echo boost/1_35/src/list.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
	g++ -DHAVE_CONFIG_H -I.   -DBOOST_PYTHON_NO_PY_SIGNATURES -DBOOST_PYTHON_STATIC_LIB -I./boost/1_35    -DHAVE_SDL=1 -DSDL_WINDOWING=1      -DHAVE_AL=1   -DHAVE_OGG  -DDATA_DIR=\"/root/VegaStrike/data/\"  -I/usr/include/python2.5 -DHAVE_PYTHON=1    -I./src   -pipe -O3 -g -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -pthread -MT boost/1_35/src/list.o -MD -MP -MF $depbase.Tpo -c -o boost/1_35/src/list.o boost/1_35/src/list.cpp &&\
	mv -f $depbase.Tpo $depbase.Po
In file included from ./boost/1_35/boost/mpl/lambda.hpp:22,
                 from ./boost/1_35/boost/mpl/apply.hpp:25,
                 from ./boost/1_35/boost/python/object/pointer_holder.hpp:27,
                 from ./boost/1_35/boost/python/to_python_indirect.hpp:10,
                 from ./boost/1_35/boost/python/converter/arg_to_python.hpp:10,
                 from ./boost/1_35/boost/python/call.hpp:15,
                 from ./boost/1_35/boost/python/object_core.hpp:12,
                 from ./boost/1_35/boost/python/object.hpp:9,
                 from ./boost/1_35/boost/python/list.hpp:10,
                 from boost/1_35/src/list.cpp:5:
./boost/1_35/boost/mpl/aux_/full_lambda.hpp:230:32: error: missing binary operator before token "("
./boost/1_35/boost/mpl/aux_/full_lambda.hpp:351:2: error: #endif without #if
In file included from ./boost/1_35/boost/python/object/pointer_holder.hpp:27,
                 from ./boost/1_35/boost/python/to_python_indirect.hpp:10,
                 from ./boost/1_35/boost/python/converter/arg_to_python.hpp:10,
                 from ./boost/1_35/boost/python/call.hpp:15,
                 from ./boost/1_35/boost/python/object_core.hpp:12,
                 from ./boost/1_35/boost/python/object.hpp:9,
                 from ./boost/1_35/boost/python/list.hpp:10,
                 from boost/1_35/src/list.cpp:5:
./boost/1_35/boost/mpl/apply.hpp:138:32: error: missing binary operator before token "("
./boost/1_35/boost/mpl/apply.hpp:225:2: error: #endif without #if
In file included from ./boost/1_35/boost/mpl/aux_/iter_fold_impl.hpp:19,
                 from ./boost/1_35/boost/mpl/iter_fold.hpp:21,
                 from ./boost/1_35/boost/mpl/distance.hpp:18,
                 from ./boost/1_35/boost/mpl/aux_/size_impl.hpp:19,
                 from ./boost/1_35/boost/mpl/size.hpp:19,
                 from ./boost/1_35/boost/python/detail/signature.hpp:21,
                 from ./boost/1_35/boost/python/detail/caller.hpp:17,
                 from ./boost/1_35/boost/python/object/function_handle.hpp:8,
                 from ./boost/1_35/boost/python/converter/arg_to_python.hpp:19,
                 from ./boost/1_35/boost/python/call.hpp:15,
                 from ./boost/1_35/boost/python/object_core.hpp:12,
                 from ./boost/1_35/boost/python/object.hpp:9,
                 from ./boost/1_35/boost/python/list.hpp:10,
                 from boost/1_35/src/list.cpp:5:
./boost/1_35/boost/mpl/apply.hpp:225:2: error: #endif without #if
In file included from ./boost/1_35/boost/python/detail/caller.hpp:37,
                 from ./boost/1_35/boost/python/object/function_handle.hpp:8,
                 from ./boost/1_35/boost/python/converter/arg_to_python.hpp:19,
                 from ./boost/1_35/boost/python/call.hpp:15,
                 from ./boost/1_35/boost/python/object_core.hpp:12,
                 from ./boost/1_35/boost/python/object.hpp:9,
                 from ./boost/1_35/boost/python/list.hpp:10,
                 from boost/1_35/src/list.cpp:5:
./boost/1_35/boost/mpl/apply.hpp:225:2: error: #endif without #if
boost/1_35/src/list.cpp: In static member function ‘static boost::python::detail::new_non_null_reference_t* boost::python::detail::list_base::call(const boost::python::api::object&)’:
boost/1_35/src/list.cpp:17: warning: deprecated conversion from string constant to ‘char*’
make[1]: *** [boost/1_35/src/list.o] Fehler 1
make[1]: Verlasse Verzeichnis '/root/VegaStrike/vegastrike'
make: *** [all] Fehler 2
ChristianKG
Just a tourist with a frag'd nav console
Just a tourist with a frag'd nav console
Posts: 3
Joined: Tue Nov 10, 2009 8:08 pm

Re: Ubuntu 9.10 Error in ./boost/1_35/boost/mpl/apply_wrap.hpp

Post by ChristianKG »

i change line 138 in boost/1_35/boost/mpl/apply.hpp to

Code: Select all

# elif BOOST_PP_ITERATION_DEPTH == 1
and delete line 225.
And i change line 230 in boost/1_35/boost/mpl/aux_/full_lambda.hpp to

Code: Select all

# elif BOOST_PP_ITERATION_DEPTH == 1
and delete line 351.
i realy don't know if this was a good idea, but it works :mrgreen:
Post Reply