Error building 0.4.3 under FreeBSD5.4-stable

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
andrew-sj
Star Pilot
Star Pilot
Posts: 4
Joined: Sat Oct 08, 2005 8:26 pm

Error building 0.4.3 under FreeBSD5.4-stable

Post by andrew-sj »

subj.
gcc --version
gcc (GCC) 3.4.2 [FreeBSD] 20040728
python-2.4.2
jpeg-6b_3
png-1.2.8_1
libvorbis-1.0.1,3
libogg-1.1.2_1,3
openal-20050202
libglut-6.0.1
sdl-1.2.7_1,1
nvidia-driver-1.0.7174
make
make all-recursive
Making all in src
Making all in cmd
Making all in ai
if g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -DHAVE_SDL=1 -DSDL_WINDOWING=1 -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/local/include -I/usr/local/include/libpng -I/usr/local/include -DJPEG_SUPPORT -DUSE_STENCIL_BUFFER=1 -DDATA_DIR=\"/home/root/Dev/Vegastrike/data.4x\" -I/usr/local/include/python2.4 -DHAVE_PYTHON=1 -DUSE_BOOST_131=1 -I../../../src/boost129 -I../../../src -pipe -O2 -ffast-math -falign-loops=2 -falign-jumps=2 -falign-functions=2 -I/usr/local/include/SDL11 -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -pthread -pipe -MT hard_coded_scripts.o -MD -MP -MF ".deps/hard_coded_scripts.Tpo" -c -o hard_coded_scripts.o hard_coded_scripts.cpp; then mv -f ".deps/hard_coded_scripts.Tpo" ".deps/hard_coded_scripts.Po"; else rm -f ".deps/hard_coded_scripts.Tpo"; exit 1; fi
In file included from ../../../src/boost129/boost/config.hpp:57,
from ../../../src/boost129/boost/python/detail/config.hpp:15,
from ../../../src/boost129/boost/python/detail/prefix.hpp:14,
from ../../../src/boost129/boost/python/object.hpp:9,
from ../../../src/python/python_class.h:16,
from hard_coded_scripts.cpp:9:
In file included from ../../../src/boost129/boost/python/detail/prefix.hpp:14,
from ../../../src/boost129/boost/python/object.hpp:9,
from ../../../src/python/python_class.h:16,
from hard_coded_scripts.cpp:9:
../../../src/boost129/boost/python/detail/config.hpp:103:2: warning: #warning BOOST_PYTHON_OFFSETOF set to not offsetof
In file included from ../../../src/boost129/boost/python/to_python_indirect.hpp:13,
from ../../../src/boost129/boost/python/converter/arg_to_python.hpp:11,
from ../../../src/boost129/boost/python/call.hpp:16,
from ../../../src/boost129/boost/python/object_core.hpp:13,
from ../../../src/boost129/boost/python/object.hpp:10,
from ../../../src/python/python_class.h:16,
from hard_coded_scripts.cpp:9:
../../../src/boost129/boost/python/object/instance.hpp:47: error: a casts to a type other than an integral or enumeration type cannot appear in a constant-expression
../../../src/boost129/boost/python/object/instance.hpp:47: error: '->' cannot appear in a constant-expression
../../../src/boost129/boost/python/object/instance.hpp:47: error: `&' cannot appear in a constant-expression
In file included from ../../../src/boost129/boost/python/converter/registry.hpp:10,
from ../../../src/boost129/boost/python/converter/registered.hpp:9,
from ../../../src/boost129/boost/python/to_python_indirect.hpp:14,
from ../../../src/boost129/boost/python/converter/arg_to_python.hpp:11,
from ../../../src/boost129/boost/python/call.hpp:16,
from ../../../src/boost129/boost/python/object_core.hpp:13,
from ../../../src/boost129/boost/python/object.hpp:10,
from ../../../src/python/python_class.h:16,
from hard_coded_scripts.cpp:9:
../../../src/boost129/boost/python/converter/rvalue_from_python_data.hpp:100: error: '->' cannot appear in a constant-expression
../../../src/boost129/boost/python/converter/rvalue_from_python_data.hpp:100: error: `&' cannot appear in a constant-expression
../../../src/boost129/boost/python/converter/rvalue_from_python_data.hpp:100: error: template argument 1 is invalid
../../../src/boost129/boost/python/converter/rvalue_from_python_data.hpp:100: error: ISO C++ forbids declaration of `type name' with no type
*** Error code 1
You do not have the required permissions to view the files attached to this post.
andrew-sj
Star Pilot
Star Pilot
Posts: 4
Joined: Sat Oct 08, 2005 8:26 pm

Post by andrew-sj »

I am trying cvs version of VegaStrike. It's doesn't work :(
Errors are same.
Please, help... :cry:
ps: I am trying to compile with gcc3.4. It's not work too. :(
ps2: Now I can see - vegastrike working only on freebsd 6.0.
So I will trying to upgrade to it.
Anyway, I was thinking about updating for a long time ;)
loki1950
The Shepherd
Posts: 5841
Joined: Fri May 13, 2005 8:37 pm
Location: Ottawa
Contact:

Post by loki1950 »

@andrew-sj your config log did not stick so just copy paste it into the body of your post souceforge has a new policy of no attachments. that should give us more info.i am a bit of a neewbie to the unix compile cycle myself but i have both 0.4.3 and CVS versions runnnig under FC4 and gcc4.0 hope this helps.

Enjoy the Choice :)

edit #1 @andrewsj it appearrs that attachments now work see this thread http://vegastrike.sourceforge.net/forum ... php?t=5628 luck :)
andrew-sj
Star Pilot
Star Pilot
Posts: 4
Joined: Sat Oct 08, 2005 8:26 pm

Post by andrew-sj »

Now I upgrade to fbsd 6.0 - vegstrike works well.
But, before upgrade, I found solution for this problem - it's
simple. ;) I found in fbsd6.0 sources (/usr/include/sys/cdefs.h) definition of macros __offsetof, which is used by offsetof, which is used by BOOST_PYTHON_OFFSETOF.
#ifndef __cplusplus
#define __offsetof(type, field) ((size_t)(&((type *)0)->field))
#else
#define __offsetof(type, field) \
(__offsetof__ (reinterpret_cast <size_t> \
(&reinterpret_cast <const volatile char &> \
(static_cast<type *> (0)->field))))
#endif
Insert it in file where error is getting - it's compiling successfull.
But, I unsure - is it last error, or not, because freebsd6.0 world&kernel
was finished building and I install it.
When I will have time, I make port for vegastrike for freebsd.
Anything-who-have-fbsd5.4 please, test - is fixed error last?
ps. Sorry, my english isn't good ;)
loki1950
The Shepherd
Posts: 5841
Joined: Fri May 13, 2005 8:37 pm
Location: Ottawa
Contact:

Post by loki1950 »

great to hear that you got it working.

Enjoy the Choice :)
Post Reply