[mapserver-dev] Possible bug to be reported ?

Bruno Friedmann bruno at ioda-net.ch
Sun Jan 26 00:12:47 PST 2020


Hi Seth, I'm still trying to understand what's wrong, but I've almost a zero 
knowledge about swig. 

Inside the buildroot in, 
build/mapscript/python/CMakeFiles/_pythonmapscript.dir/mapscriptPYTHON_wrap.c

I've dicovered that notation obj[0] is present which remember me a patch made 
by an openSUSE fellow for gdal about this kind of trouble, not building with 
SWIG 4x.
see https://github.com/OSGeo/gdal/pull/1819

Any chance we have the same kind of problem here.


On jeudi, 23 janvier 2020 11.20:37 h CET Seth G wrote:
> Hi Bruno,
> 
> I recall running into this when testing the SWIG 4 beta and Python
> MapScript. See SWIG mailing list post at
> https://sourceforge.net/p/swig/mailman/message/36649157/ - it has the same
> errors you have. I reverted to SWIG 3.0.12 to get it to build. If you get
> any further debugging this please post back. Regards,
> 
> Seth
> 
> --
> web:http://geographika.co.uk
> twitter: @geographika
> 
> On Thu, Jan 23, 2020, at 9:22 AM, Bruno Friedmann wrote:
> > 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
> 
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-dev


-- 

Bruno Friedmann 
 Ioda-Net Sàrl www.ioda-net.ch
 
 GPG KEY : D5C9B751C4653227
 irc: tigerfoot






More information about the mapserver-dev mailing list