[mapserver-users] PythonMapscript Installation
Schuster
Grit.Schuster@uni-vechta.de
Tue, 24 Sep 2002 09:53:49 +0200
---------MDLINK-NGMime-15224-1032854029.675168-------
content-type: text/plain; charset="iso-8859-1"
content-transfer-encoding: 7bit
content-length: 528
hello everybody,
I tried to compile the pythonMapscript of the mapserver-3.6.1 package on
SuSE.It doesnt work.
It always stops with an error on the gcc command.
I attached the shell output "gcc".
I also compiled the pythonMapscript corresponding the recommendations of
http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PythonMapScript.
But this doesnt work anway. I attched the the shell output "DisutilsExecError".
I would be very very grateful for any
help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Grit
--
---------MDLINK-NGMime-15224-1032854029.675168-------
content-type: application/octet-stream
content-disposition: attachment; filename="DisutilsExecError"
content-transfer-encoding: 7bit
content-length: 777
swig -python -shadow -DSWIGPYTHON -module MapScript -o ./mapscript_wrap.c ../mapscript.i
../mapscript.i:37. Warning: class keyword used, but not in C++ mode.
../../map.h:424. Warning: class keyword used, but not in C++ mode.
Syntax error
../mapscript.i:68. Syntax error in input.
../mapscript.i:74. Syntax error in input.
Traceback (most recent call last):
File "setup.py", line 39, in ?
spawn(swig_cmd, verbose=noisy)
File "/usr/lib/python2.2/distutils/spawn.py", line 38, in spawn
_spawn_posix(cmd, search_path, verbose, dry_run)
File "/usr/lib/python2.2/distutils/spawn.py", line 133, in _spawn_posix
raise DistutilsExecError, \
distutils.errors.DistutilsExecError: command 'swig' failed with exit status 2
linux:/usr/src/mapserver-3.6.1/mapscript/python #
---------MDLINK-NGMime-15224-1032854029.675168-------
content-type: application/octet-stream
content-disposition: attachment; filename="gcc"
content-transfer-encoding: 7bit
content-length: 3419
script.i
../mapscript.i:37. Warning: class keyword used, but not in C++ mode.
../../map.h:424. Warning: class keyword used, but not in C++ mode.
copying MapScript.py -> mapscript
running install
running build
running build_py
copying mapscript/__init__.py -> build/lib.linux-i686-2.2/mapscript
copying mapscript/MapScript.py -> build/lib.linux-i686-2.2/mapscript
running build_ext
building 'MapScriptc' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -UTIFF_STATIC -UJPEG_STATIC -UZLIB_STATIC -UIGNORE_MISSING_DATA -UUSE_EPPL -UUSE_PROJ -UUSE_PROJ_API_H -UUSE_WMS -UUSE_TIFF -UUSE_JPEG -UUSE_GD_PNG -UUSE_GD_JPEG -UUSE_GD_WBMP -UUSE_GDAL -UUSE_POSTGIS -I../.. -I../../gd-1.8.4 -I/usr/local/include/freetype -I/include -I/usr/include/python2.2 -c mapscript_wrap.c -o build/temp.linux-i686-2.2/mapscript_wrap.o
mapscript_wrap.c: In function `SWIG_ConvertPtr':
mapscript_wrap.c:404: warning: suggest explicit braces to avoid ambiguous `else'
mapscript_wrap.c:407: warning: suggest explicit braces to avoid ambiguous `else'
mapscript_wrap.c:413: warning: suggest explicit braces to avoid ambiguous `else'
mapscript_wrap.c:338: warning: `uu' might be used uninitialized in this function
mapscript_wrap.c: In function `SWIG_ConvertPacked':
mapscript_wrap.c:338: warning: `uu' might be used uninitialized in this function
In file included from ../../map.h:25,
from mapscript_wrap.c:598:
../../maperror.h: At top level:
../../maperror.h:56: warning: function declaration isn't a prototype
../../maperror.h:59: warning: function declaration isn't a prototype
In file included from ../../map.h:30,
from mapscript_wrap.c:598:
../../maphash.h:18: warning: function declaration isn't a prototype
In file included from mapscript_wrap.c:598:
../../map.h:742: warning: function declaration isn't a prototype
../../map.h:979: warning: function declaration isn't a prototype
In file included from mapscript_wrap.c:599:
../../maptemplate.h:100: warning: function declaration isn't a prototype
mapscript_wrap.c: In function `_raise_ms_exception':
mapscript_wrap.c:706: `ms_error' undeclared (first use in this function)
mapscript_wrap.c:706: (Each undeclared identifier is reported only once
mapscript_wrap.c:706: for each function it appears in.)
mapscript_wrap.c:706: warning: implicit declaration of function `msGetErrorString'
mapscript_wrap.c:706: warning: format argument is not a pointer (arg 5)
mapscript_wrap.c: At top level:
mapscript_wrap.c:831: warning: function declaration isn't a prototype
mapscript_wrap.c:1056: warning: function declaration isn't a prototype
mapscript_wrap.c:1298: warning: function declaration isn't a prototype
mapscript_wrap.c: In function `mapObj_getImageToVar':
mapscript_wrap.c:11509: warning: unused variable `imgbytes'
mapscript_wrap.c:11508: warning: unused variable `size'
mapscript_wrap.c: At top level:
mapscript_wrap.c:150: warning: `SWIG_TypeQuery' defined but not used
mapscript_wrap.c:307: warning: `SWIG_addvarlink' defined but not used
mapscript_wrap.c:443: warning: `SWIG_ConvertPacked' defined but not used
mapscript_wrap.c:498: warning: `SWIG_NewPackedObj' defined but not used
../../maptemplate.h:16: warning: `inchesPerUnit' defined but not used
mapscript_wrap.c:602: warning: `l_output_helper' defined but not used
mapscript_wrap.c:623: warning: `t_output_helper' defined but not used
error: command 'gcc' failed with exit status 1
---------MDLINK-NGMime-15224-1032854029.675168---------