Build error with latest master

Dirk Hohndel dirk at hohndel.org
Thu May 28 16:10:58 PDT 2015


On Thu, May 28, 2015 at 04:07:14PM -0700, Dirk Hohndel wrote:
> On Thu, May 28, 2015 at 11:39:07PM +0100, Pedro Neves wrote:
> > Hi all:
> > 
> > When trying to build Subsurface from the latest master, I get the following
> > error:
> > 
> > 
> > Konsole output
> > /home/paneves/Diveapps/subsurface/git-access.c: In function
> > ‘update_local_repo’:
> > /home/paneves/Diveapps/subsurface/git-access.c:111:2: error: unknown type
> > name ‘git_fetch_options’
> >  git_fetch_options opts = GIT_FETCH_OPTIONS_INIT;
> >  ^
> > /home/paneves/Diveapps/subsurface/git-access.c:111:27: error:
> > ‘GIT_FETCH_OPTIONS_INIT’ undeclared (first use in this function)
> >  git_fetch_options opts = GIT_FETCH_OPTIONS_INIT;
> 
> OK, I foolishly assumed that all components of this came in v0.20 but that
> clearly isn't the case.
> 
> I'll figure out when these types were added and adjust the conditional
> compile accordingly.

Try again. Now the new code only builds if you set USE_LIBGIT23_API and
have a very recent git master of libgit2 installed.

/D


More information about the subsurface mailing list