{"action":"created","issue":{"url":"https://api.github.com/repos/drahnr/goatplot/issues/23","repository_url":"https://api.github.com/repos/drahnr/goatplot","labels_url":"https://api.github.com/repos/drahnr/goatplot/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/drahnr/goatplot/issues/23/comments","events_url":"https://api.github.com/repos/drahnr/goatplot/issues/23/events","html_url":"https://github.com/drahnr/goatplot/issues/23","id":174238182,"number":23,"title":"Build Error","user":{"login":"m0nkeys","id":6637287,"avatar_url":"https://avatars.githubusercontent.com/u/6637287?v=3","gravatar_id":"","url":"https://api.github.com/users/m0nkeys","html_url":"https://github.com/m0nkeys","followers_url":"https://api.github.com/users/m0nkeys/followers","following_url":"https://api.github.com/users/m0nkeys/following{/other_user}","gists_url":"https://api.github.com/users/m0nkeys/gists{/gist_id}","starred_url":"https://api.github.com/users/m0nkeys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m0nkeys/subscriptions","organizations_url":"https://api.github.com/users/m0nkeys/orgs","repos_url":"https://api.github.com/users/m0nkeys/repos","events_url":"https://api.github.com/users/m0nkeys/events{/privacy}","received_events_url":"https://api.github.com/users/m0nkeys/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-31T10:26:46Z","updated_at":"2016-08-31T11:02:33Z","closed_at":null,"body":"When compiling with any of the commands in the README, I get the following error messages:\r\n\r\n[ 4/17] Compiling src/goat-scale-interface.c\r\nIn file included from ../../src/goat-scale-interface.c:1:0:\r\n../../src/goat-scale-interface.h:10:58: error: expected ‘)’ before ‘GObject’\r\n G_DECLARE_INTERFACE (GoatScale, goat_scale, GOAT, SCALE, GObject)\r\n                                                          ^\r\n../../src/goat-scale-interface.h:31:25: error: unknown type name ‘GoatScale’\r\n void goat_scale_render (GoatScale *self);\r\n                         ^\r\n../../src/goat-scale-interface.h:36:23: error: unknown type name ‘GoatScale’\r\n void goat_scale_draw (GoatScale *self, cairo_t *cr, gint left, gint right, gint top, gint bottom, gdouble nil,\r\n                       ^\r\n../../src/goat-scale-interface.h:39:28: error: unknown type name ‘GoatScale’\r\n void goat_scale_get_range (GoatScale *scale, gdouble *min, gdouble *max);\r\n                            ^\r\n../../src/goat-scale-interface.h:40:33: error: unknown type name ‘GoatScale’\r\n void goat_scale_set_range_auto (GoatScale *scale);\r\n                                 ^\r\n../../src/goat-scale-interface.h:41:28: error: unknown type name ‘GoatScale’\r\n void goat_scale_set_range (GoatScale *scale, gdouble min, gdouble max);\r\n                            ^\r\n../../src/goat-scale-interface.h:42:31: error: unknown type name ‘GoatScale’\r\n void goat_scale_update_range (GoatScale *scale, gdouble min, gdouble max);\r\n                               ^\r\n../../src/goat-scale-interface.h:43:36: error: unknown type name ‘GoatScale’\r\n gboolean goat_scale_is_auto_range (GoatScale *scale);\r\n                                    ^\r\n../../src/goat-scale-interface.h:44:28: error: unknown type name ‘GoatScale’\r\n void goat_scale_grid_show (GoatScale *scale, gboolean show);\r\n                            ^\r\nIn file included from /usr/include/glib-2.0/gobject/gobject.h:24:0,\r\n                 from /usr/include/glib-2.0/gobject/gbinding.h:29,\r\n                 from /usr/include/glib-2.0/glib-object.h:23,\r\n                 from /usr/include/glib-2.0/gio/gioenums.h:28,\r\n                 from /usr/include/glib-2.0/gio/giotypes.h:28,\r\n                 from /usr/include/glib-2.0/gio/gio.h:26,\r\n                 from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28,\r\n                 from /usr/include/gtk-3.0/gdk/gdk.h:32,\r\n                 from /usr/include/gtk-3.0/gtk/gtk.h:30,\r\n                 from /home/pi/goatplot/src/goat-plot-enum.h:4,\r\n                 from ../../src/goat-scale-interface.h:4,\r\n                 from ../../src/goat-scale-interface.c:1:\r\n../../src/goat-scale-interface.c:3:21: error: unknown type name ‘GoatScaleInterface’\r\n G_DEFINE_INTERFACE (GoatScale, goat_scale, G_TYPE_OBJECT);\r\n                     ^\r\n/usr/include/glib-2.0/gobject/gtype.h:1718:50: note: in definition of macro ‘_G_DEFINE_INTERFACE_EXTENDED_BEGIN’\r\n static void     type_name##_default_init        (TypeName##Interface *klass); \\\r\n                                                  ^\r\n/usr/include/glib-2.0/gobject/gtype.h:1495:47: note: in expansion of macro ‘G_DEFINE_INTERFACE_WITH_CODE’\r\n #define G_DEFINE_INTERFACE(TN, t_n, T_P)      G_DEFINE_INTERFACE_WITH_CODE(TN, t_n, T_P, ;)\r\n                                               ^\r\n../../src/goat-scale-interface.c:3:1: note: in expansion of macro ‘G_DEFINE_INTERFACE’\r\n G_DEFINE_INTERFACE (GoatScale, goat_scale, G_TYPE_OBJECT);\r\n ^\r\n../../src/goat-scale-interface.c: In function ‘goat_scale_get_type’:\r\n../../src/goat-scale-interface.c:3:21: error: ‘GoatScaleInterface’ undeclared (first use in this function)\r\n G_DEFINE_INTERFACE (GoatScale, goat_scale, G_TYPE_OBJECT);\r\n                     ^\r\n/usr/include/glib-2.0/gobject/gtype.h:1729:48: note: in definition of macro ‘_G_DEFINE_INTERFACE_EXTENDED_BEGIN’\r\n                                        sizeof (TypeName##Interface), \\\r\n                                                ^\r\n/usr/include/glib-2.0/gobject/gtype.h:1495:47: note: in expansion of macro ‘G_DEFINE_INTERFACE_WITH_CODE’\r\n #define G_DEFINE_INTERFACE(TN, t_n, T_P)      G_DEFINE_INTERFACE_WITH_CODE(TN, t_n, T_P, ;)\r\n                                               ^\r\n../../src/goat-scale-interface.c:3:1: note: in expansion of macro ‘G_DEFINE_INTERFACE’\r\n G_DEFINE_INTERFACE (GoatScale, goat_scale, G_TYPE_OBJECT);\r\n ^\r\n../../src/goat-scale-interface.c:3:21: note: each undeclared identifier is reported only once for each function it appears in\r\n G_DEFINE_INTERFACE (GoatScale, goat_scale, G_TYPE_OBJECT);\r\n                     ^\r\n/usr/include/glib-2.0/gobject/gtype.h:1729:48: note: in definition of macro ‘_G_DEFINE_INTERFACE_EXTENDED_BEGIN’\r\n                                        sizeof (TypeName##Interface), \\\r\n                                                ^\r\n/usr/include/glib-2.0/gobject/gtype.h:1495:47: note: in expansion of macro ‘G_DEFINE_INTERFACE_WITH_CODE’\r\n #define G_DEFINE_INTERFACE(TN, t_n, T_P)      G_DEFINE_INTERFACE_WITH_CODE(TN, t_n, T_P, ;)\r\n                                               ^\r\n../../src/goat-scale-interface.c:3:1: note: in expansion of macro ‘G_DEFINE_INTERFACE’\r\n G_DEFINE_INTERFACE (GoatScale, goat_scale, G_TYPE_OBJECT);\r\n ^\r\n../../src/goat-scale-interface.c:3:32: error: ‘goat_scale_default_init’ undeclared (first use in this function)\r\n G_DEFINE_INTERFACE (GoatScale, goat_scale, G_TYPE_OBJECT);\r\n                                ^\r\n/usr/include/glib-2.0/gobject/gtype.h:1730:56: note: in definition of macro ‘_G_DEFINE_INTERFACE_EXTENDED_BEGIN’\r\n                                        (GClassInitFunc)type_name##_default_init, \\\r\n                                                        ^\r\n/usr/include/glib-2.0/gobject/gtype.h:1495:47: note: in expansion of macro ‘G_DEFINE_INTERFACE_WITH_CODE’\r\n #define G_DEFINE_INTERFACE(TN, t_n, T_P)      G_DEFINE_INTERFACE_WITH_CODE(TN, t_n, T_P, ;)\r\n                                               ^\r\n../../src/goat-scale-interface.c:3:1: note: in expansion of macro ‘G_DEFINE_INTERFACE’\r\n G_DEFINE_INTERFACE (GoatScale, goat_scale, G_TYPE_OBJECT);\r\n ^\r\n../../src/goat-scale-interface.c: At top level:\r\n../../src/goat-scale-interface.c:5:38: error: unknown type name ‘GoatScaleInterface’\r\n static void goat_scale_default_init (GoatScaleInterface *iface)\r\n                                      ^\r\n../../src/goat-scale-interface.c:15:23: error: unknown type name ‘GoatScale’\r\n void goat_scale_draw (GoatScale *self, cairo_t *cr, gint left, gint right, gint top, gint bottom, gdouble nil,\r\n                       ^\r\n../../src/goat-scale-interface.c:28:25: error: unknown type name ‘GoatScale’\r\n void goat_scale_render (GoatScale *self)\r\n                         ^\r\n../../src/goat-scale-interface.c:38:28: error: unknown type name ‘GoatScale’\r\n void goat_scale_get_range (GoatScale *self, gdouble *min, gdouble *max)\r\n                            ^\r\n../../src/goat-scale-interface.c:48:33: error: unknown type name ‘GoatScale’\r\n void goat_scale_set_range_auto (GoatScale *self)\r\n                                 ^\r\n../../src/goat-scale-interface.c:58:28: error: unknown type name ‘GoatScale’\r\n void goat_scale_set_range (GoatScale *self, gdouble min, gdouble max)\r\n                            ^\r\n../../src/goat-scale-interface.c:68:31: error: unknown type name ‘GoatScale’\r\n void goat_scale_update_range (GoatScale *self, gdouble min, gdouble max)\r\n                               ^\r\n../../src/goat-scale-interface.c:78:36: error: unknown type name ‘GoatScale’\r\n gboolean goat_scale_is_auto_range (GoatScale *self)\r\n                                    ^\r\n../../src/goat-scale-interface.c:89:28: error: unknown type name ‘GoatScale’\r\n void goat_scale_grid_show (GoatScale *self, gboolean show)\r\n                            ^\r\n\r\nIn file included from ../../src/goat-plot.h:26:0,\r\n                 from ../../src/goat-plot.c:21:\r\n../../src/goat-scale-interface.h:10:58: error: expected ‘)’ before ‘GObject’\r\n G_DECLARE_INTERFACE (GoatScale, goat_scale, GOAT, SCALE, GObject)\r\n                                                          ^\r\n../../src/goat-scale-interface.h:31:25: error: unknown type name ‘GoatScale’\r\n void goat_scale_render (GoatScale *self);\r\n                         ^\r\n../../src/goat-scale-interface.h:36:23: error: unknown type name ‘GoatScale’\r\n void goat_scale_draw (GoatScale *self, cairo_t *cr, gint left, gint right, gint top, gint bottom, gdouble nil,\r\n                       ^\r\n../../src/goat-scale-interface.h:39:28: error: unknown type name ‘GoatScale’\r\n void goat_scale_get_range (GoatScale *scale, gdouble *min, gdouble *max);\r\n                            ^\r\n../../src/goat-scale-interface.h:40:33: error: unknown type name ‘GoatScale’\r\n void goat_scale_set_range_auto (GoatScale *scale);\r\n                                 ^\r\n../../src/goat-scale-interface.h:41:28: error: unknown type name ‘GoatScale’\r\n void goat_scale_set_range (GoatScale *scale, gdouble min, gdouble max);\r\n                            ^\r\n../../src/goat-scale-interface.h:42:31: error: unknown type name ‘GoatScale’\r\n void goat_scale_update_range (GoatScale *scale, gdouble min, gdouble max);\r\n                               ^\r\n../../src/goat-scale-interface.h:43:36: error: unknown type name ‘GoatScale’\r\n gboolean goat_scale_is_auto_range (GoatScale *scale);\r\n                                    ^\r\n../../src/goat-scale-interface.h:44:28: error: unknown type name ‘GoatScale’\r\n void goat_scale_grid_show (GoatScale *scale, gboolean show);\r\n                            ^\r\nIn file included from ../../src/goat-plot.c:21:0:\r\n../../src/goat-plot.h:57:26: error: unknown type name ‘GoatScale’\r\n GoatPlot *goat_plot_new (GoatScale *scale_x, GoatScale *scale_y);\r\n                          ^\r\n../../src/goat-plot.h:57:46: error: unknown type name ‘GoatScale’\r\n GoatPlot *goat_plot_new (GoatScale *scale_x, GoatScale *scale_y);\r\n                                              ^\r\n../../src/goat-plot.h:66:45: error: unknown type name ‘GoatScale’\r\n void goat_plot_set_scale_x (GoatPlot *plot, GoatScale *scale_x);\r\n                                             ^\r\n../../src/goat-plot.h:67:45: error: unknown type name ‘GoatScale’\r\n void goat_plot_set_scale_y (GoatPlot *plot, GoatScale *scale_y);\r\n                                             ^\r\n../../src/goat-plot.c:41:2: error: unknown type name ‘GoatScale’\r\n  GoatScale *scale_x;\r\n  ^\r\n../../src/goat-plot.c:42:2: error: unknown type name ‘GoatScale’\r\n  GoatScale *scale_y;\r\n  ^\r\nIn file included from ../../src/goat-plot.c:47:0:\r\n../../src/goat-plot-internal.h: In function ‘draw_scales’:\r\n../../src/goat-plot-internal.h:37:2: warning: implicit declaration of function ‘GOAT_IS_SCALE’ [-Wimplicit-function-declaration]\r\n  g_assert (GOAT_IS_SCALE (priv->scale_x));\r\n  ^\r\n../../src/goat-plot-internal.h:45:2: warning: implicit declaration of function ‘goat_scale_draw’ [-Wimplicit-function-declaration]\r\n  goat_scale_draw (priv->scale_x, cr, left, right, top, bottom, x_nil, x_unit_to_pixel);\r\n  ^\r\n../../src/goat-plot.c: At top level:\r\n../../src/goat-plot.c:165:26: error: unknown type name ‘GoatScale’\r\n GoatPlot *goat_plot_new (GoatScale *x, GoatScale *y)\r\n                          ^\r\n../../src/goat-plot.c:165:40: error: unknown type name ‘GoatScale’\r\n GoatPlot *goat_plot_new (GoatScale *x, GoatScale *y)\r\n                                        ^\r\n../../src/goat-plot.c:173:45: error: unknown type name ‘GoatScale’\r\n void goat_plot_set_scale_x (GoatPlot *plot, GoatScale *scale)\r\n                                             ^\r\n../../src/goat-plot.c:181:45: error: unknown type name ‘GoatScale’\r\n void goat_plot_set_scale_y (GoatPlot *plot, GoatScale *scale)\r\n                                             ^\r\n../../src/goat-plot.c: In function ‘draw’:\r\n../../src/goat-plot.c:376:3: warning: implicit declaration of function ‘goat_scale_is_auto_range’ [-Wimplicit-function-declaration]\r\n   const gboolean register autorange_x = goat_scale_is_auto_range (priv->scale_x);\r\n   ^\r\n../../src/goat-plot.c:379:4: warning: implicit declaration of function ‘goat_scale_get_range’ [-Wimplicit-function-declaration]\r\n    goat_scale_get_range (priv->scale_x, &ref_x_min, &ref_x_max);\r\n    ^\r\n../../src/goat-plot.c:404:4: warning: implicit declaration of function ‘goat_scale_update_range’ [-Wimplicit-function-declaration]\r\n    goat_scale_update_range (priv->scale_x, ref_x_min, ref_x_max);\r\n    ^\r\n../../src/goat-plot.c: At top level:\r\n../../src/goat-plot.c:501:17: warning: ‘event’ defined but not used [-Wunused-function]\r\n static gboolean event (GtkWidget *widget, GdkEvent *event)\r\n                 ^\r\n\r\nWaf: Leaving directory `/home/pi/goatplot/build/debug'\r\nBuild failed\r\n -> task in 'objects' failed (exit status 1):\r\n        {task 1968112144: c goat-scale-interface.c -> goat-scale-interface.c.1.o}\r\n['/usr/bin/gcc', '-ggdb', '-Wall', '-fPIC', '-pthread', '-pthread', '-I/home/pi/goatplot/build/debug/src', '-I/home/pi/goatplot/src', '-I/usr/include/glib-2.0', '-I/usr/lib/arm-linux-gnueabihf/glib-2.0/include', '-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/lib/arm-linux-gnueabihf/dbus-1.0/include', '-I/usr/include/gio-unix-2.0', '-I/usr/include/cairo', '-I/usr/include/pango-1.0', '-I/usr/include/harfbuzz', '-I/usr/include/atk-1.0', '-I/usr/include/pixman-1', '-I/usr/include/freetype2', '-I/usr/include/libpng12', '-I/usr/include/gdk-pixbuf-2.0', '-D_FILE_OFFSET_BITS=64', '-DVERSION=\"0.0.11\"', '-DGETTEXT_PACKAGE=\"goatplot\"', '-DHAVE_LARGEFILE=1', '-DINLINE_MACRO=1', '-DDEBUG=1', '-DHAVE_GOBJECT=1', '-DHAVE_GLIB=1', '-DHAVE_GTK3=1', '../../src/goat-scale-interface.c', '-c', '-o', '/home/pi/goatplot/build/debug/src/goat-scale-interface.c.1.o']\r\n -> task in 'objects' failed (exit status 1):\r\n        {task 1968112080: c goat-plot.c -> goat-plot.c.1.o}\r\n['/usr/bin/gcc', '-ggdb', '-Wall', '-fPIC', '-pthread', '-pthread', '-I/home/pi/goatplot/build/debug/src', '-I/home/pi/goatplot/src', '-I/usr/include/glib-2.0', '-I/usr/lib/arm-linux-gnueabihf/glib-2.0/include', '-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/lib/arm-linux-gnueabihf/dbus-1.0/include', '-I/usr/include/gio-unix-2.0', '-I/usr/include/cairo', '-I/usr/include/pango-1.0', '-I/usr/include/harfbuzz', '-I/usr/include/atk-1.0', '-I/usr/include/pixman-1', '-I/usr/include/freetype2', '-I/usr/include/libpng12', '-I/usr/include/gdk-pixbuf-2.0', '-D_FILE_OFFSET_BITS=64', '-DVERSION=\"0.0.11\"', '-DGETTEXT_PACKAGE=\"goatplot\"', '-DHAVE_LARGEFILE=1', '-DINLINE_MACRO=1', '-DDEBUG=1', '-DHAVE_GOBJECT=1', '-DHAVE_GLIB=1', '-DHAVE_GTK3=1', '../../src/goat-plot.c', '-c', '-o', '/home/pi/goatplot/build/debug/src/goat-plot.c.1.o']\r\n"},"comment":{"url":"https://api.github.com/repos/drahnr/goatplot/issues/comments/243730930","html_url":"https://github.com/drahnr/goatplot/issues/23#issuecomment-243730930","issue_url":"https://api.github.com/repos/drahnr/goatplot/issues/23","id":243730930,"user":{"login":"drahnr","id":667047,"avatar_url":"https://avatars.githubusercontent.com/u/667047?v=3","gravatar_id":"","url":"https://api.github.com/users/drahnr","html_url":"https://github.com/drahnr","followers_url":"https://api.github.com/users/drahnr/followers","following_url":"https://api.github.com/users/drahnr/following{/other_user}","gists_url":"https://api.github.com/users/drahnr/gists{/gist_id}","starred_url":"https://api.github.com/users/drahnr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drahnr/subscriptions","organizations_url":"https://api.github.com/users/drahnr/orgs","repos_url":"https://api.github.com/users/drahnr/repos","events_url":"https://api.github.com/users/drahnr/events{/privacy}","received_events_url":"https://api.github.com/users/drahnr/received_events","type":"User","site_admin":false},"created_at":"2016-08-31T11:02:33Z","updated_at":"2016-08-31T11:02:33Z","body":"Can you please add the output of the following files:\r\n\r\n`cat /etc/*-release `\r\n`cat /proc/version`\r\n`pkg-config --libs --cflags gtk+-3.0`\r\n\r\nFrom your project directory:\r\n`git log -n1`\r\n\r\nPlease also properly highlight code or shell output properly, the logs you posted are hardly readable.\r\n\r\n---\r\n\r\nI just verified that latest git builds just fine on my laptop."}}
{"actor":{"display_login":"drahnr"}}