[Mapserver-users] Can't build python mapscript

Vic Kelson vic at wittmanhydro.com
Wed Jun 11 09:26:48 EDT 2003


UGH.

I can't get python mapscript to build with mapserver-4.0b. Here's the
error message:

[root at limberlost python]# python setup.py build
running build
running build_py
not copying mapscript.py (output up-to-date)
running build_ext
building '_mapscript' extension
gcc -g -O2 -Wall -Wstrict-prototypes -fPIC -DIGNORE_MISSING_DATA
-DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_TIFF -DUSE_JPEG
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
-I/opt/include/python2.1 -I/opt/include/python2.1 -c mapscript_wrap.c -o
build/temp.linux-i686-2.1/mapscript_wrap.o
In file included from ../../map.h:26,
                 from mapscript_wrap.c:688:
../../maperror.h:62: warning: function declaration isn't a prototype
In file included from mapscript_wrap.c:688:
../../map.h:938: warning: function declaration isn't a prototype
../../map.h:951: warning: function declaration isn't a prototype
../../map.h:952: warning: function declaration isn't a prototype
../../map.h:953: warning: function declaration isn't a prototype
In file included from ../../map.h:1459,
                 from mapscript_wrap.c:688:
../../mapows.h:90: warning: function declaration isn't a prototype
../../mapows.h:91: warning: function declaration isn't a prototype
mapscript_wrap.c: In function `_raise_ms_exception':
mapscript_wrap.c:756: parse error before `*'
mapscript_wrap.c:757: `ms_error' undeclared (first use in this function)
mapscript_wrap.c:757: (Each undeclared identifier is reported only once
mapscript_wrap.c:757: for each function it appears in.)
mapscript_wrap.c:753: warning: `errcode' might be used uninitialized in
this function
mapscript_wrap.c: At top level:
mapscript_wrap.c:792: warning: function declaration isn't a prototype
mapscript_wrap.c:824: warning: function declaration isn't a prototype
mapscript_wrap.c:845: warning: function declaration isn't a prototype
mapscript_wrap.c: In function `imageObj_saveToString':
mapscript_wrap.c:1675: warning: return makes pointer from integer
without a castmapscript_wrap.c:1683: warning: return makes pointer from
integer without a castmapscript_wrap.c:1692: warning: return makes
pointer from integer without a castmapscript_wrap.c:1700: warning:
return makes pointer from integer without a castmapscript_wrap.c:1705:
warning: return makes pointer from integer without a
castmapscript_wrap.c: At top level:
mapscript_wrap.c:167: warning: `SWIG_TypeDynamicCast' defined but not
used
mapscript_wrap.c:179: warning: `SWIG_TypeQuery' defined but not used
mapscript_wrap.c:361: warning: `SWIG_addvarlink' defined but not used
mapscript_wrap.c:506: warning: `SWIG_ConvertPacked' defined but not used
mapscript_wrap.c:706: warning: `_SWIG_exception' defined but not used
error: command 'gcc' failed with exit status 1

Any ideas? I get the same error with mapserver-3.6.5.

THANKS!
Vic



More information about the mapserver-users mailing list