<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi all:<br>
<br>
When trying to build Subsurface from the latest master, I get the
following error:<br>
<br>
<br>
<title>Konsole output</title>
<div>
<span style="color:#000000;background-color:#ffffff;">/home/paneves/Diveapps/subsurface/git-access.c:
In function ‘update_local_repo’:</span><span
style="color:#18b218;background-color:#ffffff;">
</span><span
style="color:#000000;background-color:#ffffff;"> </span><br>
/home/paneves/Diveapps/subsurface/git-access.c:111:2: error:
unknown type name ‘git_fetch_options’
<br>
git_fetch_options opts = GIT_FETCH_OPTIONS_INIT;
<br>
^
<br>
/home/paneves/Diveapps/subsurface/git-access.c:111:27: error:
‘GIT_FETCH_OPTIONS_INIT’ undeclared (first use in this function)
<br>
git_fetch_options opts = GIT_FETCH_OPTIONS_INIT;
<br>
^
<br>
/home/paneves/Diveapps/subsurface/git-access.c:111:27: note: each
undeclared identifier is reported only once for each function it
appears in
<br>
/home/paneves/Diveapps/subsurface/git-access.c:114:7: error:
request for member ‘callbacks’ in something not a structure or
union
<br>
opts.callbacks.credentials = credential_cb;
<br>
^
<br>
/home/paneves/Diveapps/subsurface/git-access.c:116:41: warning:
passing argument 3 of ‘git_remote_fetch’ from incompatible pointer
type
<br>
error = git_remote_fetch(origin, NULL, &opts, NULL);
<br>
^
<br>
In file included from
/home/paneves/Diveapps/install-root/include/git2/clone.h:14:0,
<br>
from
/home/paneves/Diveapps/install-root/include/git2.h:19,
<br>
from
/home/paneves/Diveapps/subsurface/git-access.c:11:
<br>
/home/paneves/Diveapps/install-root/include/git2/remote.h:412:17:
note: expected ‘const struct git_signature *’ but argument is of
type ‘int *’
<br>
GIT_EXTERN(int) git_remote_fetch(
<br>
^
<br>
/home/paneves/Diveapps/subsurface/git-access.c: In function
‘create_local_repo’:
<br>
/home/paneves/Diveapps/subsurface/git-access.c:152:7: error:
‘git_clone_options’ has no member named ‘fetch_opts’
<br>
opts.fetch_opts.callbacks.credentials = credential_cb;
<br>
^
<br>
CMakeFiles/subsurface_corelib.dir/build.make:261: recipe for
target 'CMakeFiles/subsurface_corelib.dir/git-access.c.o' failed
<br>
make[2]: *** [CMakeFiles/subsurface_corelib.dir/git-access.c.o]
Error 1
<br>
CMakeFiles/Makefile2:454: recipe for target
'CMakeFiles/subsurface_corelib.dir/all' failed
<br>
make[1]: *** [CMakeFiles/subsurface_corelib.dir/all] Error 2
<br>
Makefile:127: recipe for target 'all' failed
<br>
make: *** [all] Error 2<br>
<br>
All was fine on my Kubuntu 15.04 system until a few hours ago...<br>
<br>
Pedro<br>
</div>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</body>
</html>