libgit2-glib-0.23.10: build fails with libgit2 0.24.0.
@devans
Submitted by David Evans Link to original bug (#763648)
Description
MacPorts 2.3.4 Mac OS X 10.10.5 (Yosemite) Xcode 7.2 Build version 7C68 Apple LLVM version 7.0.2 (clang-700.1.81) Target: x86_64-apple-darwin14.5.0 Thread model: posix
Building libgit2-glib using libgit2 0.24.0 fails as follows:
/bin/sh ../libtool --tag=CC --mode=compile /usr/bin/clang -arch x86_64 -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -I. -D_REENTRANT -I/opt/local/include -I/opt/local/include/gobject-introspection-1.0 -I/opt/local/lib/libffi-3.2.1/include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include -DGIT_SSH=1 -Wall -I/opt/local/include -pipe -Os -arch x86_64 -MT ggit-merge-options.lo -MD -MP -MF .deps/ggit-merge-options.Tpo -c -o ggit-merge-options.lo ggit-merge-options.c libtool: compile: /usr/bin/clang -arch x86_64 -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -I. -D_REENTRANT -I/opt/local/include -I/opt/local/include/gobject-introspection-1.0 -I/opt/local/lib/libffi-3.2.1/include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include -DGIT_SSH=1 -Wall -I/opt/local/include -pipe -Os -arch x86_64 -MT ggit-merge-options.lo -MD -MP -MF .deps/ggit-merge-options.Tpo -c ggit-merge-options.c -fno-common -DPIC -o .libs/ggit-merge-options.o ggit-merge-options.c:123:31: error: no member named 'tree_flags' in 'git_merge_options'; did you mean 'file_flags'? merge_options->merge_options.tree_flags = (git_merge_tree_flag_t)tree_flags; ^~~~~~~~~~ file_flags /opt/local/include/git2/merge.h:280:24: note: 'file_flags' declared here git_merge_file_flag_t file_flags; ^ ggit-merge-options.c:123:45: error: use of undeclared identifier 'git_merge_tree_flag_t' merge_options->merge_options.tree_flags = (git_merge_tree_flag_t)tree_flags; ^ ggit-merge-options.c:139:58: error: no member named 'tree_flags' in 'git_merge_options'; did you mean 'file_flags'? return (GgitMergeTreeFlags)merge_options->merge_options.tree_flags; ^~~~~~~~~~ file_flags /opt/local/include/git2/merge.h:280:24: note: 'file_flags' declared here git_merge_file_flag_t file_flags; ^ ggit-merge-options.c:300:45: error: use of undeclared identifier 'git_merge_file_flags_t' merge_options->merge_options.file_flags = (git_merge_file_flags_t)file_flags; ^ 4 errors generated. make[3]: *** [ggit-merge-options.lo] Error 1 make[3]: Leaving directory `/opt/local/var/macports/build/_opt_macports_users_devans_GNOME-3_stable_dports_gnome_libgit2-glib/libgit2-glib/work/libgit2-glib-0.23.10/libgit2-glib'
Version: git master
Resolution: RESOLVED FIXED