Re: [gitg] troubles compiling latest libgit-glib under debian jessie/testing



Hi Peter,

Looks like you're not building against 0.21. Looking at the clone header for 0.21, https://github.com/libgit2/libgit2/blob/v0.21.0/include/git2/clone.h#L100, you can see the remote_name field (for example) is present. Please recheck if you really have the right version of libgit2 installed, and if libgit2-glib is actually trying to build against that version.


Jesse


2014-07-10 1:12 GMT+02:00 Peter Spiess-Knafl <psk autistici org>:
Hi!

First, thank you for implementing gitg. It is the only git gui that I
find useable at all :)

Since the version at the debian package archives is pretty outdated
(2.7) I would like to build the newest release from source.

But I have troubles compiling libgit-glib from
https://git.gnome.org/browse/libgit2-glib

Getting the following errors:

  CC       ggit-blob-output-stream.lo
  CC       ggit-branch.lo
  CC       ggit-checkout-options.lo
  CC       ggit-clone-options.lo
ggit-clone-options.c: In function 'ggit_clone_options_copy':
ggit-clone-options.c:72:20: error: 'git_clone_options' has no member
named 'remote_name'
  gnew_clone_options.remote_name = g_strdup (gclone_options->remote_name);
                    ^
ggit-clone-options.c:72:59: error: 'git_clone_options' has no member
named 'remote_name'
  gnew_clone_options.remote_name = g_strdup (gclone_options->remote_name);
                                                           ^
ggit-clone-options.c: In function 'ggit_clone_options_free':
ggit-clone-options.c:100:33: error: 'git_clone_options' has no member
named 'remote_name'
  g_free ((gchar *)gclone_options->remote_name);
                                 ^
ggit-clone-options.c: In function 'ggit_clone_options_get_remote_name':
ggit-clone-options.c:172:31: error: 'git_clone_options' has no member
named 'remote_name'
  return options->clone_options.remote_name;
                               ^
ggit-clone-options.c: In function 'ggit_clone_options_set_remote_name':
ggit-clone-options.c:188:24: error: 'git_clone_options' has no member
named 'remote_name'
  options->clone_options.remote_name = g_strdup (remote_name);
                        ^
ggit-clone-options.c: In function 'ggit_clone_options_get_remote_name':
ggit-clone-options.c:173:1: warning: control reaches end of non-void
function [-Wreturn-type]
 }
 ^
Makefile:710: recipe for target 'ggit-clone-options.lo' failed
make[3]: *** [ggit-clone-options.lo] Error 1
make[3]: Leaving directory '/home/cinemast/gitg/libgit2-glib/libgit2-glib'
Makefile:556: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/cinemast/gitg/libgit2-glib/libgit2-glib'
Makefile:485: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/cinemast/gitg/libgit2-glib'
Makefile:393: recipe for target 'all' failed
make: *** [all] Error 2


I have the latest libgit version (0.21) installed.

Thanks in advance and greetings
Peter
_______________________________________________
gitg-list mailing list
gitg-list gnome org
https://mail.gnome.org/mailman/listinfo/gitg-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]