multiple build failures
Submitted by Dmitry Smirnov
Link to original bug (#736316)
Description
I'm trying to build libgit2-glib 0.0.20 with libgit2 0.21.1 but getting the following errors when the latter is built without SSH support
/tmp/buildd/libgit2-glib-0.0.20/docs/reference/libgit2-glib-1.0-scan.c:132: undefined reference to `ggit_cred_ssh_interactive_get_type'
/tmp/buildd/libgit2-glib-0.0.20/docs/reference/libgit2-glib-1.0-scan.c:133: undefined reference to `ggit_cred_ssh_interactive_prompt_get_type'
/tmp/buildd/libgit2-glib-0.0.20/docs/reference/libgit2-glib-1.0-scan.c:134: undefined reference to `ggit_cred_ssh_key_from_agent_get_type'
With SSH support in libgit2 FTBFS is different:
ggit-cred-ssh-interactive.c: In function 'callback_wrapper':
ggit-cred-ssh-interactive.c:172:3: error: invalid use of undefined type 'struct _LIBSSH2_USERAUTH_KBDINT_PROMPT'
text = g_strndup prompts[i].text] prompts[i].length]
^
ggit-cred-ssh-interactive.c:172:28: error: dereferencing pointer to incomplete type
text = g_strndup prompts[i].text] prompts[i].length]
Besides "glib-mkenums" from libglib2.0 v2.40.0 and v2.41.4 complain regarding multiline definitions:
/usr/bin/glib-mkenums: ggit-types.h:953: Failed to parse ` GGIT_STATUS_OPTION_INCLUDE_UNTRACKED | '
/usr/bin/glib-mkenums: ggit-types.h:1049: Failed to parse ` GGIT_DIFF_BREAK_REWRITES), '
(cd . && /usr/bin/glib-mkenums --template ggit-enum-types.h.template ggit-blame.h ggit-blame-options.h ggit-blob.h ggit-blob-output-stream.h ggit-branch.h ggit-branch-enumerator.h ggit-checkout-options.h ggit-clone-options.h ggit-commit.h ggit-config.h ggit-config-entry.h ggit-cred.h ggit-cred-plaintext.h ggit-diff.h ggit-diff-delta.h ggit-diff-file.h ggit-diff-find-options.h ggit-diff-format-email-options.h ggit-diff-hunk.h ggit-diff-line.h ggit-diff-options.h ggit-diff-similarity-metric.h ggit-error.h ggit-index.h ggit-index-entry.h ggit-index-entry-resolve-undo.h ggit-main.h ggit-message.h ggit-merge-options.h ggit-native.h ggit-object.h ggit-object-factory.h ggit-object-factory-base.h ggit-oid.h ggit-patch.h ggit-push.h ggit-push-progress.h ggit-ref.h ggit-ref-spec.h ggit-reflog.h ggit-reflog-entry.h ggit-remote.h ggit-remote-callbacks.h ggit-repository.h ggit-revert-options.h ggit-revision-walker.h ggit-signature.h ggit-status-options.h ggit-submodule.h ggit-tag.h ggit-transfer-progress.h ggit-tree.h ggit-tree-builder.h ggit-tree-entry.h ggit-types.h ggit.h ) > ggit-enum-types.h
/usr/bin/glib-mkenums: ggit-types.h:953: Failed to parse ` GGIT_STATUS_OPTION_INCLUDE_UNTRACKED | '
/usr/bin/glib-mkenums: ggit-types.h:1049: Failed to parse ` GGIT_DIFF_BREAK_REWRITES), '
make all-am
Version: git master
Resolution: RESOLVED FIXED