Bug 40752

Summary: systemd "git" repository (scripted :: checkout - configure - build - install ) gtk stock cancel/gtk stock ok in vala
Product: systemd Reporter: Jeremy Kajikawa <Belxjander>
Component: generalAssignee: Lennart Poettering <lennart>
Status: RESOLVED FIXED QA Contact:
Severity: blocker    
Priority: medium    
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Jeremy Kajikawa 2011-09-10 06:02:11 UTC
<pre>
rc/systemd-interfaces.c:776:1: warning: initialization discards 'const' qualifier from pointer target type [enabled by default]
src/systemd-interfaces.c: In function 'g_cclosure_user_marshal_VOID__STRING_STRING':
src/systemd-interfaces.c:939:2: warning: passing argument 3 of 'callback' discards 'const' qualifier from pointer target type [enabled by default]
src/systemd-interfaces.c:939:2: note: expected 'gpointer' but argument is of type 'const gchar *'
src/systemd-interfaces.c: In function 'g_cclosure_user_marshal_VOID__UINT_STRING':
src/systemd-interfaces.c:958:2: warning: passing argument 3 of 'callback' discards 'const' qualifier from pointer target type [enabled by default]
src/systemd-interfaces.c:958:2: note: expected 'gpointer' but argument is of type 'const gchar *'
src/systemd-interfaces.c: In function 'g_cclosure_user_marshal_VOID__UINT_STRING_STRING':
src/systemd-interfaces.c:977:2: warning: passing argument 3 of 'callback' discards 'const' qualifier from pointer target type [enabled by default]
src/systemd-interfaces.c:977:2: note: expected 'gpointer' but argument is of type 'const gchar *'
src/systemd-interfaces.c: In function 'manager_unit_info_dup':
src/systemd-interfaces.c:1009:19: warning: declaration of 'dup' shadows a global declaration [-Wshadow]
src/systemd-interfaces.c: In function 'manager_job_info_dup':
src/systemd-interfaces.c:1053:18: warning: declaration of 'dup' shadows a global declaration [-Wshadow]
src/systemd-interfaces.c: In function 'manager_get_type':
src/systemd-interfaces.c:1115:3: warning: passing argument 3 of 'g_type_set_qdata' discards 'const' qualifier from pointer target type [enabled by default]
/usr/include/glib-2.0/gobject/gtype.h:698:23: note: expected 'gpointer' but argument is of type 'const char *'
src/systemd-interfaces.c: In function 'manager_proxy_g_signal':
src/systemd-interfaces.c:1211:3: warning: passing argument 1 of '_dbus_handle_manager_unit_new' from incompatible pointer type [enabled by default]
src/systemd-interfaces.c:1129:13: note: expected 'struct Manager *' but argument is of type 'struct GDBusProxy *'
src/systemd-interfaces.c:1213:3: warning: passing argument 1 of '_dbus_handle_manager_unit_removed' from incompatible pointer type [enabled by default]
src/systemd-interfaces.c:1148:13: note: expected 'struct Manager *' but argument is of type 'struct GDBusProxy *'
src/systemd-interfaces.c:1215:3: warning: passing argument 1 of '_dbus_handle_manager_job_new' from incompatible pointer type [enabled by default]
src/systemd-interfaces.c:1167:13: note: expected 'struct Manager *' but argument is of type 'struct GDBusProxy *'
src/systemd-interfaces.c:1217:3: warning: passing argument 1 of '_dbus_handle_manager_job_removed' from incompatible pointer type [enabled by default]
src/systemd-interfaces.c:1185:13: note: expected 'struct Manager *' but argument is of type 'struct GDBusProxy *'
src/systemd-interfaces.c: In function 'manager_dbus_interface_set_property':
src/systemd-interfaces.c:3262:11: warning: variable 'object' set but not used [-Wunused-but-set-variable]
src/systemd-interfaces.c: In function 'unit_job_link_dup':
src/systemd-interfaces.c:3601:15: warning: declaration of 'dup' shadows a global declaration [-Wshadow]
src/systemd-interfaces.c: In function 'unit_get_type':
src/systemd-interfaces.c:3641:3: warning: passing argument 3 of 'g_type_set_qdata' discards 'const' qualifier from pointer target type [enabled by default]
/usr/include/glib-2.0/gobject/gtype.h:698:23: note: expected 'gpointer' but argument is of type 'const char *'
src/systemd-interfaces.c: In function 'unit_dbus_interface_set_property':
src/systemd-interfaces.c:6168:11: warning: variable 'object' set but not used [-Wunused-but-set-variable]
src/systemd-interfaces.c: In function 'job_unit_link_dup':
src/systemd-interfaces.c:6238:15: warning: declaration of 'dup' shadows a global declaration [-Wshadow]
src/systemd-interfaces.c: In function 'job_get_type':
src/systemd-interfaces.c:6278:3: warning: passing argument 3 of 'g_type_set_qdata' discards 'const' qualifier from pointer target type [enabled by default]
/usr/include/glib-2.0/gobject/gtype.h:698:23: note: expected 'gpointer' but argument is of type 'const char *'
src/systemd-interfaces.c: In function 'job_dbus_interface_set_property':
src/systemd-interfaces.c:6540:11: warning: variable 'object' set but not used [-Wunused-but-set-variable]
src/systemd-interfaces.c: In function 'properties_get_type':
src/systemd-interfaces.c:6613:3: warning: passing argument 3 of 'g_type_set_qdata' discards 'const' qualifier from pointer target type [enabled by default]
/usr/include/glib-2.0/gobject/gtype.h:698:23: note: expected 'gpointer' but argument is of type 'const char *'
src/systemd-interfaces.c: In function 'properties_proxy_g_signal':
src/systemd-interfaces.c:6686:3: warning: passing argument 1 of '_dbus_handle_properties_properties_changed' from incompatible pointer type [enabled by default]
src/systemd-interfaces.c:6627:13: note: expected 'struct Properties *' but argument is of type 'struct GDBusProxy *'
src/systemd-interfaces.c: In function 'properties_dbus_interface_get_property':
src/systemd-interfaces.c:6787:11: warning: variable 'object' set but not used [-Wunused-but-set-variable]
src/systemd-interfaces.c: In function 'properties_dbus_interface_set_property':
src/systemd-interfaces.c:6796:11: warning: variable 'object' set but not used [-Wunused-but-set-variable]
  CCLD   systemadm
  VALAC  systemd_gnome_ask_password_agent_vala.stamp
