xfce4-datetime plugin compile errors (Slackware-current)
xfce4-datetime 0.8.0 no longer compiles on a Slackware-x64-current machine. Slackware recently moved to XFCE 4.16.
compile errors:
make all-recursive
make[1]: Entering directory '/home/david/Downloads/xfce4-datetime-plugin-0.8.0'
Making all in panel-plugin
make[2]: Entering directory '/home/david/Downloads/xfce4-datetime-plugin-0.8.0/panel-plugin'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DNDEBUG -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -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/fribidi -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -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/fribidi -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -O2 -mtune=core2 -MT libdatetime_la-datetime.lo -MD -MP -MF .deps/libdatetime_la-datetime.Tpo -c -o libdatetime_la-datetime.lo `test -f 'datetime.c' || echo './'`datetime.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DNDEBUG -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -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/fribidi -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -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/fribidi -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -O2 -mtune=core2 -MT libdatetime_la-datetime.lo -MD -MP -MF .deps/libdatetime_la-datetime.Tpo -c datetime.c -fPIC -DPIC -o .libs/libdatetime_la-datetime.o
datetime.c:49:1: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
49 | static inline gint64 datetime_gtimeval_to_ms(const GTimeVal t)
| ^~~~~~
In file included from /usr/include/glib-2.0/glib/galloca.h:32,
from /usr/include/glib-2.0/glib.h:30,
from /usr/include/xfce4/libxfce4util/libxfce4util-config.h:29,
from /usr/include/xfce4/libxfce4util/libxfce4util.h:27,
from /usr/include/xfce4/libxfce4ui-2/libxfce4ui/libxfce4ui.h:23,
from datetime.c:32:
/usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here
547 | struct _GTimeVal
| ^~~~~~~~~
datetime.c:62:1: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
62 | static inline guint datetime_wake_interval(const GTimeVal current_time,
| ^~~~~~
In file included from /usr/include/glib-2.0/glib/galloca.h:32,
from /usr/include/glib-2.0/glib.h:30,
from /usr/include/xfce4/libxfce4util/libxfce4util-config.h:29,
from /usr/include/xfce4/libxfce4util/libxfce4util.h:27,
from /usr/include/xfce4/libxfce4ui-2/libxfce4ui/libxfce4ui.h:23,
from datetime.c:32:
/usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here
547 | struct _GTimeVal
| ^~~~~~~~~
datetime.c: In function 'datetime_update':
datetime.c:135:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
135 | GTimeVal timeval;
| ^~~~~~~~
In file included from /usr/include/glib-2.0/glib/galloca.h:32,
from /usr/include/glib-2.0/glib.h:30,
from /usr/include/xfce4/libxfce4util/libxfce4util-config.h:29,
from /usr/include/xfce4/libxfce4util/libxfce4util.h:27,
from /usr/include/xfce4/libxfce4ui-2/libxfce4ui/libxfce4ui.h:23,
from datetime.c:32:
/usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here
547 | struct _GTimeVal
| ^~~~~~~~~
datetime.c:148:3: warning: 'g_get_current_time' is deprecated: Use 'g_get_real_time' instead [-Wdeprecated-declarations]
148 | g_get_current_time(&timeval);
| ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/giochannel.h:33,
from /usr/include/glib-2.0/glib.h:54,
from /usr/include/xfce4/libxfce4util/libxfce4util-config.h:29,
from /usr/include/xfce4/libxfce4util/libxfce4util.h:27,
from /usr/include/xfce4/libxfce4ui-2/libxfce4ui/libxfce4ui.h:23,
from datetime.c:32:
/usr/include/glib-2.0/glib/gmain.h:681:8: note: declared here
681 | void g_get_current_time (GTimeVal *result);
| ^~~~~~~~~~~~~~~~~~
datetime.c: In function 'datetime_query_tooltip':
datetime.c:198:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
198 | GTimeVal timeval;
| ^~~~~~~~
In file included from /usr/include/glib-2.0/glib/galloca.h:32,
from /usr/include/glib-2.0/glib.h:30,
from /usr/include/xfce4/libxfce4util/libxfce4util-config.h:29,
from /usr/include/xfce4/libxfce4util/libxfce4util.h:27,
from /usr/include/xfce4/libxfce4ui-2/libxfce4ui/libxfce4ui.h:23,
from datetime.c:32:
/usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here
547 | struct _GTimeVal
| ^~~~~~~~~
datetime.c:219:3: warning: 'g_get_current_time' is deprecated: Use 'g_get_real_time' instead [-Wdeprecated-declarations]
219 | g_get_current_time(&timeval);
| ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/giochannel.h:33,
from /usr/include/glib-2.0/glib.h:54,
from /usr/include/xfce4/libxfce4util/libxfce4util-config.h:29,
from /usr/include/xfce4/libxfce4util/libxfce4util.h:27,
from /usr/include/xfce4/libxfce4ui-2/libxfce4ui/libxfce4ui.h:23,
from datetime.c:32:
/usr/include/glib-2.0/glib/gmain.h:681:8: note: declared here
681 | void g_get_current_time (GTimeVal *result);
| ^~~~~~~~~~~~~~~~~~
datetime.c: In function 'datetime_create_widget':
datetime.c:682:22: warning: implicit declaration of function 'xfce_create_panel_toggle_button'; did you mean 'xfce_panel_create_toggle_button'? [-Wimplicit-function-declaration]
682 | datetime->button = xfce_create_panel_toggle_button();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| xfce_panel_create_toggle_button
datetime.c:682:20: warning: assignment to 'GtkWidget *' {aka 'struct _GtkWidget *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
682 | datetime->button = xfce_create_panel_toggle_button();
| ^
datetime.c: In function 'datetime_new':
datetime.c:721:14: warning: implicit declaration of function 'panel_slice_new0'; did you mean 'g_slice_new0'? [-Wimplicit-function-declaration]
721 | datetime = panel_slice_new0 (t_datetime);
| ^~~~~~~~~~~~~~~~
| g_slice_new0
datetime.c:721:32: error: expected expression before 't_datetime'
721 | datetime = panel_slice_new0 (t_datetime);
| ^~~~~~~~~~
datetime.c: In function 'datetime_free':
datetime.c:758:3: warning: implicit declaration of function 'panel_slice_free'; did you mean 'g_slice_free'? [-Wimplicit-function-declaration]
758 | panel_slice_free(t_datetime, datetime);
| ^~~~~~~~~~~~~~~~
| g_slice_free
datetime.c:758:20: error: expected expression before 't_datetime'
758 | panel_slice_free(t_datetime, datetime);
| ^~~~~~~~~~
datetime.c: At top level:
datetime.c:787:1: warning: data definition has no type or storage class
787 | XFCE_PANEL_PLUGIN_REGISTER(datetime_construct);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
datetime.c:787:1: warning: type defaults to 'int' in declaration of 'XFCE_PANEL_PLUGIN_REGISTER' [-Wimplicit-int]
datetime.c:787:1: warning: parameter names (without types) in function declaration
make[2]: *** [Makefile:510: libdatetime_la-datetime.lo] Error 1
make[2]: Leaving directory '/home/david/Downloads/xfce4-datetime-plugin-0.8.0/panel-plugin'
make[1]: *** [Makefile:450: all-recursive] Error 1
make[1]: Leaving directory '/home/david/Downloads/xfce4-datetime-plugin-0.8.0'
make: *** [Makefile:382: all] Error 2