Package Details: gkrellsun 1.0.0-2

Git Clone URL: https://aur.archlinux.org/gkrellsun.git (read-only, click to copy)
Package Base: gkrellsun
Description: GKrellSun plugin for gkrellm2 to show sunrise and sunset
Upstream URL: http://gkrellsun.sourceforge.net/
Licenses: GPL
Submitter: biell
Maintainer: biell
Last Packager: biell
Votes: 4
Popularity: 0.000000
First Submitted: 2010-09-11 17:26 (UTC)
Last Updated: 2015-07-08 19:03 (UTC)

Latest Comments

dreieck commented on 2023-07-07 10:32 (UTC)

Fails to build() with

gkrellsun.c:20:15: error: expected ‘)’ before ‘?’ token
   20 | extern gchar* g_string_free (/*@only@*/ GString *, gboolean);

Full build() output:

==> Starting build()...

Building gkrellsun for GKrellM version 2.2.x

NOTE: GKrellM 2.2.x is for GTK+ 2.4.x versions.

cd src20; make; cd ..
make[1]: Entering directory '/home/felics/.cache/yay/gkrellsun/src/gkrellsun-1.0.0/src20'
gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -O2 -Wall -fPIC `pkg-config gtk+-2.0 --cflags` -DPACKAGE="\"gkrellsun\"" -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection   -c -o gkrellsun.o gkrellsun.c
In file included from /usr/include/glib-2.0/glib/giochannel.h:36,
                 from /usr/include/glib-2.0/glib.h:56,
                 from /usr/include/gkrellm2/log.h:37,
                 from /usr/include/gkrellm2/gkrellm.h:41,
                 from gkrellsun.c:10:
gkrellsun.c:20:15: error: expected ‘)’ before ‘?’ token
   20 | extern gchar* g_string_free (/*@only@*/ GString *, gboolean);
      |               ^~~~~~~~~~~~~
gkrellsun.c: In function ‘computeY’:
gkrellsun.c:641:19: warning: variable ‘x2’ set but not used [-Wunused-but-set-variable]
  641 |    double x0, y0, x2, y2, radius;
      |                   ^~
gkrellsun.c:641:11: warning: variable ‘x0’ set but not used [-Wunused-but-set-variable]
  641 |    double x0, y0, x2, y2, radius;
      |           ^~
gkrellsun.c: In function ‘setTextColor_cb’:
gkrellsun.c:1391:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 1391 |    gint whichTime = (gint)data % 10;
      |                     ^
gkrellsun.c:1392:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 1392 |    gint whichSun = (gint)data / 10;
      |                    ^
In file included from /usr/include/glib-2.0/gobject/gobject.h:30,
                 from /usr/include/glib-2.0/gobject/gbinding.h:31,
                 from /usr/include/glib-2.0/glib-object.h:24,
                 from /usr/include/glib-2.0/gio/gioenums.h:30,
                 from /usr/include/glib-2.0/gio/giotypes.h:30,
                 from /usr/include/glib-2.0/gio/gio.h:28,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from /usr/include/gtk-2.0/gtk/gtk.h:32,
                 from /usr/include/gkrellm2/gkrellm.h:47:
gkrellsun.c: In function ‘sun_create_tab’:
gkrellsun.c:1548:118: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 1548 |          g_signal_connect(G_OBJECT(times_drawingarea[sun][time]), "button_press_event", G_CALLBACK(setTextColor_cb), (gpointer)((sun*10)+time) );
      |                                                                                                                      ^
gkrellsun.c:1581:102: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 1581 |    (void)g_signal_connect (G_OBJECT(font_button), "button_press_event", G_CALLBACK (setTextFont_cb), (gpointer)sun);
      |                                                                                                      ^
gkrellsun.c: In function ‘gkrellm_init_plugin’:
gkrellsun.c:1880:4: warning: ‘g_atexit’ is deprecated [-Wdeprecated-declarations]
 1880 |    g_atexit(cb_plugin_disabled);
      |    ^~~~~~~~
In file included from /usr/include/glib-2.0/glib/gthread.h:36,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:34,
                 from /usr/include/glib-2.0/glib.h:34:
/usr/include/glib-2.0/glib/gutils.h:329:9: note: declared here
  329 | void    g_atexit                (GVoidFunc    func);
      |         ^~~~~~~~
make[1]: *** [<builtin>: gkrellsun.o] Error 1
make[1]: Leaving directory '/home/felics/.cache/yay/gkrellsun/src/gkrellsun-1.0.0/src20'

Of cource, package() fails subsequently:

==> Starting package()...
/bin/install: cannot stat 'src20/gkrellsun.so': No such file or directory

Regards!

micwoj92 commented on 2021-05-16 17:24 (UTC)

Hello, could you update download to https?