[MapServer-dev] librsvg2 version

Seth G sethg at geographika.co.uk
Mon Jan 26 09:23:59 PST 2026


Hi Johannes,

The CI testing is done using librsvg2-2.58.0. 
If you have an older version to test with and can add in a #if LIBRSVG_CHECK_VERSION(2, 46, 0) please submit a PR and it can be merged. 

Seth

--
web:https://geographika.net & https://mapserverstudio.net
mastodon: @geographika at mastodon.social

On Mon, Jan 26, 2026, at 4:53 PM, Johannes Paul via MapServer-dev wrote:
> Actually the error seems to be related to this commit in mapcairo.c on branch 8.6
> https://github.com/MapServer/MapServer/commit/4121426f071bc0f090f203569cc31bd3feca92b9
> 
> RsvgRectangle type is used here
> https://github.com/MapServer/MapServer/blob/branch-8-6/src/mapcairo.c#L371
> and here
> https://github.com/MapServer/MapServer/blob/branch-8-6/src/mapcairo.c#L1131
> without checking for the librsvg version using LIBRSVG_CHECK_VERSION
> 
> So now Mapserver cannot build with librsvg < 2.46.0 anymore ...
> 
> 
> On Mon, 26 Jan 2026 at 11:20, Johannes Paul <johannespaul92 at gmail.com> wrote:
>> Hello,
>> 
>> I'm building mapserver with rsvg and with cairo on Almalinux 8.
>> 
>> It used to build successfully with Mapserver 8.2.0, however with v8.6.0 the build fails in mapcairo with error: unknown type name 'RsvgRectangle'.
>> 
>> [ 17%] Building C object CMakeFiles/mapserver.dir/src/mapcairo.c.o
>> /builds/mapserver/MapServer/src/mapcairo.c: In function 'renderSVGSymbolCairo':
>> /builds/mapserver/MapServer/src/mapcairo.c:371:3: error: unknown type name 'RsvgRectangle'; did you mean 'RsvgHandle'?
>> 
>> It seems this is an issue with librsvg2-devel-2.42.7 that I'm getting from AppStream repo, correct ?
>> 
>> I guess I need to upgrade librsvg ? What is the minimum required version of librsvg ? Is there any other option than building librsvg from source ?
>> 
>> Thanks,
>> Johannes
>> 
>> 
> _______________________________________________
> MapServer-dev mailing list
> MapServer-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-dev
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20260126/50739128/attachment-0001.htm>


More information about the MapServer-dev mailing list