src/gnome-ask-password-agent.vala:44.28-44.39: warning: Gtk.STOCK_CANCEL has been deprecated since vala-0.12. Use Gtk.Stock.CANCEL
src/gnome-ask-password-agent.vala:45.28-45.35: warning: Gtk.STOCK_OK has been deprecated since vala-0.12. Use Gtk.Stock.OK
src/gnome-ask-password-agent.vala:196.34-196.77: error: 1 extra arguments for `void Notify.Notification.new (string summary, string? body, string? icon)'
Compilation failed: 2 error(s), 2 warning(s)
                Notification n = new Notification(title, message, icon, null);
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/gnome-ask-password-agent.vala:197.17-197.39: error: The name `attach_to_status_icon' does not exist in the context of `Notify.Notification?'
                n.attach_to_status_icon(this);
                ^^^^^^^^^^^^^^^^^^^^^^^
make[2]: *** [systemd_gnome_ask_password_agent_vala.stamp] Error 1
make[2]: Leaving directory `/usr/src/systemd-git'
make[1]: make[1]: Leaving directory `/usr/src/systemd-git'
*** [all-recursive] Error 1
make: *** [all] Error 2
</pre>
Comment 1 Jeremy Kajikawa 2011-09-10 07:06:55 UTC
repeated the git checkout build using a different version of vala,

using the "devel" edition of vala built from the vala repository triggered this error,

rebuilding using vala 0.10.4 does not produce this error

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.