<div dir="ltr">Actually the error seems to be related to this commit in mapcairo.c on branch 8.6<div><a href="https://github.com/MapServer/MapServer/commit/4121426f071bc0f090f203569cc31bd3feca92b9">https://github.com/MapServer/MapServer/commit/4121426f071bc0f090f203569cc31bd3feca92b9</a></div><div><br></div><div>RsvgRectangle type is used here</div><div><a href="https://github.com/MapServer/MapServer/blob/branch-8-6/src/mapcairo.c#L371">https://github.com/MapServer/MapServer/blob/branch-8-6/src/mapcairo.c#L371</a></div><div>and here<br><a href="https://github.com/MapServer/MapServer/blob/branch-8-6/src/mapcairo.c#L1131">https://github.com/MapServer/MapServer/blob/branch-8-6/src/mapcairo.c#L1131</a></div><div>without checking for the librsvg version using LIBRSVG_CHECK_VERSION</div><div><br></div><div>So now Mapserver cannot build with librsvg < 2.46.0 anymore ...</div><div><div><br></div></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Mon, 26 Jan 2026 at 11:20, Johannes Paul <<a href="mailto:johannespaul92@gmail.com">johannespaul92@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div><br><div>I'm building mapserver with rsvg and with cairo on Almalinux 8.</div><div><br></div><div>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'.</div><div><br></div><div><div style="box-sizing:border-box;font-variant-ligatures:none;display:flex;padding:1px 8px;color:rgb(255,255,255);font-family:"GitLab Mono","JetBrains Mono",Menlo,"DejaVu Sans Mono","Liberation Mono",Consolas,"Ubuntu Mono","Courier New","andale mono","lucida console",monospace;font-size:13px"><span style="box-sizing:border-box"><span style="box-sizing:border-box;padding:1.25px 0px;background-color:rgb(0,0,0)">[ 17%] Building C object CMakeFiles/mapserver.dir/src/mapcairo.c.o</span></span></div><div style="box-sizing:border-box;font-variant-ligatures:none;display:flex;padding:1px 8px;color:rgb(255,255,255);font-family:"GitLab Mono","JetBrains Mono",Menlo,"DejaVu Sans Mono","Liberation Mono",Consolas,"Ubuntu Mono","Courier New","andale mono","lucida console",monospace;font-size:13px"><span style="box-sizing:border-box"><span style="box-sizing:border-box;padding:1.25px 0px;background-color:rgb(0,0,0)">/builds/mapserver/MapServer/src/mapcairo.c: In function 'renderSVGSymbolCairo':</span></span></div><div style="box-sizing:border-box;font-variant-ligatures:none;display:flex;padding:1px 8px;color:rgb(255,255,255);font-family:"GitLab Mono","JetBrains Mono",Menlo,"DejaVu Sans Mono","Liberation Mono",Consolas,"Ubuntu Mono","Courier New","andale mono","lucida console",monospace;font-size:13px"><span style="box-sizing:border-box"><span style="box-sizing:border-box;padding:1.25px 0px;background-color:rgb(0,0,0)">/builds/mapserver/MapServer/src/mapcairo.c:371:3: error: unknown type name 'RsvgRectangle'; did you mean 'RsvgHandle'?</span></span></div></div><div><br></div><div>It seems this is an issue with librsvg2-devel-2.42.7 that I'm getting from AppStream repo, correct ?</div><div><br></div><div>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 ?</div><div><br></div><div>Thanks,</div><div>Johannes</div><div><br></div><div><br></div></div></div>
</blockquote></div>