View previous topic :: View next topic |
Author |
Message |
Lockup Guru
Joined: 25 Jul 2002 Posts: 430
|
Posted: Sat Apr 17, 2004 10:58 pm Post subject: crystalspace-cvs compile fails in 2 places(shader/python) |
|
|
When i try to compile crystalspace-cvs, i end up with the following error(ive included the whole compile section):
Code: |
*-------------------------------------------------------------------------*
Building Crystal Space Python module
Building for UNIX/GCC/X86 in optimize mode
*-------------------------------------------------------------------------*
In file included from /usr/include/python2.3/Python.h:8,
from plugins/cscript/cspython/cspython.cpp:19:
/usr/include/python2.3/pyconfig.h:847:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/stdio.h:28,
from plugins/cscript/cspython/cspython.cpp:18:
/usr/include/features.h:131:1: warning: this is the location of the previous definition
g++ -c -o out/UNIX/X86/optimize/pytocs.o plugins/cscript/cspython/pytocs.cpp -D__CRYSTAL_SPACE__ -Wall -Wno-unknown-pragmas -pipe -march=i586 -I/usr/local/include -fno-exceptions -O3 -fomit-frame-pointer -ffast-math -I. -I./apps -I./include -I./libs -I./plugins -I/usr/include/python2.3 -DSWIG_GLOBAL
swig -python -c++ -shadow -I./include -o out/UNIX/X86/derived/python/cs_pyth.cpp \
./include/ivaria/cspace.i
In file included from /usr/include/python2.3/Python.h:8,
from plugins/cscript/cspython/pytocs.cpp:25:
/usr/include/python2.3/pyconfig.h:847:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/stdint.h:26,
from include/cstypes.h:102,
from include/csdef.h:27,
from include/cssysdef.h:26,
from plugins/cscript/cspython/pytocs.cpp:20:
/usr/include/features.h:131:1: warning: this is the location of the previous definition
Generate python cs-config extension...
swig -python -c++ -shadow -I./include -o out/UNIX/X86/derived/python/cs_pyth.cpp \
./include/ivaria/cspace.i
sed -f out/UNIX/X86/derived/python/cspython.sed < out/UNIX/X86/derived/python/cs_pyth.cpp > out/UNIX/X86/derived/python/cs_pyth.cpp.sed
sed -f out/UNIX/X86/derived/python/cspython.sed < out/UNIX/X86/derived/python/cs_pyth.cpp > out/UNIX/X86/derived/python/cs_pyth.cpp.sed
rm -f out/UNIX/X86/derived/python/cs_pyth.cpp
mv out/UNIX/X86/derived/python/cs_pyth.cpp.sed out/UNIX/X86/derived/python/cs_pyth.cpp
swig -python -c++ -shadow -I./include -o out/UNIX/X86/derived/python/cs_pyth.cpp \
./include/ivaria/cspace.i
rm -f out/UNIX/X86/derived/python/cs_pyth.cpp
mv out/UNIX/X86/derived/python/cs_pyth.cpp.sed out/UNIX/X86/derived/python/cs_pyth.cpp
mv: cannot stat `out/UNIX/X86/derived/python/cs_pyth.cpp.sed': No such file or directory
make[1]: *** [out/UNIX/X86/derived/python/cs_pyth.cpp] Error 1
make: *** [cspython] Error 2
make: *** Waiting for unfinished jobs....
sed -f out/UNIX/X86/derived/python/cspython.sed < out/UNIX/X86/derived/python/cs_pyth.cpp > out/UNIX/X86/derived/python/cs_pyth.cpp.sed
rm -f out/UNIX/X86/derived/python/cs_pyth.cpp
mv out/UNIX/X86/derived/python/cs_pyth.cpp.sed out/UNIX/X86/derived/python/cs_pyth.cpp
python ./plugins/cscript/cspython/pythmod_setup.py \
g++ \
out/UNIX/X86/derived/python \
. \
./include ./include out/UNIX/X86/optimize -- \
out/UNIX/X86/optimize -- \
cstool csgfx csgeom csutil -- \
-- \
-- \
build -q --build-base=out/UNIX/X86/optimize/python \
install -q --install-lib=out/UNIX/X86/python
running build
running build_py
creating out/UNIX/X86/optimize/python/lib.linux-i686-2.3
copying out/UNIX/X86/derived/python/cspace.py -> out/UNIX/X86/optimize/python/lib.linux-i686-2.3
running build_ext
building '_cspace' extension
creating out/UNIX/X86/optimize/python/temp.linux-i686-2.3
creating out/UNIX/X86/optimize/python/temp.linux-i686-2.3/out
creating out/UNIX/X86/optimize/python/temp.linux-i686-2.3/out/UNIX
creating out/UNIX/X86/optimize/python/temp.linux-i686-2.3/out/UNIX/X86
creating out/UNIX/X86/optimize/python/temp.linux-i686-2.3/out/UNIX/X86/derived
creating out/UNIX/X86/optimize/python/temp.linux-i686-2.3/out/UNIX/X86/derived/python
creating out/UNIX/X86/optimize/python/temp.linux-i686-2.3/plugins
creating out/UNIX/X86/optimize/python/temp.linux-i686-2.3/plugins/cscript
creating out/UNIX/X86/optimize/python/temp.linux-i686-2.3/plugins/cscript/cspython
gcc -fno-strict-aliasing -DNDEBUG -D__CRYSTAL_SPACE__ -Wall -Wno-unknown-pragmas -pipe -march=i586 -I/usr/local/include -fno-exceptions -O3 -fomit-frame-pointer -ffast-math -fPIC -I./include -I./include -Iout/UNIX/X86/optimize -I/usr/include/python2.3 -c ./plugins/cscript/cspython/pythmod.cpp -o out/UNIX/X86/optimize/python/temp.linux-i686-2.3/./plugins/cscript/cspython/pythmod.o
gcc -fno-strict-aliasing -DNDEBUG -D__CRYSTAL_SPACE__ -Wall -Wno-unknown-pragmas -pipe -march=i586 -I/usr/local/include -fno-exceptions -O3 -fomit-frame-pointer -ffast-math -fPIC -I./include -I./include -Iout/UNIX/X86/optimize -I/usr/include/python2.3 -c out/UNIX/X86/derived/python/cs_pyth.cpp -o out/UNIX/X86/optimize/python/temp.linux-i686-2.3/out/UNIX/X86/derived/python/cs_pyth.o
In file included from out/UNIX/X86/derived/python/cs_pyth.cpp:1192:
include/inetwork/socket2.h:26:3: warning: #warning This file is deprecated please use iNetworkSocket
out/UNIX/X86/derived/python/cs_pyth.cpp: In function `PyObject*
_wrap_iClipper2D_Clip__SWIG_0(PyObject*, PyObject*)':
out/UNIX/X86/derived/python/cs_pyth.cpp:37491: warning: unused variable `
csVector2*ptr3'
out/UNIX/X86/derived/python/cs_pyth.cpp: In function `PyObject*
_wrap_iClipper2D_Clip__SWIG_1(PyObject*, PyObject*)':
out/UNIX/X86/derived/python/cs_pyth.cpp:37559: warning: unused variable `
csVector2*ptr3'
out/UNIX/X86/derived/python/cs_pyth.cpp: In function `PyObject*
_wrap_iClipper2D_Clip__SWIG_2(PyObject*, PyObject*)':
out/UNIX/X86/derived/python/cs_pyth.cpp:37632: warning: unused variable `
csVector2*ptr3'
out/UNIX/X86/derived/python/cs_pyth.cpp: In function `PyObject*
_wrap_csInitializer_CreateEnvironment(PyObject*, PyObject*)':
out/UNIX/X86/derived/python/cs_pyth.cpp:30535: warning: `char**arg2' might be
used uninitialized in this function
out/UNIX/X86/derived/python/cs_pyth.cpp: In function `PyObject*
_wrap_csInitializer_InitializeSCF(PyObject*, PyObject*)':
out/UNIX/X86/derived/python/cs_pyth.cpp:30580: warning: `char**arg2' might be
used uninitialized in this function
out/UNIX/X86/derived/python/cs_pyth.cpp: In function `PyObject*
_wrap_csInitializer_CreateCommandLineParser(PyObject*, PyObject*)':
out/UNIX/X86/derived/python/cs_pyth.cpp:30691: warning: `char**arg3' might be
used uninitialized in this function
out/UNIX/X86/derived/python/cs_pyth.cpp: In function `PyObject*
_wrap_scfInitialize__SWIG_1(PyObject*, PyObject*)':
out/UNIX/X86/derived/python/cs_pyth.cpp:2768: warning: `char**arg2' might be
used uninitialized in this function
g++ -pthread -shared -D__CRYSTAL_SPACE__ -Wall -Wno-unknown-pragmas -pipe -march=i586 -I/usr/local/include -fno-exceptions -O3 -fomit-frame-pointer -ffast-math out/UNIX/X86/optimize/python/temp.linux-i686-2.3/out/UNIX/X86/derived/python/cs_pyth.o out/UNIX/X86/optimize/python/temp.linux-i686-2.3/./plugins/cscript/cspython/pythmod.o -Lout/UNIX/X86/optimize -lcstool -lcsgfx -lcsgeom -lcsutil -o out/UNIX/X86/optimize/python/lib.linux-i686-2.3/_cspace.so
running install
running install_lib
copying out/UNIX/X86/optimize/python/lib.linux-i686-2.3/cspace.py -> out/UNIX/X86/python
copying out/UNIX/X86/optimize/python/lib.linux-i686-2.3/_cspace.so -> out/UNIX/X86/python
byte-compiling out/UNIX/X86/python/cspace.py to cspace.pyc
!!! ERROR: dev-games/crystalspace-cvs-0.97 failed.
!!! Function src_compile, Line 40, Exitcode 2
!!! (no error message)
|
the second time i tried i got the following error:
Code: |
*-------------------------------------------------------------------------*
Building Shader for fixed function pipeline
Building for UNIX/GCC/X86 in optimize mode
*-------------------------------------------------------------------------*
g++ -c -o out/UNIX/X86/optimize/glshader_afp.o plugins/video/render3d/shader/shaderplugins/glshader_arb/glshader_afp.cpp -D__CRYSTAL_SPACE__ -march=pentium3 -pipe -Wall -Wno-unknown-pragmas -pipe -march=i586 -I/usr/local/include -march=pentium3 -pipe -fno-exceptions -O3 -fomit-frame-pointer -ffast-math -I. -I./apps -I./include -I./libs -I./plugins -I/usr/X11R6/include
g++ -c -o out/UNIX/X86/optimize/glshader_ffp.o plugins/video/render3d/shader/shaderplugins/glshader_fixed/glshader_ffp.cpp -D__CRYSTAL_SPACE__ -march=pentium3 -pipe -Wall -Wno-unknown-pragmas -pipe -march=i586 -I/usr/local/include -march=pentium3 -pipe -fno-exceptions -O3 -fomit-frame-pointer -ffast-math -I. -I./apps -I./include -I./libs -I./plugins -I/usr/X11R6/include
In file included from plugins/video/canvas/openglcommon/glextmanager.h:103,
from plugins/video/render3d/shader/shaderplugins/glshader_arb/glshader_afp.cpp:40:
/usr/X11R6/include/GL/gl.h:1560: error: parse error before `glGetString'
In file included from plugins/video/render3d/shader/shaderplugins/glshader_arb/glshader_afp.cpp:40:
plugins/video/canvas/openglcommon/glextmanager.h: In member function `void
csGLExtensionManager::Open()':
plugins/video/canvas/openglcommon/glextmanager.h:12648: error: `glGetString'
undeclared (first use this function)
plugins/video/canvas/openglcommon/glextmanager.h:12648: error: (Each undeclared
identifier is reported only once for each function it appears in.)
plugins/video/render3d/shader/shaderplugins/glshader_arb/glshader_afp.cpp: In
member function `bool csShaderGLAFP::LoadProgramStringToGL()':
plugins/video/render3d/shader/shaderplugins/glshader_arb/glshader_afp.cpp:133: error: `
glGetString' undeclared (first use this function)
make[1]: *** [out/UNIX/X86/optimize/glshader_afp.o] Error 1
make: *** [glshader_arb] Error 2
make: *** Waiting for unfinished jobs....
g++ -c -o out/UNIX/X86/optimize/glshader_fixed.o plugins/video/render3d/shader/shaderplugins/glshader_fixed/glshader_fixed.cpp -D__CRYSTAL_SPACE__ -march=pentium3 -pipe -Wall -Wno-unknown-pragmas -pipe -march=i586 -I/usr/local/include -march=pentium3 -pipe -fno-exceptions -O3 -fomit-frame-pointer -ffast-math -I. -I./apps -I./include -I./libs -I./plugins -I/usr/X11R6/include
In file included from plugins/video/canvas/openglcommon/glextmanager.h:103,
from plugins/video/render3d/shader/shaderplugins/glshader_fixed/glshader_ffp.cpp:41:
/usr/X11R6/include/GL/gl.h:1560: error: parse error before `glGetString'
In file included from plugins/video/render3d/shader/shaderplugins/glshader_fixed/glshader_ffp.cpp:41:
plugins/video/canvas/openglcommon/glextmanager.h: In member function `void
csGLExtensionManager::Open()':
plugins/video/canvas/openglcommon/glextmanager.h:12648: error: `glGetString'
undeclared (first use this function)
plugins/video/canvas/openglcommon/glextmanager.h:12648: error: (Each undeclared
identifier is reported only once for each function it appears in.)
plugins/video/render3d/shader/shaderplugins/glshader_fixed/glshader_ffp.cpp: In
member function `virtual void csGLShaderFFP::SetupState(csRenderMesh*, const
csShaderVarStack&)':
plugins/video/render3d/shader/shaderplugins/glshader_fixed/glshader_ffp.cpp:478: warning: enumeration
value `FogOff' not handled in switch
make[1]: *** [out/UNIX/X86/optimize/glshader_ffp.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from plugins/video/canvas/openglcommon/glextmanager.h:103,
from plugins/video/render3d/shader/shaderplugins/glshader_fixed/glshader_fixed.cpp:36:
/usr/X11R6/include/GL/gl.h:1560: error: parse error before `glGetString'
In file included from plugins/video/render3d/shader/shaderplugins/glshader_fixed/glshader_fixed.cpp:36:
plugins/video/canvas/openglcommon/glextmanager.h: In member function `void
csGLExtensionManager::Open()':
plugins/video/canvas/openglcommon/glextmanager.h:12648: error: `glGetString'
undeclared (first use this function)
plugins/video/canvas/openglcommon/glextmanager.h:12648: error: (Each undeclared
identifier is reported only once for each function it appears in.)
make[1]: *** [out/UNIX/X86/optimize/glshader_fixed.o] Error 1
make: *** [glshader_fixed] Error 2
!!! ERROR: dev-games/crystalspace-cvs-0.97 failed.
!!! Function src_compile, Line 40, Exitcode 2
!!! (no error message)
|
then I tried again, it went back to error #1, seems to be quite random
any ideas? I was planning on trying some of the tutorials for CS tonight, it'd be useful if it compiled *grin*
ps: Compiler used: GCC 3.3.3
CFLAGS used: -O3 -pipe -march=pentium3 (but i tried without any cflags and it still failed so that's not it)
CVS used: from Apr 17 2004 |
|
Back to top |
|
|
Lockup Guru
Joined: 25 Jul 2002 Posts: 430
|
Posted: Mon Apr 19, 2004 12:41 pm Post subject: |
|
|
for the shader error i had to modify the following line in /usr/X11R6/include/GL/gl.h
Code: |
const GLubyte * GLAPI glGetString (GLenum name);
|
should be
[code
const GLubyte * glGetString (GLenum name);
[/code]
as for the python error i was having, i *think* it 's a problem with the order in which portage attempts to make, since it worked when i did it by hand(starting with make depend, then walkall, then libs, apps etc and the plugins only at the end) |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|