alarm-clock-applet / alarm-clock

Alarm Clock is a fully-featured alarm clock for use with an AppIndicator implementation.
https://alarm-clock-applet.github.io
GNU General Public License v2.0
118 stars 31 forks source link

Build failure #183

Closed rasendubi closed 1 year ago

rasendubi commented 5 years ago

alarm-clock-applet fails to build because of the following error:

make[3]: Entering directory '/build/alarm-clock-applet-0.3.4/src'
  CC       alarm-applet.o
In file included from /nix/store/vq8xwlxlaxw1gq2cahzcs6pgnakaxra8-gtk+-2.24.32-dev/include/gtk-2.0/gtk/gtk.h:234:0,
                 from alarm-applet.h:32,
                 from alarm-applet.c:26:
/nix/store/vq8xwlxlaxw1gq2cahzcs6pgnakaxra8-gtk+-2.24.32-dev/include/gtk-2.0/gtk/gtkitemfactory.h:47:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 typedef void (*GtkItemFactoryCallback)  ();
 ^~~~~~~
  CC       player.o
  CC       util.o
util.c: In function 'get_alarm_timestamp':
util.c:57:31: error: '%c' yields only last 2 digits of year in some locales [-Werror=format-y2k]
  strftime (tmp, sizeof (tmp), "%c", tm);
                               ^~~~
cc1: some warnings being treated as errors

gcc (GCC) 7.3.0

-Werror=format-y2k is enabled by -Werror=format=2 in configuration (aclocal.m4 in release tar).

Mohammad-Mohsen commented 3 years ago

What's your system info? I'm on Mint 20 (based on Ubuntu 20.04) and getting the same error... This project has not a maintainer currently; we are on our own

rasendubi commented 3 years ago

@Mohammad-Mohsen I'm on NixOS. Looking through the logs, it looks like I solved the issue by building from GitHub release: https://github.com/NixOS/nixpkgs/pull/44872

If you have Nix installed, you can get alarm-clock-applet with nix-shell -p alarm-clock-applet (or install it with nix-env -iA alarm-clock-applet).

gentoo90 commented 3 years ago

./configure --enable-compile-warnings=minimum fixed that

orbsim commented 2 years ago

@gentoo90 Thank you so much ... you saved me :D