Skip to content

Various build failures with --disable-notification

xfce4-sensors-plugin fails to build with --disable-notification --enable-hddtemp.

make[2]: Entering directory '/tmp/xfce4-sensors-plugin/lib'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I../include -DNDEBUG -DPACKAGE_LOCALE_DIR=\"/usr/local/share/locale\" -pthread -I/usr/include/xfce4/libxfce4ui-2 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/lib64/libffi/include -I/usr/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/xfce4/libxfce4panel-2.0 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/lib64/libffi/include -I/usr/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include     -g -O2 -MT libxfce4sensors_la-hddtemp.lo -MD -MP -MF .deps/libxfce4sensors_la-hddtemp.Tpo -c -o libxfce4sensors_la-hddtemp.lo `test -f 'hddtemp.c' || echo './'`hddtemp.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -DNDEBUG -DPACKAGE_LOCALE_DIR=\"/usr/local/share/locale\" -pthread -I/usr/include/xfce4/libxfce4ui-2 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/lib64/libffi/include -I/usr/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/xfce4/libxfce4panel-2.0 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/lib64/libffi/include -I/usr/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -g -O2 -MT libxfce4sensors_la-hddtemp.lo -MD -MP -MF .deps/libxfce4sensors_la-hddtemp.Tpo -c hddtemp.c  -fPIC -DPIC -o .libs/libxfce4sensors_la-hddtemp.o
hddtemp.c: In function ‘quick_message_dialog’:
hddtemp.c:141:35: error: ‘message’ undeclared (first use in this function); did you mean ‘g_message’?
  141 |                                   message, NULL);
      |                                   ^~~~~~~
      |                                   g_message
hddtemp.c:141:35: note: each undeclared identifier is reported only once for each function it appears in
In file included from /usr/include/glib-2.0/gobject/gobject.h:28,
                 from /usr/include/glib-2.0/gobject/gbinding.h:29,
                 from /usr/include/glib-2.0/glib-object.h:22,
                 from /usr/include/xfce4/libxfce4util/xfce-kiosk.h:30,
                 from /usr/include/xfce4/libxfce4util/libxfce4util.h:33,
                 from ../include/types.h:31,
                 from ../include/hddtemp.h:26,
                 from hddtemp.c:27:
hddtemp.c:143:31: error: ‘dialog’ undeclared (first use in this function)
  143 |     g_signal_connect_swapped (dialog, "response",
      |                               ^~~~~~
/usr/include/glib-2.0/gobject/gsignal.h:546:29: note: in definition of macro ‘g_signal_connect_swapped’
  546 |     g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, G_CONNECT_SWAPPED)
      |                             ^~~~~~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
                 from /usr/include/glib-2.0/gobject/gbinding.h:29,
                 from /usr/include/glib-2.0/glib-object.h:22,
                 from /usr/include/xfce4/libxfce4util/xfce-kiosk.h:30,
                 from /usr/include/xfce4/libxfce4util/libxfce4util.h:33,
                 from ../include/types.h:31,
                 from ../include/hddtemp.h:26,
                 from hddtemp.c:27:
hddtemp.c: In function ‘quick_message_with_checkbox’:
hddtemp.c:171:55: error: ‘GtkDialog’ {aka ‘struct _GtkDialog’} has no member named ‘vbox’
  171 |     gtk_box_pack_start (GTK_BOX(GTK_DIALOG(ptr_dialog)->vbox), ptr_checkbox, FALSE, FALSE, 0);
      |                                                       ^~
/usr/include/glib-2.0/gobject/gtype.h:2297:57: note: in definition of macro ‘_G_TYPE_CIC’
 2297 |     ((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
      |                                                         ^~
/usr/include/gtk-3.0/gtk/gtkbox.h:40:34: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
   40 | #define GTK_BOX(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_BOX, GtkBox))
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
hddtemp.c:171:25: note: in expansion of macro ‘GTK_BOX’
  171 |     gtk_box_pack_start (GTK_BOX(GTK_DIALOG(ptr_dialog)->vbox), ptr_checkbox, FALSE, FALSE, 0);
      |                         ^~~~~~~
make[2]: *** [Makefile:631: libxfce4sensors_la-hddtemp.lo] Error 1

See also: https://bugs.gentoo.org/627468