libgit2-glib is broken against libgit2 0.21.2+
@awalton
Submitted by Andrew Walton Link to original bug (#739761)
Description
Had to checkout 0.21.0 and build against that to get things moving again. The error seems to come from a number of upstream header changes, which is a bummer.
~/Code/libgit2-glib $ (master): make
make all-recursive
make[1]: Entering directory /home/awalton/Code/libgit2-glib' Making all in libgit2-glib make[2]: Entering directory
/home/awalton/Code/libgit2-glib/libgit2-glib'
GEN ggit-enum-types.c
GEN ggit-enum-types.h
/usr/bin/glib-mkenums: ggit-types.h:967: Failed to parse GGIT_STATUS_OPTION_INCLUDE_UNTRACKED | ' /usr/bin/glib-mkenums: ggit-types.h:967: Failed to parse
GGIT_STATUS_OPTION_INCLUDE_UNTRACKED | '
/usr/bin/glib-mkenums: ggit-types.h:1063: Failed to parse GGIT_DIFF_BREAK_REWRITES), ' /usr/bin/glib-mkenums: ggit-types.h:1063: Failed to parse
GGIT_DIFF_BREAK_REWRITES), '
make all-am
make[3]: Entering directory /home/awalton/Code/libgit2-glib/libgit2-glib' CC ggit-enum-types.lo CC ggit-blame.lo CC ggit-blame-options.lo CC ggit-blob.lo CC ggit-blob-output-stream.lo CC ggit-branch.lo CC ggit-branch-enumerator.lo CC ggit-checkout-options.lo CC ggit-cherry-pick-options.lo CC ggit-clone-options.lo CC ggit-commit.lo CC ggit-config.lo CC ggit-config-entry.lo CC ggit-convert.lo CC ggit-cred.lo ggit-clone-options.c: In function 'ggit_clone_options_copy': ggit-clone-options.c:72:20: error: 'git_clone_options' has no member named 'remote_name' ggit-clone-options.c:72:59: error: 'git_clone_options' has no member named 'remote_name' ggit-clone-options.c: In function 'ggit_clone_options_free': ggit-clone-options.c:100:33: error: 'git_clone_options' has no member named 'remote_name' ggit-clone-options.c: In function 'ggit_clone_options_get_remote_name': ggit-clone-options.c:172:31: error: 'git_clone_options' has no member named 'remote_name' ggit-clone-options.c: In function 'ggit_clone_options_set_remote_name': ggit-clone-options.c:188:24: error: 'git_clone_options' has no member named 'remote_name' ggit-clone-options.c: In function 'ggit_clone_options_get_remote_name': ggit-clone-options.c:173:1: warning: control reaches end of non-void function [-Wreturn-type] make[3]: *** [ggit-clone-options.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... In file included from ggit-cherry-pick-options.c:1:0: ggit-cherry-pick-options.h:56:1: error: unknown type name 'git_cherry_pick_options' ggit-cherry-pick-options.c:10:2: error: unknown type name 'git_cherry_pick_options' ggit-cherry-pick-options.c: In function 'ggit_cherry_pick_options_set_property': ggit-cherry-pick-options.c:50:22: error: request for member 'mainline' in something not a structure or union ggit-cherry-pick-options.c: In function 'ggit_cherry_pick_options_get_property': ggit-cherry-pick-options.c:77:47: error: request for member 'mainline' in something not a structure or union ggit-cherry-pick-options.c: In function 'ggit_cherry_pick_options_class_init': ggit-cherry-pick-options.c:95:2: error: unknown type name 'git_cherry_pick_options' ggit-cherry-pick-options.c:95:36: error: 'GIT_CHERRY_PICK_OPTIONS_INIT' undeclared (first use in this function) ggit-cherry-pick-options.c:95:36: note: each undeclared identifier is reported only once for each function it appears in ggit-cherry-pick-options.c:111:61: error: request for member 'mainline' in something not a structure or union ggit-cherry-pick-options.c:95:26: warning: variable 'defopts' set but not used [-Wunused-but-set-variable] ggit-cherry-pick-options.c: In function 'ggit_cherry_pick_options_init': ggit-cherry-pick-options.c:131:2: warning: implicit declaration of function 'git_cherry_pick_init_options' [-Wimplicit-function-declaration] ggit-cherry-pick-options.c:131:2: warning: nested extern declaration of 'git_cherry_pick_init_options' [-Wnested-externs] ggit-cherry-pick-options.c:131:54: error: 'GIT_CHERRY_PICK_OPTIONS_VERSION' undeclared (first use in this function) ggit-cherry-pick-options.c: At top level: ggit-cherry-pick-options.c:148:1: error: unknown type name 'git_cherry_pick_options' ggit-cherry-pick-options.c: In function '_ggit_cherry_pick_options_get_cherry_pick_options': ggit-cherry-pick-options.c:156:26: error: request for member 'checkout_opts' in something not a structure or union ggit-cherry-pick-options.c: In function 'ggit_cherry_pick_options_get_mainline': ggit-cherry-pick-options.c:182:31: error: request for member 'mainline' in something not a structure or union ggit-cherry-pick-options.c: In function 'ggit_cherry_pick_options_set_mainline': ggit-cherry-pick-options.c:199:24: error: request for member 'mainline' in something not a structure or union ggit-cherry-pick-options.c: In function 'ggit_cherry_pick_options_set_checkout_options': ggit-cherry-pick-options.c:240:53: error: request for member 'checkout_opts' in something not a structure or union ggit-cherry-pick-options.c:246:25: error: request for member 'checkout_opts' in something not a structure or union ggit-cherry-pick-options.c: In function 'ggit_cherry_pick_options_set_merge_options': ggit-cherry-pick-options.c:289:50: error: request for member 'merge_opts' in something not a structure or union ggit-cherry-pick-options.c:295:25: error: request for member 'merge_opts' in something not a structure or union ggit-cherry-pick-options.c: In function 'ggit_cherry_pick_options_get_mainline': ggit-cherry-pick-options.c:183:1: warning: control reaches end of non-void function [-Wreturn-type] make[3]: *** [ggit-cherry-pick-options.lo] Error 1 ggit-config.c: In function 'ggit_config_refresh': ggit-config.c:287:2: warning: implicit declaration of function 'git_config_refresh' [-Wimplicit-function-declaration] ggit-config.c:287:2: warning: nested extern declaration of 'git_config_refresh' [-Wnested-externs] make[3]: Leaving directory
/home/awalton/Code/libgit2-glib/libgit2-glib'
make[2]: *** [all] Error 2
make[2]: Leaving directory /home/awalton/Code/libgit2-glib/libgit2-glib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory
/home/awalton/Code/libgit2-glib'
make: *** [all] Error 2
Version: git master
Resolution: RESOLVED NOTABUG