mapserver cannot be rebuild against perl 5.20. The file mapscript/perl/mapscript_wrap.c, which is provided by upstream, does not work for new perl. The file was generated by old swig (2.0) and it is part of tarball. If the file is generated with new swig it will works. I checked it. It can be easily fixed at specfile. Just add a following command in %prep section rm -f mapscript/perl/mapscript_wrap.c The wrapper will be regenerated and it will solve the problem.