[mapserver-dev] Possible bug to be reported ?

Bruno Friedmann bruno at ioda-net.ch
Thu Jan 23 00:22:03 PST 2020


Hi all, I would like to have your thought about a problem.

During the building process of mapserver7 on openSUSE (especially our rolling 
flavor Tumbleweed). 
It use for the build actually gcc9 9.2.1 and swig 4.0.1

I only build now only for python3 (version 3.7.3) the mapscript part

I've got this type of error

[  151s] make -f mapscript/python/CMakeFiles/_pythonmapscript.dir/build.make 
mapscript/python/CMakeFiles/_pythonmapscript.dir/build
[  151s] make[2]: Entering directory '/home/abuild/rpmbuild/BUILD/
mapserver-7.4.3/build'
[  151s] [ 94%] Building C object mapscript/python/CMakeFiles/
_pythonmapscript.dir/CMakeFiles/_pythonmapscript.dir/mapscriptPYTHON_wrap.c.o
[  151s] cd /home/abuild/rpmbuild/BUILD/mapserver-7.4.3/build/mapscript/python 
&& /usr/bin/cc -D_pythonmapscript_EXPORTS -I/home/abuild/rpmbuild/BUILD/
mapserver-7.4.3/build -I/home/abuild/rpmbuild/BUILD/mapserver-7.4.3/renderec
[  151s] /home/abuild/rpmbuild/BUILD/mapserver-7.4.3/build/mapscript/python/
CMakeFiles/_pythonmapscript.dir/mapscriptPYTHON_wrap.c: In function 
'imageObj_write':
[  151s] /home/abuild/rpmbuild/BUILD/mapserver-7.4.3/build/mapscript/python/
CMakeFiles/_pythonmapscript.dir/mapscriptPYTHON_wrap.c:4020:28: warning: 
unused variable 'renderer' [-Wunused-variable]
[  151s]  4020 |         rendererVTableObj *renderer = NULL;
[  151s]       |                            ^~~~~~~~
[  151s] /home/abuild/rpmbuild/BUILD/mapserver-7.4.3/build/mapscript/python/
CMakeFiles/_pythonmapscript.dir/mapscriptPYTHON_wrap.c: In function 
'_wrap_CompositingFilter_filter_set':
[  151s] /home/abuild/rpmbuild/BUILD/mapserver-7.4.3/build/mapscript/python/
CMakeFiles/_pythonmapscript.dir/mapscriptPYTHON_wrap.c:6617:66: error: 
expected expression before ',' token
[  151s]  6617 |   if (!PyArg_ParseTuple(args, 
"Oz:CompositingFilter_filter_set", , &arg2)) SWIG_fail;
[  151s]       |                                                                  
^
[  151s] /home/abuild/rpmbuild/BUILD/mapserver-7.4.3/build/mapscript/python/
CMakeFiles/_pythonmapscript.dir/mapscriptPYTHON_wrap.c: In function 
'_wrap_clusterObj_region_set':
[  151s] /home/abuild/rpmbuild/BUILD/mapserver-7.4.3/build/mapscript/python/
CMakeFiles/_pythonmapscript.dir/mapscriptPYTHON_wrap.c:7391:59: error: 
expected expression before ',' token
[  151s]  7391 |   if (!PyArg_ParseTuple(args, "Oz:clusterObj_region_set", , 
&arg2)) SWIG_fail;
[  151s]       |                                                           ^


So my questions are, is somebody else have seen this (arch, fedora exp...) ?
What is the root cause (will serve as subject for the issue).
Is there a simple stupid fix (then I could try to write it, test and PR 
afterwards)


Thanks for any pointer
-- 

Bruno Friedmann 
 
 GPG KEY : D5C9B751C4653227
 irc: tigerfoot






More information about the mapserver-dev mailing list