Re: [Tuxpaint-devel] Doesn't compile on Rocky9
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
From: Mark K. <mar...@gm...> - 2023-06-23 02:49:18
|
I'm getting a warning on Ubuntu 20.04.1 LTS about the use of a deprecated function "rsvg_handle_close". Ubuntu 20.04.1 LTS comes with librsvg 2.48.9. The warning occurs several times while compiling tuxpaint.c but here is one example: src/tuxpaint.c:21011:5: warning: ‘rsvg_handle_close’ is deprecated: Use 'rsvg_handle_read_stream_sync' instead [-Wdeprecated-declarations] 21011 | rsvg_handle_close(rsvg_handle, &gerr); | ^~~~~~~~~~~~~~~~~ In file included from src/tuxpaint.c:516: /usr/include/librsvg-2.0/librsvg/rsvg.h:192:14: note: declared here 192 | gboolean rsvg_handle_close (RsvgHandle *handle, GError **error); | ^~~~~~~~~~~~~~~~~ librsvg source says <https://gitlab.gnome.org/GNOME/librsvg/-/blob/main/include/librsvg/rsvg.h#L599> rsvg_handle_close was deprecated in librsvg 2.46. Mark On Thu, Jun 22, 2023 at 1:20 AM Bill Kendrick <nb...@so...> wrote: > On Thu, Jun 22, 2023 at 08:24:41AM +0900, Shin-ichi TOYAMA wrote: > > Just a brief report > > > > Current git tree fails to link due to an "undefined reference" error > > to `rsvg_handle_get_intrinsic_size_in_pixels' on Rocky Linux 9 > > > > May be a library bug on the distro?? > > Hrm, that function was apparently added in RSVG 2.52. > What version does Rocky Linux 9 have? Perhaps, for a while at least, > we may need to support using either rsvg_handle_get_dimensions() > (deprecated nowadays) or rsvg_handle_get_intrinsic_size_in_pixels(), > depending on which version of RSVG is in use. > > I'll see if I can figure out an #ifdef test. Thanks for reporting! > > -bill! > > > _______________________________________________ > Tuxpaint-devel mailing list > Tux...@li... > https://lists.sourceforge.net/lists/listinfo/tuxpaint-devel > |