[PATCH] Add libgit2 dependency to INSTALL file (MacPorts stanza)

Giuseppe 'ferdy' Miceli ferdy at ferdy.it
Fri Mar 7 06:25:49 PST 2014


Update the instruction to build Subsurface on MacOSX using MacPorts
after the introduction of git-save format and its libgit2 dependency.

Please note that (at least on MacOSX using Macports) building Subsurface
fails at make stage, because of the "to many arguments to fuction call"
error (which I believe Linux mentioned on his previous mail on the
subject):

picasso:subsurface ferdy# make
<omissis>
compiling save-git.c
save-git.c:580:56: error: too many arguments to function call, expected 5, have 7
                if (git_branch_create(&ref, repo, branch, commit, 0, author, "Create branch"))
                    ~~~~~~~~~~~~~~~~~                                ^~~~~~~~~~~~~~~~~~~~~~~
/opt/local/include/git2/branch.h:50:1: note: 'git_branch_create' declared here
GIT_EXTERN(int) git_branch_create(
^
/opt/local/include/git2/common.h:31:27: note: expanded from macro 'GIT_EXTERN'
# define GIT_EXTERN(type) extern \
                          ^
save-git.c:583:54: error: too many arguments to function call, expected 3, have 5
        if (git_reference_set_target(&ref, ref, &commit_id, author, "Subsurface save event"))
            ~~~~~~~~~~~~~~~~~~~~~~~~                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/include/git2/refs.h:247:1: note: 'git_reference_set_target' declared here
GIT_EXTERN(int) git_reference_set_target(
^
/opt/local/include/git2/common.h:31:27: note: expanded from macro 'GIT_EXTERN'
# define GIT_EXTERN(type) extern \
                          ^
2 errors generated.
make: *** [.obj/save-git.o] Error 1
picasso:subsurface ferdy$ 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-libgit2-dependency-to-INSTALL-file-MacPorts-stan.patch
Type: text/x-patch
Size: 1075 bytes
Desc: [PATCH] Add libgit2 dependency to INSTALL file (MacPorts stanza)
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140307/76692725/attachment.bin>


More information about the subsurface mailing list