[MapServer-dev] librsvg2 version
Johannes Paul
johannespaul92 at gmail.com
Mon Jan 26 07:53:27 PST 2026
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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20260126/9959d403/attachment.htm>
More information about the MapServer-dev
mailing list