libgit2-glib build error: unknown type name 'git_cherrypick_options'
Submitted by Benjamin Woods
Link to original bug (#747337)
Description
Trying to compile libgit2-glib on FreeBSD 10.1 amd64 with clang gives the following build errors:
gmake[4]: Entering directory '/wrkdirs/usr/ports/devel/libgit2-glib/work/libgit2-glib-0.22.2/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 In file included from ggit-cherry-pick-options.c:21: ./ggit-cherry-pick-options.h:56:7: error: unknown type name 'git_cherrypick_options'; did you mean 'git_cherry_pick_options'? const git_cherrypick_options * ^~~~~~~~~~~~~~~~~~~~~~ git_cherry_pick_options /usr/local/include/git2/cherrypick.h:31:3: note: 'git_cherry_pick_options' declared here } git_cherry_pick_options; ^ ggit-cherry-pick-options.c:30:2: error: unknown type name 'git_cherrypick_options'; did you mean 'git_cherry_pick_options'? git_cherrypick_options options; ^~~~~~~~~~~~~~~~~~~~~~ git_cherry_pick_options /usr/local/include/git2/cherrypick.h:31:3: note: 'git_cherry_pick_options' declared here } git_cherry_pick_options; ^ ggit-cherry-pick-options.c:115:2: error: unknown type name 'git_cherrypick_options'; did you mean 'git_cherry_pick_options'? git_cherrypick_options defopts = GIT_CHERRYPICK_OPTIONS_INIT; ^~~~~~~~~~~~~~~~~~~~~~ git_cherry_pick_options /usr/local/include/git2/cherrypick.h:31:3: note: 'git_cherry_pick_options' declared here } git_cherry_pick_options; ^ ggit-cherry-pick-options.c:115:35: error: use of undeclared identifier 'GIT_CHERRYPICK_OPTIONS_INIT' git_cherrypick_options defopts = GIT_CHERRYPICK_OPTIONS_INIT; ^ ggit-cherry-pick-options.c:159:2: error: implicit declaration of function 'git_cherrypick_init_options' is invalid in C99 [-Werror,-Wimplicit-function-declaration] git_cherrypick_init_options (&self->priv->options, GIT_CHERRYPICK_OPTIONS_VERSION); ^ ggit-cherry-pick-options.c:159:2: note: did you mean 'git_cherry_pick_init_options'? /usr/local/include/git2/cherrypick.h:44:17: note: 'git_cherry_pick_init_options' declared here GIT_EXTERN(int) git_cherry_pick_init_options( ^ ggit-cherry-pick-options.c:159:53: error: use of undeclared identifier 'GIT_CHERRYPICK_OPTIONS_VERSION' git_cherrypick_init_options (&self->priv->options, GIT_CHERRYPICK_OPTIONS_VERSION); ^ ggit-cherry-pick-options.c:176:7: error: unknown type name 'git_cherrypick_options'; did you mean 'git_cherry_pick_options'? const git_cherrypick_options * ^~~~~~~~~~~~~~~~~~~~~~ git_cherry_pick_options /usr/local/include/git2/cherrypick.h:31:3: note: 'git_cherry_pick_options' declared here } git_cherry_pick_options; ^ 7 errors generated. Makefile:744: recipe for target 'ggit-cherry-pick-options.lo' failed gmake[4]: *** [ggit-cherry-pick-options.lo] Error 1 gmake[4]: Leaving directory '/wrkdirs/usr/ports/devel/libgit2-glib/work/libgit2-glib-0.22.2/libgit2-glib' Makefile:585: recipe for target 'all' failed gmake[3]: *** [all] Error 2 gmake[3]: Leaving directory '/wrkdirs/usr/ports/devel/libgit2-glib/work/libgit2-glib-0.22.2/libgit2-glib' Makefile:495: recipe for target 'all-recursive' failed gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory '/wrkdirs/usr/ports/devel/libgit2-glib/work/libgit2-glib-0.22.2' Makefile:404: recipe for target 'all' failed gmake[1]: *** [all] Error 2 gmake[1]: Leaving directory '/wrkdirs/usr/ports/devel/libgit2-glib/work/libgit2-glib-0.22.2' *** Error code 1
Stop. make: stopped in /usr/ports/devel/libgit2-glib
Version: 0.22.x
Resolution: RESOLVED NOTABUG