Can't build current gradio_6 branch error: too many arguments to function ‘gdk_pixbuf_save_to_stream_finish’
Created by: jfebrer
I can't build the current gradio_6 branch on also current Debian sid. I could previously build it, I don't know if it's caused in changes in the gradio codebase or from updated libraries.
The build log:
The Meson build system
Version: 0.41.0
Source dir: /home/josep/src/git/gradio
Build dir: /home/josep/src/git/gradio/build
Build type: native build
Project name: gradio
Native vala compiler: valac (valac 0.34.7)
Native c compiler: cc (gcc 6.3.0)
Build machine cpu family: x86_64
Build machine cpu: x86_64
Library m found: YES
Found pkg-config: /usr/bin/pkg-config (0.29)
Native dependency glib-2.0 found: YES 2.50.3
Native dependency gobject-2.0 found: YES 2.50.3
Native dependency gio-2.0 found: YES 2.50.3
Native dependency gtk+-3.0 found: YES 3.22.15
Native dependency libsoup-2.4 found: YES 2.56.0
Native dependency json-glib-1.0 found: YES 1.2.6
Native dependency gstreamer-1.0 found: YES 1.12.1
Native dependency gstreamer-pbutils-1.0 found: YES 1.12.1
Native dependency sqlite3 found: YES 3.16.2
Native dependency glib-2.0 found: YES 2.50.3
WARNING: GLib compiled dependencies do not work reliably with
the current version of GLib. See the following upstream issue: https://bugzilla.gnome.org/show_bug.cgi?id=774368
Program msgfmt found: YES (/usr/bin/msgfmt)
Program meson_post_install.sh found: YES (/bin/sh /home/josep/src/git/gradio/meson_post_install.sh)
Build targets in project: 9
josep@josep /m/c/s/g/gradio> cd build/
josep@josep /m/c/s/g/g/build> ninja
[2/68] Generating appdata-file with a custom command.
/usr/bin/msgfmt: «/home/josep/src/git/gradio/po/LINGUAS» no existeix
[4/68] Generating desktop-file with a custom command.
/usr/bin/msgfmt: «/home/josep/src/git/gradio/po/LINGUAS» no existeix
[15/68] Compiling C object 'external/gd/libgd@sta/libgd_gd-main-box.c.o'.
../external/gd/libgd/gd-main-box.c: In function ‘gd_main_box_class_init’:
../external/gd/libgd/gd-main-box.c:263:19: warning: unused variable ‘wclass’ [-Wunused-variable]
GtkWidgetClass *wclass = GTK_WIDGET_CLASS (klass);
^~~~~~
[17/68] Compiling C object 'external/gd/libgd@sta/libgd_gd-entry-focus-hack.c.o'.
../external/gd/libgd/gd-entry-focus-hack.c: In function ‘send_focus_change’:
../external/gd/libgd/gd-entry-focus-hack.c:33:3: warning: ‘gdk_display_get_device_manager’ is deprecated: Use 'gdk_display_get_default_seat' instead [-Wdeprecated-declarations]
device_manager = gdk_display_get_device_manager (gtk_widget_get_display (widget));
^~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gdk/gdkscreen.h:32:0,
from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:31,
from /usr/include/gtk-3.0/gdk/gdk.h:32,
from /usr/include/gtk-3.0/gtk/gtk.h:30,
from ../external/gd/libgd/gd-entry-focus-hack.h:25,
from ../external/gd/libgd/gd-entry-focus-hack.c:22:
/usr/include/gtk-3.0/gdk/gdkdisplay.h:171:20: note: declared here
GdkDeviceManager * gdk_display_get_device_manager (GdkDisplay *display);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../external/gd/libgd/gd-entry-focus-hack.c:34:3: warning: ‘gdk_device_manager_list_devices’ is deprecated [-Wdeprecated-declarations]
devices = gdk_device_manager_list_devices (device_manager, GDK_DEVICE_TYPE_MASTER);
^~~~~~~
In file included from /usr/include/gtk-3.0/gdk/gdkdisplay.h:32:0,
from /usr/include/gtk-3.0/gdk/gdkscreen.h:32,
from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:31,
from /usr/include/gtk-3.0/gdk/gdk.h:32,
from /usr/include/gtk-3.0/gtk/gtk.h:30,
from ../external/gd/libgd/gd-entry-focus-hack.h:25,
from ../external/gd/libgd/gd-entry-focus-hack.c:22:
/usr/include/gtk-3.0/gdk/gdkdevicemanager.h:41:14: note: declared here
GList * gdk_device_manager_list_devices (GdkDeviceManager *device_manager,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../external/gd/libgd/gd-entry-focus-hack.c:35:3: warning: ‘gdk_device_manager_list_devices’ is deprecated [-Wdeprecated-declarations]
devices = g_list_concat (devices, gdk_device_manager_list_devices (device_manager, GDK_DEVICE_TYPE_SLAVE));
^~~~~~~
In file included from /usr/include/gtk-3.0/gdk/gdkdisplay.h:32:0,
from /usr/include/gtk-3.0/gdk/gdkscreen.h:32,
from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:31,
from /usr/include/gtk-3.0/gdk/gdk.h:32,
from /usr/include/gtk-3.0/gtk/gtk.h:30,
from ../external/gd/libgd/gd-entry-focus-hack.h:25,
from ../external/gd/libgd/gd-entry-focus-hack.c:22:
/usr/include/gtk-3.0/gdk/gdkdevicemanager.h:41:14: note: declared here
GList * gdk_device_manager_list_devices (GdkDeviceManager *device_manager,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../external/gd/libgd/gd-entry-focus-hack.c:36:3: warning: ‘gdk_device_manager_list_devices’ is deprecated [-Wdeprecated-declarations]
devices = g_list_concat (devices, gdk_device_manager_list_devices (device_manager, GDK_DEVICE_TYPE_FLOATING));
^~~~~~~
In file included from /usr/include/gtk-3.0/gdk/gdkdisplay.h:32:0,
from /usr/include/gtk-3.0/gdk/gdkscreen.h:32,
from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:31,
from /usr/include/gtk-3.0/gdk/gdk.h:32,
from /usr/include/gtk-3.0/gtk/gtk.h:30,
from ../external/gd/libgd/gd-entry-focus-hack.h:25,
from ../external/gd/libgd/gd-entry-focus-hack.c:22:
/usr/include/gtk-3.0/gdk/gdkdevicemanager.h:41:14: note: declared here
GList * gdk_device_manager_list_devices (GdkDeviceManager *device_manager,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[18/68] Compiling C object 'external/gd/libgd@sta/libgd_gd-main-icon-box.c.o'.
../external/gd/libgd/gd-main-icon-box.c: In function ‘gd_main_icon_box_button_release_event’:
../external/gd/libgd/gd-main-icon-box.c:389:44: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
(event->button == GDK_BUTTON_PRIMARY && (event->state & GDK_CONTROL_MASK) != 0 ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../external/gd/libgd/gd-main-icon-box.c: In function ‘gd_main_icon_box_drag_data_get’:
../external/gd/libgd/gd-main-icon-box.c:598:11: warning: unused variable ‘uris’ [-Wunused-variable]
gchar **uris = NULL;
^~~~
[20/68] Compiling C object 'external/gd/libgd@sta/libgd_gd-main-icon-box-icon.c.o'.
../external/gd/libgd/gd-main-icon-box-icon.c: In function ‘gd_main_icon_box_icon_size_allocate’:
../external/gd/libgd/gd-main-icon-box-icon.c:176:8: warning: unused variable ‘y_scaled’ [-Wunused-variable]
gint y_scaled;
^~~~~~~~
../external/gd/libgd/gd-main-icon-box-icon.c:175:8: warning: unused variable ‘x_scaled’ [-Wunused-variable]
gint x_scaled;
^~~~~~~~
[27/68] Compiling Vala source ../src/gradio-app.vala ../src/page/gradio-li...ion-dialog.vala ../src/gradio-filterbox.vala ../src/gradio-thumbnail.vala.
libsoup-2.4.vapi:1146.3-1146.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:1260.3-1260.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:1931.3-1931.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:1934.3-1934.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:1937.3-1937.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:1940.3-1940.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:1943.3-1943.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:1946.3-1946.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:1949.3-1949.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:1952.3-1952.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:1955.3-1955.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:1958.3-1958.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:2000.3-2000.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:2003.3-2003.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:2006.3-2006.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:2076.3-2076.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:2080.3-2080.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:2083.3-2083.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:2086.3-2086.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:2089.3-2089.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:2092.3-2092.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:2095.3-2095.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:2098.3-2098.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:2101.3-2101.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:2104.3-2104.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:2107.3-2107.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
libsoup-2.4.vapi:2111.3-2111.12: warning: [Deprecated] is deprecated. Use [Version (deprecated = true, deprecated_since = "", replacement = "")]
../src/gradio-utils.vala:49.19-49.42: warning: Soup.SessionAsync.new is deprecated
../src/gradio-image-cache.vala:70.24-70.121: warning: unhandled error GLib.Error' Gdk.Pixbuf pixbuf = new Gdk.Pixbuf.from_file(GLib.Environment.get_user_cache_dir()+"/gradio/"+hash.to_string()+".png"); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../src/gradio-image-cache.vala:95.10-95.29: warning: unhandled error
GLib.Error'
req = session.request(url);
^^^^^^^^^^^^^^^^^^^^
../src/gradio-image-cache.vala:96.36-96.55: warning: unhandled error GLib.Error' image_stream = yield req.send_async(null); ^^^^^^^^^^^^^^^^^^^^ ../src/gradio-image-cache.vala:97.30-97.81: warning: unhandled error
GLib.Error'
pixbuf = yield new Gdk.Pixbuf.from_stream_async(image_stream, null);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/gradio-image-cache.vala:87.24-87.88: warning: unhandled error GLib.Error' yield pixbuf.save_to_stream_async(fiostream.get_output_stream(), "png"); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../src/gradio-image-cache.vala:51.25-51.127: warning: unhandled error
GLib.Error'
cache_location.enumerate_children_async("standard::*", FileQueryInfoFlags.NONE, Priority.DEFAULT, null);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/gradio-image-cache.vala:53.43-53.73: warning: unhandled error GLib.Error' while((infos = yield enumerator.next_files_async(10)) != null) { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../src/gradio-image-cache.vala:57.27-57.39: warning: unhandled error
GLib.Error'
file.delete();
^^^^^^^^^^^^^
../src/gradio-collection-model.vala:63.4-63.15: warning: null' incompatible with return type
Gradio.Collectionreturn null; ^^^^^^^^^^^^ ../src/gradio-library.vala:378.36-378.47: warning: unhandled error
GLib.Error'
var dis = new DataInputStream (file.read ());
^^^^^^^^^^^^
../src/gradio-library.vala:381.20-381.39: warning: unhandled error GLib.IOError' while ((line = dis.read_line (null)) != null) { ^^^^^^^^^^^^^^^^^^^^ ../src/gradio-library.vala:388.11-388.29: warning: unhandled error
GLib.Error'
yield file.delete_async();
^^^^^^^^^^^^^^^^^^^
../src/gradio-library.vala:231.5-231.18: warning: implicit .begin is deprecated
../src/gradio-library.vala:253.4-253.16: warning: implicit .begin is deprecated
../src/gradio-utils.vala:187.4-187.15: warning: null' incompatible with return type
Gradio.RadioStationreturn null; ^^^^^^^^^^^^ ../src/gradio-utils.vala:173.5-173.32: warning: unhandled error
GLib.Error'
parser.load_from_data (data);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/page/gradio-page.vala:34.4-34.15: warning: null' incompatible with return type
GLib.List<Gd.MainBoxItem>return null; ^^^^^^^^^^^^ ../src/page/gradio-station-detail-page.vala:124.7-124.31: warning: Access to static member
Gradio.Library.station_model' with an instance reference
if(App.library.station_model.contains_station(station))
^^^^^^^^^^^^^^^^^^^^^^^^^
../src/page/gradio-station-detail-page.vala:221.7-221.31: warning: Access to static member Gradio.Library.station_model' with an instance reference if(App.library.station_model.contains_station(station)){ ^^^^^^^^^^^^^^^^^^^^^^^^^ ../src/gradio-organize-collection-dialog.vala:41.7-41.34: warning: Access to static member
Gradio.Library.collection_model' with an instance reference
if(App.library.collection_model.get_n_items() == 0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/gradio-organize-collection-dialog.vala:66.29-66.56: warning: Access to static member Gradio.Library.collection_model' with an instance reference if(text.length > 2 && !(App.library.collection_model.contains_collection(coll))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../src/gradio-organize-collection-dialog.vala:72.34-72.61: warning: Access to static member
Gradio.Library.collection_model' with an instance reference
CollectionsListBox.bind_model(App.library.collection_model, (item) => {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/gradio-organize-collection-dialog.vala:135.16-135.43: warning: Access to static member Gradio.Library.collection_model' with an instance reference string id = App.library.collection_model.get_id_by_name(n); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../src/gradio-category-item-provider.vala:136.7-136.34: warning: unhandled error
GLib.Error'
parser.load_from_data (data);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/gradio-category-item-provider.vala:156.7-156.34: warning: unhandled error GLib.Error' parser.load_from_data (data); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../src/gradio-category-item-provider.vala:176.7-176.34: warning: unhandled error
GLib.Error'
parser.load_from_data (data);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/gradio-category-item-provider.vala:196.7-196.34: warning: unhandled error GLib.Error' parser.load_from_data (data); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../src/gradio-category-item-provider.vala:216.7-216.34: warning: unhandled error
GLib.Error'
parser.load_from_data (data);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/page/gradio-settings-page.vala:110.50-110.76: warning: implicit .begin is deprecated
../src/gradio-app.vala:38.5-38.21: warning: implicit .begin is deprecated
../src/gradio-app.vala:48.13-48.37: warning: local variable settings' declared but never used Settings settings = new Settings(); ^^^^^^^^^^^^^^^^^^^^^^^^^ ../src/page/gradio-settings-page.vala:26.3-26.38: warning: field
Gradio.SettingsPage.notifications_group' never used
private GroupBox notifications_group;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/gradio-library.vala:92.4-92.16: warning: unreachable code detected
return false;
^^^^^^^^^^^^^
../src/gradio-main-window.vala:31.14-31.48: warning: field Gradio.MainWindow.NotificationOverlay' never used [GtkChild] private Overlay NotificationOverlay; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../src/gradio-main-window.vala:56.14-56.46: warning: field
Gradio.MainWindow.NotificationButton' never used
[GtkChild] private Button NotificationButton;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/gradio-radio-station.vala:22.3-22.30: warning: field Gradio.RadioStation._primary_text' never used private string _primary_text; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../src/gradio-radio-station.vala:32.3-32.21: warning: field
Gradio.RadioStation._uri' never used
private string _uri;
^^^^^^^^^^^^^^^^^^^
../src/gradio-filterbox.vala:64.3-64.31: warning: field `Gradio.FilterBox.searchbar' never used
private TaggedEntry searchbar;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Compilation succeeded - 66 warning(s)
[60/68] Compiling C object 'src/gradio@exe/src_gradio@exe_gradio-image-cache.c.o'.
FAILED: src/gradio@exe/src_gradio@exe_gradio-image-cache.c.o
cc -Isrc/gradio@exe -Isrc -Idata -I../src -Iexternal/gd -I../external/gd -Iexternal/dazzle -I../external/dazzle -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -I/usr/include/json-glib-1.0 -I/usr/include/gstreamer-1.0 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -w -O0 -g -pthread '-DVERSION="0.6.0"' '-DGETTEXT_PACKAGE="gradio"' '-DGNOMELOCALEDIR="/usr/local/share/locale"' -MMD -MQ 'src/gradio@exe/src_gradio@exe_gradio-image-cache.c.o' -MF 'src/gradio@exe/src_gradio@exe_gradio-image-cache.c.o.d' -o 'src/gradio@exe/src_gradio@exe_gradio-image-cache.c.o' -c 'src/gradio@exe/gradio-image-cache.c'
/home/josep/src/git/gradio/src/gradio-image-cache.vala: In function ‘gradio_image_cache_cache_image_co’:
/home/josep/src/git/gradio/src/gradio-image-cache.vala:87:2: error: too many arguments to function ‘gdk_pixbuf_save_to_stream_finish’
yield pixbuf.save_to_stream_async(fiostream.get_output_stream(), "png");
^ ~~~~~~~~~~~~~~~~
In file included from /usr/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h:34:0,
from src/gradio@exe/gradio-image-cache.c:29:
/usr/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h:512:10: note: declared here
gboolean gdk_pixbuf_save_to_stream_finish (GAsyncResult *async_result,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[65/68] Compiling C object 'src/gradio@exe/src_gradio@exe_gradio-collection.c.o'.
ninja: build stopped: subcommand failed.