I've downloaded the most recent version from the bazaar repository, initial building works. But when I try to rebuild it, it never works, always fails with the same error. Cleaning it and a complete rebuild succeeds. Another thing, which I don't understand, why it is rebuilding some sources I haven't touched at all.
With make:
-----------------------------------------------------------------------
[moritz@phi _build]$ make
Scanning dependencies of target midori-core-vala
[ 0%] Building C object midori/CMakeFiles/midori-core-vala.dir/midori-hsts.c.o
[ 0%] Building C object midori/CMakeFiles/midori-core-vala.dir/katze-separatoraction.c.o
[ 1%] Building C object midori/CMakeFiles/midori-core-vala.dir/midori-paths.c.o
[ 1%] Building C object midori/CMakeFiles/midori-core-vala.dir/midori-uri.c.o
[ 2%] Building C object midori/CMakeFiles/midori-core-vala.dir/midori-download.c.o
[ 2%] Building C object midori/CMakeFiles/midori-core-vala.dir/midori-notebook.c.o
[ 2%] Building C object midori/CMakeFiles/midori-core-vala.dir/midori-window.c.o
[ 3%] Building C object midori/CMakeFiles/midori-core-vala.dir/midori-database.c.o
[ 3%] Building C object midori/CMakeFiles/midori-core-vala.dir/midori-tab.c.o
[ 3%] Building C object midori/CMakeFiles/midori-core-vala.dir/midori-searchcompletion.c.o
[ 4%] Building C object midori/CMakeFiles/midori-core-vala.dir/midori-historycompletion.c.o
[ 4%] Building C object midori/CMakeFiles/midori-core-vala.dir/midori-viewable.c.o
[ 4%] Building C object midori/CMakeFiles/midori-core-vala.dir/midori-settings.c.o
[ 5%] Building C object midori/CMakeFiles/midori-core-vala.dir/midori-speeddial.c.o
[ 5%] Building C object midori/CMakeFiles/midori-core-vala.dir/midori-viewcompletion.c.o
[ 6%] Building C object midori/CMakeFiles/midori-core-vala.dir/midori-historydatabase.c.o
[ 6%] Building C object midori/CMakeFiles/midori-core-vala.dir/midori-completion.c.o
[ 6%] Building C object midori/CMakeFiles/midori-core-vala.dir/midori-contextaction.c.o
[ 7%] Building C object midori/CMakeFiles/midori-core-vala.dir/midori-bookmarksdatabase.c.o
[ 7%] Building C object midori/CMakeFiles/midori-core-vala.dir/midori-panedaction.c.o
[ 7%] Building C object midori/CMakeFiles/midori-core-vala.dir/midori-dialog.c.o
[ 8%] Building C object midori/CMakeFiles/midori-core-vala.dir/midori-extensions-column.c.o
[ 8%] Linking C static library libmidori-core-vala.a
[ 9%] Built target midori-core-vala
Scanning dependencies of target midori-core
[ 10%] Building C object midori/CMakeFiles/midori-core.dir/__/katze/katze-array.c.o
[ 10%] Building C object midori/CMakeFiles/midori-core.dir/__/katze/katze-cellrenderercomboboxtext.c.o
[ 11%] Building C object midori/CMakeFiles/midori-core.dir/__/katze/katze-preferences.c.o
[ 11%] Building C object midori/CMakeFiles/midori-core.dir/__/katze/katze-utils.c.o
[ 11%] Building C object midori/CMakeFiles/midori-core.dir/__/katze/gtk3-compat.c.o
[ 12%] Building C object midori/CMakeFiles/midori-core.dir/__/katze/katze-http-auth.c.o
[ 12%] Building C object midori/CMakeFiles/midori-core.dir/__/katze/katze-item.c.o
[ 12%] Building C object midori/CMakeFiles/midori-core.dir/__/katze/katze-arrayaction.c.o
[ 13%] Building C object midori/CMakeFiles/midori-core.dir/__/panels/midori-extensions.c.o
[ 13%] Building C object midori/CMakeFiles/midori-core.dir/__/panels/midori-history.c.o
[ 13%] Building C object midori/CMakeFiles/midori-core.dir/__/panels/midori-bookmarks.c.o
[ 14%] Building C object midori/CMakeFiles/midori-core.dir/__/toolbars/midori-findbar.c.o
[ 14%] Building C object midori/CMakeFiles/midori-core.dir/midori-privatedata.c.o
[ 15%] Building C object midori/CMakeFiles/midori-core.dir/midori-locationaction.c.o
[ 15%] Building C object midori/CMakeFiles/midori-core.dir/midori-frontend.c.o
[ 15%] Building C object midori/CMakeFiles/midori-core.dir/midori-panel.c.o
[ 16%] Building C object midori/CMakeFiles/midori-core.dir/midori-websettings.c.o
[ 16%] Building C object midori/CMakeFiles/midori-core.dir/midori-app.c.o
[ 16%] Building C object midori/CMakeFiles/midori-core.dir/midori-view.c.o
[ 17%] Building C object midori/CMakeFiles/midori-core.dir/midori-extension.c.o
[ 17%] Building C object midori/CMakeFiles/midori-core.dir/midori-session.c.o
[ 17%] Building C object midori/CMakeFiles/midori-core.dir/midori-bookmarks-db.c.o
[ 18%] Building C object midori/CMakeFiles/midori-core.dir/midori-browser.c.o
[ 18%] Building C object midori/CMakeFiles/midori-core.dir/midori-preferences.c.o
[ 19%] Building C object midori/CMakeFiles/midori-core.dir/midori-history.c.o
[ 19%] Building C object midori/CMakeFiles/midori-core.dir/midori-searchaction.c.o
[ 19%] Building C object midori/CMakeFiles/midori-core.dir/midori-array.c.o
[ 20%] Building C object midori/CMakeFiles/midori-core.dir/sokoke.c.o
[ 20%] Building C object midori/CMakeFiles/midori-core.dir/marshal.c.o
[ 20%] Linking C shared library libmidori-core.so
[ 20%] Built target midori-core
Scanning dependencies of target midori
[ 20%] Building C object midori/CMakeFiles/midori.dir/main.c.o
[ 21%] Linking C executable midori
[ 21%] Built target midori
Scanning dependencies of target about
[ 21%] Building C object extensions/CMakeFiles/about.dir/about.c.o
[ 22%] Linking C shared module libabout.so
[ 22%] Built target about
Scanning dependencies of target adblock
[ 22%] Building C object extensions/CMakeFiles/adblock.dir/adblock/element.c.o
/home/moritz/Downloads/source/midori/midori/_build/extensions/adblock/element.c:35:41: error: unknown type name ‘AdblockFeature’
static void adblock_element_real_clear (AdblockFeature* base);
^
element.c:60:1: error: unknown type name ‘AdblockElement’
element.c: In function ‘adblock_element_construct’:
element.c:61:2: error: unknown type name ‘AdblockElement’
/home/moritz/Downloads/source/midori/midori/extensions/adblock/element.vala:18:10: error: ‘AdblockElement’ undeclared (first use in this function)
base ();
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/element.vala:18:10: note: each undeclared identifier is reported only once for each function it appears in
/home/moritz/Downloads/source/midori/midori/extensions/adblock/element.vala:18:25: error: expected expression before ‘)’ token
/home/moritz/Downloads/source/midori/midori/extensions/adblock/element.vala:19:6: error: request for member ‘priv’ in something not a structure or union
debug_element = "adblock:element" in (Environment.get_variable ("MIDORI_DEBUG") ?? "");
^
element.c: At top level:
element.c:87:1: error: unknown type name ‘AdblockElement’
/home/moritz/Downloads/source/midori/midori/extensions/adblock/element.vala: In function ‘adblock_element_new’:
/home/moritz/Downloads/source/midori/midori/extensions/adblock/element.vala:17:36: error: ‘ADBLOCK_TYPE_ELEMENT’ undeclared (first use in this function)
element.c: At top level:
element.c:101:41: error: unknown type name ‘AdblockFeature’
element.c:122:32: error: unknown type name ‘AdblockElement’
element.c:148:30: error: unknown type name ‘AdblockElement’
element.c:195:41: error: unknown type name ‘AdblockElementClass’
element.c:208:44: error: unknown type name ‘AdblockElement’
element.c: In function ‘adblock_element_finalize’:
element.c:216:2: error: unknown type name ‘AdblockElement’
In file included from /usr/include/glib-2.0/gobject/gobject.h:24:0,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:23,
from /home/moritz/Downloads/source/midori/midori/_build/extensions/adblock/element.c:16:
/home/moritz/Downloads/source/midori/midori/extensions/adblock/element.vala:13:64: error: ‘AdblockElement’ undeclared (first use in this function)
/usr/include/glib-2.0/gobject/gtype.h:2186:7: note: in definition of macro ‘_G_TYPE_CIC’
((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/element.vala:13:9: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
public class Element : Feature {
^
/usr/include/glib-2.0/gobject/gtype.h:2186:10: error: expected expression before ‘)’ token
((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
^
/usr/include/glib-2.0/gobject/gtype.h:479:66: note: in expansion of macro ‘_G_TYPE_CIC’
#define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type) (_G_TYPE_CIC ((instance), (g_type), c_type))
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/element.vala:13:9: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
public class Element : Feature {
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/element.vala:14:28: error: request for member ‘blockcssprivate’ in something not a structure or union
public HashTable<string, string> blockcssprivate;
^
/home/moritz/Downloads/source/midori/midori/_build/extensions/adblock/element.c:22:37: note: in definition of macro ‘_g_hash_table_unref0’
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/element.vala:14:28: error: request for member ‘blockcssprivate’ in something not a structure or union
public HashTable<string, string> blockcssprivate;
^
/home/moritz/Downloads/source/midori/midori/_build/extensions/adblock/element.c:22:60: note: in definition of macro ‘_g_hash_table_unref0’
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/element.vala:14:28: error: request for member ‘blockcssprivate’ in something not a structure or union
public HashTable<string, string> blockcssprivate;
^
/home/moritz/Downloads/source/midori/midori/_build/extensions/adblock/element.c:22:87: note: in definition of macro ‘_g_hash_table_unref0’
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
^
element.c: In function ‘adblock_element_get_type’:
element.c:230:57: error: ‘AdblockElementClass’ undeclared (first use in this function)
element.c:230:144: error: ‘adblock_element_class_init’ undeclared (first use in this function)
element.c:230:213: error: ‘AdblockElement’ undeclared (first use in this function)
element.c:230:253: error: ‘adblock_element_instance_init’ undeclared (first use in this function)
element.c:232:53: error: ‘ADBLOCK_TYPE_FEATURE’ undeclared (first use in this function)
extensions/CMakeFiles/adblock.dir/build.make:117: recipe for target 'extensions/CMakeFiles/adblock.dir/adblock/element.c.o' failed
make[2]: *** [extensions/CMakeFiles/adblock.dir/adblock/element.c.o] Error 1
CMakeFiles/Makefile2:352: recipe for target 'extensions/CMakeFiles/adblock.dir/all' failed
make[1]: *** [extensions/CMakeFiles/adblock.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
-----------------------------------------------------------------------
And with ninja the same:
-----------------------------------------------------------------------
ninja: warning: multiple rules generate extensions/status-clock.h. builds involving this target will not be correct; continuing anyway [-w dupbuild=warn]
[3/22] Building C object extensions/CMakeFiles/adblock.dir/adblock/element.c.o
FAILED: /usr/bin/cc -DDOCDIR=\"/usr/share/doc/midori\" -DENABLE_NLS=1 -DGCR_VERSION=\"3.16.0\" -DGETTEXT_PACKAGE=\"midori\" -DGIO_VERSION=\"2.44.1\" -DGRANITE_VERSION=\"No\" -DGTK_VERSION=\"2.24.28\" -DHAVE_CONFIG_H=1 -DHAVE_GCR -DHAVE_LIBSOUP_2_40_0 -DHAVE_LIBSOUP_2_48_0 -DHAVE_LIBXML -DHAVE_OSX=0 -DHAVE_SIGNAL_H -DHAVE_UNISTD_H -DHAVE_X11_EXTENSIONS_SCRNSAVER_H -DHAVE_ZEITGEIST -DLIBDIR=\"/usr/lib64\" -DLIBNOTIFY_VERSION=\"No\" -DLIBSOUP_VERSION=\"2.50.0\" -DLOCALEDIR=\"/usr/share/locale\" -DMDATADIR=\"/usr/share\" -DMIDORI_MAJOR_VERSION=0 -DMIDORI_MICRO_VERSION=10 -DMIDORI_MINOR_VERSION=5 -DMIDORI_VERSION_SUFFIX=\"0.5.10\" -DPACKAGE_BUGREPORT=\"https://bugs.launchpad.net/midori\" -DPACKAGE_NAME=\"midori\" -DPACKAGE_VERSION="\"0.5.10~r7012\"" -DSYSCONFDIR=\"/usr/etc\" -DWEBKIT_VERSION=\"2.4.9\" -Dadblock_EXPORTS -fPIC -I../ -I../midori -I../katze -I/usr/include/libsoup-gnome-2.4 -I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/zeitgeist-2.0 -I/usr/include/gcr-3 -I/usr/include/gck-1 -I/usr/include/p11-kit-1 -I/usr/include/webkitgtk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I. -Imidori -Iextensions -w -g -fPIC -MMD -MT extensions/CMakeFiles/adblock.dir/adblock/element.c.o -MF extensions/CMakeFiles/adblock.dir/adblock/element.c.o.d -o extensions/CMakeFiles/adblock.dir/adblock/element.c.o -c extensions/adblock/element.c
extensions/adblock/element.c:35:41: error: unknown type name ‘AdblockFeature’
static void adblock_element_real_clear (AdblockFeature* base);
^
element.c:60:1: error: unknown type name ‘AdblockElement’
element.c: In function ‘adblock_element_construct’:
element.c:61:2: error: unknown type name ‘AdblockElement’
/home/moritz/Downloads/source/midori/midori/extensions/adblock/element.vala:18:10: error: ‘AdblockElement’ undeclared (first use in this function)
base ();
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/element.vala:18:10: note: each undeclared identifier is reported only once for each function it appears in
/home/moritz/Downloads/source/midori/midori/extensions/adblock/element.vala:18:25: error: expected expression before ‘)’ token
/home/moritz/Downloads/source/midori/midori/extensions/adblock/element.vala:19:6: error: request for member ‘priv’ in something not a structure or union
debug_element = "adblock:element" in (Environment.get_variable ("MIDORI_DEBUG") ?? "");
^
element.c: At top level:
element.c:87:1: error: unknown type name ‘AdblockElement’
/home/moritz/Downloads/source/midori/midori/extensions/adblock/element.vala: In function ‘adblock_element_new’:
/home/moritz/Downloads/source/midori/midori/extensions/adblock/element.vala:17:36: error: ‘ADBLOCK_TYPE_ELEMENT’ undeclared (first use in this function)
element.c: At top level:
element.c:101:41: error: unknown type name ‘AdblockFeature’
element.c:122:32: error: unknown type name ‘AdblockElement’
element.c:148:30: error: unknown type name ‘AdblockElement’
element.c:195:41: error: unknown type name ‘AdblockElementClass’
element.c:208:44: error: unknown type name ‘AdblockElement’
element.c: In function ‘adblock_element_finalize’:
element.c:216:2: error: unknown type name ‘AdblockElement’
In file included from /usr/include/glib-2.0/gobject/gobject.h:24:0,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:23,
from extensions/adblock/element.c:16:
/home/moritz/Downloads/source/midori/midori/extensions/adblock/element.vala:13:64: error: ‘AdblockElement’ undeclared (first use in this function)
/usr/include/glib-2.0/gobject/gtype.h:2186:7: note: in definition of macro ‘_G_TYPE_CIC’
((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/element.vala:13:9: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
public class Element : Feature {
^
/usr/include/glib-2.0/gobject/gtype.h:2186:10: error: expected expression before ‘)’ token
((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
^
/usr/include/glib-2.0/gobject/gtype.h:479:66: note: in expansion of macro ‘_G_TYPE_CIC’
#define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type) (_G_TYPE_CIC ((instance), (g_type), c_type))
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/element.vala:13:9: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
public class Element : Feature {
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/element.vala:14:28: error: request for member ‘blockcssprivate’ in something not a structure or union
public HashTable<string, string> blockcssprivate;
^
extensions/adblock/element.c:22:37: note: in definition of macro ‘_g_hash_table_unref0’
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/element.vala:14:28: error: request for member ‘blockcssprivate’ in something not a structure or union
public HashTable<string, string> blockcssprivate;
^
extensions/adblock/element.c:22:60: note: in definition of macro ‘_g_hash_table_unref0’
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/element.vala:14:28: error: request for member ‘blockcssprivate’ in something not a structure or union
public HashTable<string, string> blockcssprivate;
^
extensions/adblock/element.c:22:87: note: in definition of macro ‘_g_hash_table_unref0’
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
^
element.c: In function ‘adblock_element_get_type’:
element.c:230:57: error: ‘AdblockElementClass’ undeclared (first use in this function)
element.c:230:144: error: ‘adblock_element_class_init’ undeclared (first use in this function)
element.c:230:213: error: ‘AdblockElement’ undeclared (first use in this function)
element.c:230:253: error: ‘adblock_element_instance_init’ undeclared (first use in this function)
element.c:232:53: error: ‘ADBLOCK_TYPE_FEATURE’ undeclared (first use in this function)
[3/22] Building C object extensions/CMakeFiles/adblock.dir/adblock/config.c.o
FAILED: /usr/bin/cc -DDOCDIR=\"/usr/share/doc/midori\" -DENABLE_NLS=1 -DGCR_VERSION=\"3.16.0\" -DGETTEXT_PACKAGE=\"midori\" -DGIO_VERSION=\"2.44.1\" -DGRANITE_VERSION=\"No\" -DGTK_VERSION=\"2.24.28\" -DHAVE_CONFIG_H=1 -DHAVE_GCR -DHAVE_LIBSOUP_2_40_0 -DHAVE_LIBSOUP_2_48_0 -DHAVE_LIBXML -DHAVE_OSX=0 -DHAVE_SIGNAL_H -DHAVE_UNISTD_H -DHAVE_X11_EXTENSIONS_SCRNSAVER_H -DHAVE_ZEITGEIST -DLIBDIR=\"/usr/lib64\" -DLIBNOTIFY_VERSION=\"No\" -DLIBSOUP_VERSION=\"2.50.0\" -DLOCALEDIR=\"/usr/share/locale\" -DMDATADIR=\"/usr/share\" -DMIDORI_MAJOR_VERSION=0 -DMIDORI_MICRO_VERSION=10 -DMIDORI_MINOR_VERSION=5 -DMIDORI_VERSION_SUFFIX=\"0.5.10\" -DPACKAGE_BUGREPORT=\"https://bugs.launchpad.net/midori\" -DPACKAGE_NAME=\"midori\" -DPACKAGE_VERSION="\"0.5.10~r7012\"" -DSYSCONFDIR=\"/usr/etc\" -DWEBKIT_VERSION=\"2.4.9\" -Dadblock_EXPORTS -fPIC -I../ -I../midori -I../katze -I/usr/include/libsoup-gnome-2.4 -I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/zeitgeist-2.0 -I/usr/include/gcr-3 -I/usr/include/gck-1 -I/usr/include/p11-kit-1 -I/usr/include/webkitgtk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I. -Imidori -Iextensions -w -g -fPIC -MMD -MT extensions/CMakeFiles/adblock.dir/adblock/config.c.o -MF extensions/CMakeFiles/adblock.dir/adblock/config.c.o.d -o extensions/CMakeFiles/adblock.dir/adblock/config.c.o -c extensions/adblock/config.c
extensions/adblock/config.c:50:38: error: unknown type name ‘AdblockConfig’
static void adblock_config_set_path (AdblockConfig* self, const gchar* value);
^
extensions/adblock/config.c:51:38: error: unknown type name ‘AdblockConfig’
static void adblock_config_set_size (AdblockConfig* self, guint value);
^
extensions/adblock/config.c:52:39: error: unknown type name ‘AdblockConfig’
static void adblock_config_load_file (AdblockConfig* self, const gchar* filename);
^
extensions/adblock/config.c:53:45: error: unknown type name ‘AdblockConfig’
static void adblock_config_enabled_changed (AdblockConfig* self, GParamSpec* pspec);
^
extensions/adblock/config.c:55:44: error: unknown type name ‘AdblockConfig’
static void adblock_config_active_changed (AdblockConfig* self, GObject* subscription, GParamSpec* pspec);
^
extensions/adblock/config.c:56:44: error: unknown type name ‘AdblockConfig’
static void adblock_config_update_filters (AdblockConfig* self);
^
extensions/adblock/config.c:57:42: error: unknown type name ‘AdblockConfig’
static gboolean adblock_config_contains (AdblockConfig* self, AdblockSubscription* subscription);
^
extensions/adblock/config.c:57:63: error: unknown type name ‘AdblockSubscription’
static gboolean adblock_config_contains (AdblockConfig* self, AdblockSubscription* subscription);
^
config.c:83:1: error: unknown type name ‘AdblockConfig’
config.c: In function ‘adblock_config_construct’:
config.c:84:2: error: unknown type name ‘AdblockConfig’
/home/moritz/Downloads/source/midori/midori/extensions/adblock/config.vala:20:10: error: ‘AdblockConfig’ undeclared (first use in this function)
public Config (string? path, string? presets) {
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/config.vala:20:10: note: each undeclared identifier is reported only once for each function it appears in
/home/moritz/Downloads/source/midori/midori/extensions/adblock/config.vala:20:24: error: expected expression before ‘)’ token
public Config (string? path, string? presets) {
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/config.vala:21:6: error: request for member ‘priv’ in something not a structure or union
should_save = false;
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/config.vala:22:40: error: request for member ‘priv’ in something not a structure or union
subscriptions = new GLib.List<Subscription> ();
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/config.vala:22:2: note: in expansion of macro ‘__g_list_free__g_object_unref0_0’
subscriptions = new GLib.List<Subscription> ();
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/config.vala:22:40: error: request for member ‘priv’ in something not a structure or union
subscriptions = new GLib.List<Subscription> ();
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/config.vala:22:2: note: in expansion of macro ‘__g_list_free__g_object_unref0_0’
subscriptions = new GLib.List<Subscription> ();
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/config.vala:22:40: error: request for member ‘priv’ in something not a structure or union
subscriptions = new GLib.List<Subscription> ();
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/config.vala:22:2: note: in expansion of macro ‘__g_list_free__g_object_unref0_0’
subscriptions = new GLib.List<Subscription> ();
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/config.vala:22:6: error: request for member ‘priv’ in something not a structure or union
subscriptions = new GLib.List<Subscription> ();
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/config.vala:28:6: error: request for member ‘priv’ in something not a structure or union
should_save = true;
^
config.c: At top level:
config.c:120:1: error: unknown type name ‘AdblockConfig’
/home/moritz/Downloads/source/midori/midori/extensions/adblock/config.vala: In function ‘adblock_config_new’:
/home/moritz/Downloads/source/midori/midori/extensions/adblock/config.vala:20:35: error: ‘ADBLOCK_TYPE_CONFIG’ undeclared (first use in this function)
public Config (string? path, string? presets) {
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/config.vala: In function ‘_adblock_config_enabled_changed_g_object_notify’:
/home/moritz/Downloads/source/midori/midori/extensions/adblock/config.vala:66:35: error: ‘AdblockConfig’ undeclared (first use in this function)
notify["enabled"].connect (enabled_changed);
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/config.vala:66:49: error: expected expression before ‘)’ token
notify["enabled"].connect (enabled_changed);
^
config.c: At top level:
config.c:302:39: error: unknown type name ‘AdblockConfig’
config.c:670:45: error: unknown type name ‘AdblockConfig’
config.c:689:44: error: unknown type name ‘AdblockConfig’
config.c:702:44: error: unknown type name ‘AdblockConfig’
config.c:1033:27: error: unknown type name ‘AdblockConfig’
config.c:1095:1: error: unknown type name ‘AdblockSubscription’
config.c:1095:42: error: unknown type name ‘AdblockConfig’
config.c:1116:42: error: unknown type name ‘AdblockConfig’
config.c:1116:63: error: unknown type name ‘AdblockSubscription’
/home/moritz/Downloads/source/midori/midori/extensions/adblock/config.vala: In function ‘_adblock_config_active_changed_g_object_notify’:
/home/moritz/Downloads/source/midori/midori/extensions/adblock/config.vala:128:34: error: ‘AdblockConfig’ undeclared (first use in this function)
sub.notify["active"].connect (active_changed);
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/config.vala:128:48: error: expected expression before ‘)’ token
sub.notify["active"].connect (active_changed);
^
config.c: At top level:
config.c:1190:30: error: unknown type name ‘AdblockConfig’
config.c:1190:51: error: unknown type name ‘AdblockSubscription’
config.c:1245:29: error: unknown type name ‘AdblockConfig’
config.c:1245:50: error: unknown type name ‘AdblockSubscription’
config.c:1287:39: error: unknown type name ‘AdblockConfig’
config.c:1302:38: error: unknown type name ‘AdblockConfig’
config.c:1321:38: error: unknown type name ‘AdblockConfig’
config.c:1336:34: error: unknown type name ‘AdblockConfig’
config.c:1350:32: error: unknown type name ‘AdblockConfig’
config.c:1365:38: error: unknown type name ‘AdblockConfig’
config.c:1379:40: error: unknown type name ‘AdblockConfigClass’
config.c:1400:43: error: unknown type name ‘AdblockConfig’
config.c: In function ‘adblock_config_finalize’:
config.c:1408:2: error: unknown type name ‘AdblockConfig’
In file included from /usr/include/glib-2.0/gobject/gobject.h:24:0,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:23,
from extensions/adblock/config.c:16:
/home/moritz/Downloads/source/midori/midori/extensions/adblock/config.vala:13:63: error: ‘AdblockConfig’ undeclared (first use in this function)
/usr/include/glib-2.0/gobject/gtype.h:2186:7: note: in definition of macro ‘_G_TYPE_CIC’
((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/config.vala:13:9: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
public class Config : GLib.Object {
^
/usr/include/glib-2.0/gobject/gtype.h:2186:10: error: expected expression before ‘)’ token
((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
^
/usr/include/glib-2.0/gobject/gtype.h:479:66: note: in expansion of macro ‘_G_TYPE_CIC’
#define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type) (_G_TYPE_CIC ((instance), (g_type), c_type))
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/config.vala:13:9: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
public class Config : GLib.Object {
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/config.vala:14:40: error: request for member ‘priv’ in something not a structure or union
List<Subscription> subscriptions;
^
extensions/adblock/config.c:22:49: note: in definition of macro ‘__g_list_free__g_object_unref0_0’
#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/config.vala:14:40: error: request for member ‘priv’ in something not a structure or union
List<Subscription> subscriptions;
^
extensions/adblock/config.c:22:72: note: in definition of macro ‘__g_list_free__g_object_unref0_0’
#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/config.vala:14:40: error: request for member ‘priv’ in something not a structure or union
List<Subscription> subscriptions;
^
extensions/adblock/config.c:22:111: note: in definition of macro ‘__g_list_free__g_object_unref0_0’
#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/config.vala:15:16: error: request for member ‘priv’ in something not a structure or union
public string? path { get; private set; }
^
extensions/adblock/config.c:23:24: note: in definition of macro ‘_g_free0’
#define _g_free0(var) (var = (g_free (var), NULL))
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/config.vala:15:16: error: request for member ‘priv’ in something not a structure or union
public string? path { get; private set; }
^
extensions/adblock/config.c:23:39: note: in definition of macro ‘_g_free0’
#define _g_free0(var) (var = (g_free (var), NULL))
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/config.vala:16:25: error: request for member ‘priv’ in something not a structure or union
extensions/adblock/config.c:24:34: note: in definition of macro ‘_g_key_file_free0’
#define _g_key_file_free0(var) ((var == NULL) ? NULL : (var = (g_key_file_free (var), NULL)))
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/config.vala:16:25: error: request for member ‘priv’ in something not a structure or union
extensions/adblock/config.c:24:57: note: in definition of macro ‘_g_key_file_free0’
#define _g_key_file_free0(var) ((var == NULL) ? NULL : (var = (g_key_file_free (var), NULL)))
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/config.vala:16:25: error: request for member ‘priv’ in something not a structure or union
extensions/adblock/config.c:24:81: note: in definition of macro ‘_g_key_file_free0’
#define _g_key_file_free0(var) ((var == NULL) ? NULL : (var = (g_key_file_free (var), NULL)))
^
config.c: In function ‘adblock_config_get_type’:
config.c:1426:57: error: ‘AdblockConfigClass’ undeclared (first use in this function)
config.c:1426:143: error: ‘adblock_config_class_init’ undeclared (first use in this function)
config.c:1426:211: error: ‘AdblockConfig’ undeclared (first use in this function)
config.c:1426:250: error: ‘adblock_config_instance_init’ undeclared (first use in this function)
config.c: In function ‘_vala_adblock_config_get_property’:
config.c:1436:2: error: unknown type name ‘AdblockConfig’
In file included from /usr/include/glib-2.0/gobject/gobject.h:24:0,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:23,
from extensions/adblock/config.c:16:
config.c:1437:66: error: ‘AdblockConfig’ undeclared (first use in this function)
/usr/include/glib-2.0/gobject/gtype.h:2186:7: note: in definition of macro ‘_G_TYPE_CIC’
((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
^
config.c:1437:9: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
/usr/include/glib-2.0/gobject/gtype.h:2186:10: error: expected expression before ‘)’ token
((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
^
/usr/include/glib-2.0/gobject/gtype.h:479:66: note: in expansion of macro ‘_G_TYPE_CIC’
#define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type) (_G_TYPE_CIC ((instance), (g_type), c_type))
^
config.c:1437:9: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
config.c: In function ‘_vala_adblock_config_set_property’:
config.c:1470:2: error: unknown type name ‘AdblockConfig’
In file included from /usr/include/glib-2.0/gobject/gobject.h:24:0,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:23,
from extensions/adblock/config.c:16:
config.c:1471:66: error: ‘AdblockConfig’ undeclared (first use in this function)
/usr/include/glib-2.0/gobject/gtype.h:2186:7: note: in definition of macro ‘_G_TYPE_CIC’
((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
^
config.c:1471:9: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
/usr/include/glib-2.0/gobject/gtype.h:2186:10: error: expected expression before ‘)’ token
((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
^
/usr/include/glib-2.0/gobject/gtype.h:479:66: note: in expansion of macro ‘_G_TYPE_CIC’
#define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type) (_G_TYPE_CIC ((instance), (g_type), c_type))
^
config.c:1471:9: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
[3/22] Building C object extensions/CMakeFiles/adblock.dir/adblock/keys.c.o
FAILED: /usr/bin/cc -DDOCDIR=\"/usr/share/doc/midori\" -DENABLE_NLS=1 -DGCR_VERSION=\"3.16.0\" -DGETTEXT_PACKAGE=\"midori\" -DGIO_VERSION=\"2.44.1\" -DGRANITE_VERSION=\"No\" -DGTK_VERSION=\"2.24.28\" -DHAVE_CONFIG_H=1 -DHAVE_GCR -DHAVE_LIBSOUP_2_40_0 -DHAVE_LIBSOUP_2_48_0 -DHAVE_LIBXML -DHAVE_OSX=0 -DHAVE_SIGNAL_H -DHAVE_UNISTD_H -DHAVE_X11_EXTENSIONS_SCRNSAVER_H -DHAVE_ZEITGEIST -DLIBDIR=\"/usr/lib64\" -DLIBNOTIFY_VERSION=\"No\" -DLIBSOUP_VERSION=\"2.50.0\" -DLOCALEDIR=\"/usr/share/locale\" -DMDATADIR=\"/usr/share\" -DMIDORI_MAJOR_VERSION=0 -DMIDORI_MICRO_VERSION=10 -DMIDORI_MINOR_VERSION=5 -DMIDORI_VERSION_SUFFIX=\"0.5.10\" -DPACKAGE_BUGREPORT=\"https://bugs.launchpad.net/midori\" -DPACKAGE_NAME=\"midori\" -DPACKAGE_VERSION="\"0.5.10~r7012\"" -DSYSCONFDIR=\"/usr/etc\" -DWEBKIT_VERSION=\"2.4.9\" -Dadblock_EXPORTS -fPIC -I../ -I../midori -I../katze -I/usr/include/libsoup-gnome-2.4 -I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/zeitgeist-2.0 -I/usr/include/gcr-3 -I/usr/include/gck-1 -I/usr/include/p11-kit-1 -I/usr/include/webkitgtk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I. -Imidori -Iextensions -w -g -fPIC -MMD -MT extensions/CMakeFiles/adblock.dir/adblock/keys.c.o -MF extensions/CMakeFiles/adblock.dir/adblock/keys.c.o.d -o extensions/CMakeFiles/adblock.dir/adblock/keys.c.o -c extensions/adblock/keys.c
extensions/adblock/keys.c:39:38: error: unknown type name ‘AdblockFeature’
static void adblock_keys_real_clear (AdblockFeature* base);
^
extensions/adblock/keys.c:40:8: error: unknown type name ‘AdblockDirective’
static AdblockDirective* adblock_keys_real_match (AdblockFeature* base, const gchar* request_uri, const gchar* page_uri, GError** error);
^
extensions/adblock/keys.c:40:51: error: unknown type name ‘AdblockFeature’
static AdblockDirective* adblock_keys_real_match (AdblockFeature* base, const gchar* request_uri, const gchar* page_uri, GError** error);
^
extensions/adblock/keys.c:42:8: error: unknown type name ‘AdblockDirective’
static AdblockDirective* _adblock_directive_dup (AdblockDirective* self);
^
extensions/adblock/keys.c:42:50: error: unknown type name ‘AdblockDirective’
static AdblockDirective* _adblock_directive_dup (AdblockDirective* self);
^
keys.c:62:1: error: unknown type name ‘AdblockKeys’
keys.c:62:57: error: unknown type name ‘AdblockOptions’
keys.c:77:1: error: unknown type name ‘AdblockKeys’
keys.c:77:32: error: unknown type name ‘AdblockOptions’
keys.c:84:38: error: unknown type name ‘AdblockFeature’
keys.c:120:8: error: unknown type name ‘AdblockDirective’
keys.c:120:50: error: unknown type name ‘AdblockDirective’
keys.c:139:8: error: unknown type name ‘AdblockDirective’
keys.c:139:51: error: unknown type name ‘AdblockFeature’
keys.c:368:38: error: unknown type name ‘AdblockKeysClass’
keys.c:383:41: error: unknown type name ‘AdblockKeys’
keys.c: In function ‘adblock_keys_finalize’:
keys.c:391:2: error: unknown type name ‘AdblockKeys’
In file included from /usr/include/glib-2.0/gobject/gobject.h:24:0,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:23,
from extensions/adblock/keys.c:17:
/home/moritz/Downloads/source/midori/midori/extensions/adblock/keys.vala:14:61: error: ‘AdblockKeys’ undeclared (first use in this function)
/usr/include/glib-2.0/gobject/gtype.h:2186:7: note: in definition of macro ‘_G_TYPE_CIC’
((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/keys.vala:14:9: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
public class Keys : Filter {
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/keys.vala:14:61: note: each undeclared identifier is reported only once for each function it appears in
/usr/include/glib-2.0/gobject/gtype.h:2186:7: note: in definition of macro ‘_G_TYPE_CIC’
((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/keys.vala:14:9: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
public class Keys : Filter {
^
/usr/include/glib-2.0/gobject/gtype.h:2186:10: error: expected expression before ‘)’ token
((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
^
/usr/include/glib-2.0/gobject/gtype.h:479:66: note: in expansion of macro ‘_G_TYPE_CIC’
#define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type) (_G_TYPE_CIC ((instance), (g_type), c_type))
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/keys.vala:14:9: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
public class Keys : Filter {
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/keys.vala:15:39: error: request for member ‘priv’ in something not a structure or union
extensions/adblock/keys.c:22:48: note: in definition of macro ‘__g_list_free__g_regex_unref0_0’
#define __g_list_free__g_regex_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_regex_unref0_ (var), NULL)))
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/keys.vala:15:39: error: request for member ‘priv’ in something not a structure or union
extensions/adblock/keys.c:22:71: note: in definition of macro ‘__g_list_free__g_regex_unref0_0’
#define __g_list_free__g_regex_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_regex_unref0_ (var), NULL)))
^
/home/moritz/Downloads/source/midori/midori/extensions/adblock/keys.vala:15:39: error: request for member ‘priv’ in something not a structure or union
extensions/adblock/keys.c:22:109: note: in definition of macro ‘__g_list_free__g_regex_unref0_0’
#define __g_list_free__g_regex_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_regex_unref0_ (var), NULL)))
^
keys.c: In function ‘adblock_keys_get_type’:
keys.c:405:57: error: ‘AdblockKeysClass’ undeclared (first use in this function)
keys.c:405:141: error: ‘adblock_keys_class_init’ undeclared (first use in this function)
keys.c:405:207: error: ‘AdblockKeys’ undeclared (first use in this function)
keys.c:405:244: error: ‘adblock_keys_instance_init’ undeclared (first use in this function)
keys.c:407:50: error: ‘ADBLOCK_TYPE_FILTER’ undeclared (first use in this function)
ninja: build stopped: subcommand failed.
-----------------------------------------------------------------------
I got it working now with ninja, by removing everything and by redownloading from repostitory. Can't explain it though, because I did not change any existing files.