[Slackbuilds-users] Upgraded flatpak 1.6.1 fails with errors

Donald Cooley chytraeu at sdf.org
Sun Feb 2 00:48:01 UTC 2020


While trying to upgrade flatpak to version 1.6.1 I had errors in a clean
VM and on a Lenovo Thinkpad.

In file included from /usr/lib64/glib-2.0/include/glibconfig.h:9:0,
                 from /usr/include/glib-2.0/glib/gtypes.h:32,
                 from /usr/include/glib-2.0/glib/galloca.h:32,
                 from /usr/include/glib-2.0/glib.h:30,
                 from /usr/include/glib-2.0/glib/gi18n-lib.h:21,
                 from portal/flatpak-portal.c:34:
portal/flatpak-portal.c: In function 'handle_create_update_monitor':
portal/flatpak-portal.c:1497:13: error: unknown type name
'PortalFlatpakUpdateMonitorSkeleton_autoptr'
   g_autoptr(PortalFlatpakUpdateMonitorSkeleton) monitor = NULL;
             ^
/usr/include/glib-2.0/glib/gmacros.h:381:43: note: in definition of
macro '_GLIB_AUTOPTR_TYPENAME'
 #define _GLIB_AUTOPTR_TYPENAME(TypeName)  TypeName##_autoptr
                                           ^
portal/flatpak-portal.c:1497:3: note: in expansion of macro 'g_autoptr'
   g_autoptr(PortalFlatpakUpdateMonitorSkeleton) monitor = NULL;
   ^
portal/flatpak-portal.c:1497:3: error: cleanup argument not a function
portal/flatpak-portal.c:1497:59: error: initialization makes integer
from pointer without a cast [-Werror=int-conversion]
   g_autoptr(PortalFlatpakUpdateMonitorSkeleton) monitor = NULL;
                                                           ^
portal/flatpak-portal.c:1522:11: error: assignment makes integer from
pointer without a cast [-Werror=int-conversion]
   monitor = (PortalFlatpakUpdateMonitorSkeleton *)
create_update_monitor (invocation, obj_path, &error);
           ^
portal/flatpak-portal.c:1523:15: warning: comparison between pointer and
integer
   if (monitor == NULL)
               ^
In file included from /usr/include/glib-2.0/gobject/gobject.h:28:0,
                 from /usr/include/glib-2.0/gobject/gbinding.h:29,
                 from /usr/include/glib-2.0/glib-object.h:23,
                 from /usr/include/glib-2.0/gio/gioenums.h:28,
                 from /usr/include/glib-2.0/gio/giotypes.h:28,
                 from /usr/include/glib-2.0/gio/gio.h:26,
                 from portal/flatpak-portal.c:35:
/usr/include/glib-2.0/gobject/gsignal.h:475:28: error: passing argument
1 of 'g_signal_connect_data' makes pointer from integer without a cast
[-Werror=int-conversion]
     g_signal_connect_data ((instance), (detailed_signal), (c_handler),
(data), NULL, (GConnectFlags) 0)
                            ^
portal/flatpak-portal.c:1529:3: note: in expansion of macro
'g_signal_connect'
   g_signal_connect (monitor, "handle-close", G_CALLBACK (handle_close),
NULL);
   ^
/usr/include/glib-2.0/gobject/gsignal.h:388:9: note: expected 'gpointer
{aka void *}' but argument is of type 'int'
 gulong  g_signal_connect_data        (gpointer    instance,
         ^
/usr/include/glib-2.0/gobject/gsignal.h:475:28: error: passing argument
1 of 'g_signal_connect_data' makes pointer from integer without a cast
[-Werror=int-conversion]
     g_signal_connect_data ((instance), (detailed_signal), (c_handler),
(data), NULL, (GConnectFlags) 0)
                            ^
portal/flatpak-portal.c:1530:3: note: in expansion of macro
'g_signal_connect'
   g_signal_connect (monitor, "handle-update", G_CALLBACK
(handle_update), NULL);
   ^
/usr/include/glib-2.0/gobject/gsignal.h:388:9: note: expected 'gpointer
{aka void *}' but argument is of type 'int'
 gulong  g_signal_connect_data        (gpointer    instance,
         ^
/usr/include/glib-2.0/gobject/gsignal.h:475:28: error: passing argument
1 of 'g_signal_connect_data' makes pointer from integer without a cast
[-Werror=int-conversion]
     g_signal_connect_data ((instance), (detailed_signal), (c_handler),
(data), NULL, (GConnectFlags) 0)
                            ^
portal/flatpak-portal.c:1531:3: note: in expansion of macro
'g_signal_connect'
   g_signal_connect (monitor, "g-authorize-method", G_CALLBACK
(authorize_method_handler), NULL);
   ^
/usr/include/glib-2.0/gobject/gsignal.h:388:9: note: expected 'gpointer
{aka void *}' but argument is of type 'int'
 gulong  g_signal_connect_data        (gpointer    instance,
         ^
In file included from /usr/include/glib-2.0/gobject/gobject.h:24:0,
                 from /usr/include/glib-2.0/gobject/gbinding.h:29,
                 from /usr/include/glib-2.0/glib-object.h:23,
                 from /usr/include/glib-2.0/gio/gioenums.h:28,
                 from /usr/include/glib-2.0/gio/giotypes.h:28,
                 from /usr/include/glib-2.0/gio/gio.h:26,
                 from portal/flatpak-portal.c:35:
/usr/include/glib-2.0/gobject/gtype.h:2204:40: warning: cast to pointer
from integer of different size [-Wint-to-pointer-cast]
     ((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
                                        ^
/usr/include/glib-2.0/gobject/gtype.h:479:66: note: in expansion of
macro '_G_TYPE_CIC'
 #define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type)
(_G_TYPE_CIC ((instance), (g_type), c_type))
                                                                  ^
/usr/include/glib-2.0/gio/gdbusinterfaceskeleton.h:29:49: note: in
expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST'
 #define G_DBUS_INTERFACE_SKELETON(o)
(G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_DBUS_INTERFACE_SKELETON,
GDBusInterfaceSkeleton))
                                                 ^
portal/flatpak-portal.c:1533:42: note: in expansion of macro
'G_DBUS_INTERFACE_SKELETON'
   if (!g_dbus_interface_skeleton_export (G_DBUS_INTERFACE_SKELETON
(monitor),
                                          ^
portal/flatpak-portal.c:1542:28: warning: cast to pointer from integer
of different size [-Wint-to-pointer-cast]
   register_update_monitor ((PortalFlatpakUpdateMonitor*)monitor, obj_path);
                            ^
cc1: some warnings being treated as errors
Makefile:4551: recipe for target
'portal/flatpak_portal-flatpak-portal.o' failed
make[2]: *** [portal/flatpak_portal-flatpak-portal.o] Error 1
make[2]: Leaving directory '/tmp/SBo/flatpak-1.6.1'
Makefile:5427: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/SBo/flatpak-1.6.1'
Makefile:2358: recipe for target 'all' failed
make: *** [all] Error 2


Regards,
Donald Cooley


More information about the SlackBuilds-users mailing list