Build error with latest master

Pedro Neves nevesdiver at gmail.com
Thu May 28 16:21:45 PDT 2015


On 29-05-2015 00:10, Dirk Hohndel wrote:
> 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 

I get the same error:

Konsole output
[ 47%] Building C object CMakeFiles/subsurface_corelib.dir/git-access.c.o
/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;
                           ^
/home/paneves/Diveapps/subsurface/git-access.c:111:27: note: each 
undeclared identifier is reported only once for each function it appears in
/home/paneves/Diveapps/subsurface/git-access.c:116:41: warning: passing 
argument 3 of ‘git_remote_fetch’ from incompatible pointer type
  error = git_remote_fetch(origin, NULL, &opts, NULL);
                                         ^
In file included from 
/home/paneves/Diveapps/install-root/include/git2/clone.h:14:0,
                 from 
/home/paneves/Diveapps/install-root/include/git2.h:19,
                 from /home/paneves/Diveapps/subsurface/git-access.c:11:
/home/paneves/Diveapps/install-root/include/git2/remote.h:412:17: note: 
expected ‘const struct git_signature *’ but argument is of type ‘int *’
GIT_EXTERN(int) git_remote_fetch(
                 ^
CMakeFiles/subsurface_corelib.dir/build.make:261: recipe for target 
'CMakeFiles/subsurface_corelib.dir/git-access.c.o' failed
make[2]: *** [CMakeFiles/subsurface_corelib.dir/git-access.c.o] Error 1
CMakeFiles/Makefile2:454: recipe for target 
'CMakeFiles/subsurface_corelib.dir/all' failed
make[1]: *** [CMakeFiles/subsurface_corelib.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2


Do I need to clean my src or anything, before atempting to build?

Cheers:
Pedro

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150529/c12a3731/attachment-0001.html>


More information about the subsurface mailing list